- debian 8 (jessie)
- and Mariadb
help me, please
I am a technician Indonesia and just learn to use nginx and moodle. how to fix display css/images on moodle with nginx? thanks
I recently came up against this issue when setting up Moodle 3.2.1 for the first time. The issue is the abnormal method by which Moodle is calling some of the php scripts, specifically the image.php script in particular I found had the most issue. To correct the issue, I had to modify my web server configuration to expect PHP files with a forward slash(/) at the end. In our case, I did that by changing the NGinx Location directive from .php$ to .php(/|$)
The issue is the abnormal method by which Moodle is calling some of the php scripts
Can you elaborate? What is the "abnormal method" that Moodle is using?
After hours studying about this case, finally I have a solution and I would like to share with us
1. configure PHP as described in this link https://moopi.uk/mod/page/view.php?id=78
(this configuration fully supports 'slash arguments' )
2.In the first screen, don't forget to put a slash at the end of moodledata config directory
restart nginx and woilá...images works as expected
Thank you Marcelo for sharing the solution with us. I have been trying to solve it for long hours but still unsuccessful.
I do not think that my hosting provider will allow me to change the nginx configuration in the way that you described. Not sure if they are using nginx at all.
Do you know any alternate way to reach to the same solution?
I also faced 3 days back the exactly similar issue which caused me almost 3 days banging my head how to solve it. At last I did it and now I want other to know hoe to do it. Its little tricky and not a profession way to do it. Please fill the form in the screenshot by inspect element and submit it. The next screen which you will see will have a search option where you need to search for slash argument or slash. Other than search nothing will work , no links, no jquery effects nothing as 2 main jqueries were not included properly. So the page which you will see after searching, there will be a default check box which is checked by default. Please uncheck it save it. Congratulations as you just solved your biggest hurdle hear . It really worked for me and m sure will work for others unless you haven't changed you location settings through Nginx.
Thanks & regards.