Learn about Centmin Mod LEMP Stack today
Register Now

Moodle file loading failure

Discussion in 'Other Web Apps usage' started by alan, May 23, 2020.

  1. alan

    alan New Member

    20
    4
    3
    Dec 16, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.15.12
    • PHP Version Installed: 7.4.6
    • MariaDB MySQL Version Installed: 10.2.xx
    • When was last time updated Centmin Mod code base ? cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
      Code:
       
      MARCH_TARGETNATIVE='n'
      LETSENCRYPT_DETECT='y'
        
    I have tried to install Moodle 3.8 with Centminmod, but some files are not loading, like
    " /home/nginx/domains/lidone.com/public/moodle/lib/javascript.php/1590218677/lib/javascript-static.js" failed "

    Below is inside /usr/local/nginx/conf/conf.d/lidone.com.ssl.conf
    But files such as public/moodle/lib/javascript.php/1590218677/lib/javascript-static.js will still fail to load.
    Any advice is much appreciated.

    location ~ [^/]\.php(/|$) {
    # root /home/nginx/domains/lidone.com/public;
    # try_files $uri =404;

    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_index index.php;
    fastcgi_pass 127.0.0.1:9000;




    include fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;

    }
     
  2. alan

    alan New Member

    20
    4
    3
    Dec 16, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    Solved.
     
  3. eva2000

    eva2000 Administrator Staff Member

    52,183
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    1:12 AM
    Nginx 1.25.x
    MariaDB 10.x