Reputation: 1
I am trying to install moodle in my centos system. everything works fine untill I try to access http://localhost/moodle/install.php.
Instead of running the script the entire script is displayed on the screen. Can you please tell me where am I going wrong? However other scripts are displayed correctly. I have not altered install.php in any way.
Upvotes: 0
Views: 3881
Reputation: 21
you should install libapache2-mod-php to enable apache to run php scripts.
sudo apt install php libapache2-mod-phplib
Upvotes: 0
Reputation: 568
What happens when you run http://localhost/moodle/index.php (instead of install.php)?
Have you tried manually setting up your Moodle config.php file? If not, make a copy of the config-dist.php file in your Moodle folder and rename it to config.php (replacing any existing config.php file you might have).
Then edit that new config.php in a text editor and fill in all the config settings, like $CFG->dbhost, $CFG->dbname, $CFG->wwwroot and $CFG->dataroot.
When that's done save the config.php file and run http://localhost/moodle/index.php again. What happens now?
Upvotes: 1