Installation Page devoid of style, not allowing installation

Installation Page devoid of style, not allowing installation

by Frank B -
Number of replies: 1

I am installing on NGINX and MariaDB.

On the installation page it is devoid of details and will not allow me to enter a password. All the other pages leading up to this one display the moodle log and look normal. But as soon as I get to this one, it all changes. It's almost as if Javascript was not working of something. I tried with different browsers and got the same result. All the files have been CHOWN'd to the webserver user. Any ideas?

screenshot

PHP variables:

upload_max_filesize = 200M
post_max_size = 200M
memory_limit = 200M
file_uploads = On
max_execution_time = 300
disable_functions = mail
cgi.fix_pathinfo=0


Nginx Config:

rewrite ^/moodle/(.*\.php)(/)(.*)$ /moodle/$1?file=/$3 last;
client_max_body_size 200m;
fastcgi_read_timeout 300;
        location / {
                try_files $uri $uri/ /index.html;
        }

PHP LOG SHows:
2017/09/08 14:50:39 [error] 14108#14108: *2312435 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: x.x.xx.x, server: xxxxx.com, request: "GET /lib/javascript.php/1504897465/lib/requirejs/require.min.js HTTP/1.1", host: "xxxxxxxxx", referrer: "https://xxxxxxx.com/user/editadvanced.php?id=2"

Average of ratings: -
In reply to Frank B

Re: Installation Page devoid of style, not allowing installation

by Frank B -

SOLVED!!

Just needed to put this into my nginx config and presto!

location ~ [^/]\.php(/|$) {
    fastcgi_split_path_info  ^(.+\.php)(/.+)$;
    fastcgi_index            index.php;
#    fastcgi_pass             127.0.0.1:9000 (or your php-fpm socket);
    fastcgi_pass unix:/var/lib/php5-fpm/web98.sock;
    include                  fastcgi_params;
    fastcgi_param   PATH_INFO       $fastcgi_path_info;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
}