Load config.php after installing moodle

Load config.php after installing moodle

by Devdan Reddy -
Number of replies: 5

Hello

 

I installed moodle 3.8 in my Ubuntu server 16.04 (nginx, php 7.1 and mysql) but when I open http://localhost/moodle just loads http://localhost:/moodle/config.php, however after this I get a page that says

config.php


and continues, so I didn't get to the installation page, I checked everything and it seems right, what is wrong with my installation?




Average of ratings: -
In reply to Devdan Reddy

Re: Load config.php after installing moodle

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
It looks like your server is not configured to load php files correctly...
In reply to Devdan Reddy

Re: Load config.php after installing moodle

by Adam Jenkins -
Picture of Plugin developers

First, you're going to need to have php7.1-fpm installed (it probably isn't). If it's there, then you need to edit the virtualhost files to tell Nginx what to do when it sees a PHP file (/etc/nginx/sites-enabled). This file will probably need a bit of editing to get slash arguments to work too.

If configured correctly, after restarting Nginx it should all start working.


Good luck!