I am installing a fresh Moodle on a new server (Centos7, nginx, mariadb, php-fpm7.2).
The install gets to the create an admin user page and the page doesn't have any styles and I can't enter an admin password.
The web console says that this file can't be loaded
http://MYSITE.COM/moodle/lib/javascript.php/1561054045/lib/requirejs/require.min.js
this is my nginx configuration file:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name 10.1.15.111 cusd-moodle.carmelunified.org;
root /usr/share/nginx/html;
index index.html index.htm;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
try_files $uri $uri/ =404;
#rewrite ^/(.*.php)(/)(.*)$ /$1?file=/$3 last;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
# php parsing
location ~ [^/]\.php(/|$) {
include /etc/nginx/mime.types;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
I have tried several other variation on the php location line and contents of the php location block but still can't get that page to load.
Any suggestions would be appreciated.