Welcome to Centmin Mod Community
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:
    2:24 AM
    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:
    2:24 AM
    Solved.
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,163
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    4:24 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x