Moodle, Apache 2.0 and RedHat 8.0

Moodle, Apache 2.0 and RedHat 8.0

ni Danilo Massa -
Number of replies: 1
I have had a problem using moodle 1.0.6.1 on a Red Hat Linux installation.
The problem arise when you try to get (Apache error: 404 Object not found) a file published on the server using the upload function.
This happen because apache 2.0 does not implement the PATH_INFO variable as the 1.3 version.
In order to made the file.php working again I have created a new file called moodle.conf inside the /etc/httpd/conf.d directory. This directory contain some configuration files that are automatically included in the configuration of the apache server at startup.

The content of the moodle.conf file is:

<Location /moodle>
AcceptPathInfo on
Order deny,allow
Allow from all
</Location>

I hope that this can help someone else ...
Average of ratings: -
In reply to Danilo Massa

Re: Moodle, Apache 2.0 and RedHat 8.0

ni Martin Dougiamas -
Larawan ng Core developers Larawan ng Documentation writers Larawan ng Moodle HQ Larawan ng Particularly helpful Moodlers Larawan ng Plugin developers Larawan ng Testers
Thanks for that. I'd wondered why some servers worked and others didn't - I didn't know about the acceptpathinfo setting in Apache.

Another way to fix the problem (if you are willing to make it a little less likely browsers would cache the content) is to flip the "slasharguments" setting in Moodle's admin settings.

Cheers,
Martin