This is my first post on this forum but I have been reading you for years and years.
Until now I have been able to manage everything by myself using the documentation and all the A+ information contained on this forum, but since a few days ago, I'm suffering a problem in my platform and I have been unable to fix it.
Maybe someone like Ken "Mighty God" Task could enlighten my burned brain and give some light in order to fix the problem.
Firstly, let me say that my platform is located here: https://www.jmformacion.com/plataforma
Currently I'm running it over:
- CentOS 8.3 and Plesk 18.0.35
- PHP-FPM served by Nginx
- PHP 7.4.18
- MariaDB 10.3.28
- Moodle 3.11+ (Build: 20210520)
I have to say that everything was working flawlesly until a few days ago that started to not load CSS, JS, and images. The only solution I have found is to disable "Slash Arguments" in Server -> HTTP section.
The exact problem I'm having was already discussed here, but I was unable to fix it:
https://moodle.org/mod/forum/discuss.php?d=373465
I have tried to configure Nginx to accept slash arguments using the official documentation (https://docs.moodle.org/311/en/Nginx#Slasharguments) adding the following to the Nginx config but modiying a few things to match my system:
location ~ ^(.+\.php)(.*)$ {
root /var/www/vhosts/bezlab.es/jmformacion.com/public_html/;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_index index.php;
fastcgi_pass unix:/var/www/vhosts/system/jmoposiciones.com/php-fpm.sock;
include /etc/nginx/mime.types;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
I have also set "AcceptPathInfo" to "On" aswell as some PHP-FPM configuration parameters like:
[php-fpm-pool-settings]
security.limit_extensions = .php
cgi.fix_pathinfo = 1
I have tried setting "cgi.fix_pathinfo" to "0" too and all the combinations you could imagine, but nothing worked.
The funny thing is that everything was working fine without any special configuration for Nginx/PHP/FPM. I installed Plesk a few months ago and Moodle was working with almost the stock config and slash arguments enabled, but I can't tell you why, it stopped working and only solution I found was to disable slash arguments.
As I said previously, any help would be highly appreciated since I'm working with "Slash Arguments" disabled and several images are not loading since they're using "file.php/path" URL.
Thanks for everything, not just for your upcoming help but for all these years resolving Moodle issues.
Regards,
Enrique