Moodle, Apache 2.0 and RedHat 8.0

Moodle, Apache 2.0 and RedHat 8.0

by 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 ...
La media da valetaziuns: -
In reply to Danilo Massa

Re: Moodle, Apache 2.0 and RedHat 8.0

by Martin Dougiamas -
Maletg da 	Core developers Maletg da 	Documentation writers Maletg da 	Moodle HQ Maletg da 	Particularly helpful Moodlers Maletg da 	Plugin developers Maletg da 	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
La media da valetaziuns: -