skip to Main Content

I have a fresh Moodle 3.7 install in my Ubuntu 19.04 powered laptop, Apache2 as server, PostgreSQL for database and PHP 7.2. I’ve followed the steps in https://docs.moodle.org/37/en/Step-by-step_Installation_Guide_for_Ubuntu, except that I’ve used a PostgreSQL database (and it installed fine). But when I access http://localhost/moodle/, I see this screen:

enter image description here

It’s like the CSS is not working. Chrome’s console show a bunch of errors:

enter image description here

And I simply didn’t find information on the web about these specific errors. My /var/www/html/moodle folder has all permissions (chmod 777 recursive).

What am I doing wrong here?

2

Answers


  1. This looks like your DDBB configuration is fine, because the main page is loading with no potential errors.

    As Moodle can’t find your other files, maybe one of your configuration lines is wrong. You can find the configuration file (config.php) on the Moodle root folder.

    It is quite easy to read as you will find some values being assigned to variables. Pay special attention to

    • $CFG->wwwroot
    • $CFG->dataroot
    • $CFG->directorypermissions = 0777;

    If the content of the config.php file is fine, maybe you will need to reinstall the platform as Moodle didn’t install well (this has happened to me many times). Be sure to reinstall the platform with other release (older or newer), maybe your particular release has bugs related with the installation.

    Login or Signup to reply.
  2. I followed suggestion by user3072843 and that works for me. More detailed, config nginx with following code (copied from ocs.moodle.org/38/en/Nginx):

    location ~ [^/].php(/|$) {
        fastcgi_split_path_info  ^(.+.php)(/.+)$;
        fastcgi_index            index.php;
        fastcgi_pass             127.0.0.1:9000 (or your php-fpm socket);
        include                  fastcgi_params;
        fastcgi_param   PATH_INFO       $fastcgi_path_info;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search