Web interface issue

Web interface issue

by Дмитрий Еднерал -
Number of replies: 2

Hi !

I installed the documentation version 3.9. But after configuring the browser, the web interface looks like this. And I couldn't create an admin user. What to do? Please help me.web interfce issue

nginx config:

```
# Default server configuration
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    # Add index.php to the list if you are using PHP

    server_name _;

    location / {
        try_files $uri $uri/ =404;
    }

     location ~ \.php$ {
        include snippets/fastcgi-php.conf;
                fastcgi_split_path_info  ^(.+\.php)(/.+)$;
                if (!-f $document_root$fastcgi_script_name) {
                    return 404;
                }
                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;
     }

    root /var/www/html;

    index index.php index.html index.htm index.nginx-debian.html;

}
```


Average of ratings: -
In reply to Дмитрий Еднерал

Re: Web interface issue

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The web interface is broken because the JavaScript and CSS resources aren't being loaded. You can use your browser's developer tools (e.g. Network Monitor in Firefox) to see what the web server is returning for these, e.g. 404 Not Found.

Check $CFG->wwwroot matches the URL you are using in the browser. It's important that the https: or http: matches.

Why is include fastcgi_params commented out? I've attached my .conf file for comparison, I'm using CentOS 8.

This reply may help.


In reply to Leon Stringer

Re: Web interface issue

by Дмитрий Еднерал -
Thank you so much for helping me ! I changed my configuration to yours. Now the browser writes No input file specified.My $CFG->wwwroot is correct.