I\'m experiencing a problem regarding Moodle.
I\'ve made an install into a Linux server, but CSS and themes are not displaying so i have only plain text.
Ho
That helped me, but I dont know why.
nginx conf file of site:
... location ~ [^/]\.php(/|$) { ... try_files $uri =404; #comment this line if it exists ... } ...
It is a late response but I think it may help someone like me. I too ran into the same situation when I migrated moodle from Google Cloud to Godaddy which resulted in just plain text pages without any css. I tried doing a fresh installation of moodle just to check if there are any missing elements. The installation refused to continue and gave an error message that "PHP iconv extension is missing". Later I went to the terminal and ran the following command (to install the missing iconv extenstion and restart apache):
yum install ea-php73-php-iconv -y
sudo systemctl restart httpd
That's it..everything started working as expected!
Today i installed the latest moodle 3.2
on Linux Ubuntu
server with Apache2
and PHP5.6
. After successful installation, on the final screen no css or js was loading. pretty much similar to your issue. Getting ERR_CONTENT_DECODING_FAILED
when url is hit
/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css
I did some googling and found that its related to zlib compression and after enabling it in my php.ini file the problem is solved.
Locate your php.ini files, Go to php.ini file
sudo vi /etc/php/5.6/apache2/php.ini
Add or set below 2 lines
zlib.output_compression = on
zlib.output_compression_level = 6
Restart apache
sudo service apache2 restart
It will start working fine.
Related problem: https://moodle.org/mod/forum/discuss.php?d=324581#p1421502
It seems that you are viewing the moodle with standard theme.
By default in moodle the standard theme would be applied. You can choose any other theme which is available under the theme section.
To change the theme, you will to have access the theme section page as admin.
Administration > Site administration > Appearance > Themes > Theme Selector
After select any other theme, you will have to do purge all cache.
For more information about changing the theme: Change moodle theme
The most basic reason it might not show any CSS or styling could be improper permissions set in the Moodle data folder. If Apache cannot write to that directory then it cannot process the SCSS and generate cache files needed.
This solution should work. I ran into the same problem after I migrated from local to production and I had to disable Use slash arguments in
Sites Administration > Server > HTTP.
It is the first item you see on the page. Just deselect it if it is checked and save to see if that helps.