moodle not showing CSS and theme with linux server

前端 未结 10 797
醉梦人生
醉梦人生 2021-01-06 01:10

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

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-06 01:23

    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

提交回复
热议问题