Moodle Not Showing CSS and Theme with Linux Server

Moodle 3.7 not loading properly after installation

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.

Moodle 4.0 problems with Moove 3.11.05 theme (the site is not showing breadcrumbs)

Moove for Moodle 4.0 is already available. You can donwnload it from its page: https://moodle.org/plugins/theme_moove/versions

Nginx fails to load css files

I found an workaround on the web. I added to /etc/nginx/conf.d/default.conf the following:

location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}

The problem now is that a request to my css file isn't redirected well, as if root is not correctly set.
In error.log I see

2012/04/11 14:01:23 [error] 7260#0: *2 open() "/etc/nginx//html/style.css"

So as a second workaround I added the root to each defined location.
Now it works, but seems a little redundant. Isn't root inherited from / location ?



Related Topics



Leave a reply



Submit