Moodle, Apache 2.0 and RedHat 8.0

Moodle, Apache 2.0 and RedHat 8.0

autor Danilo Massa -
Počet odpovědí: 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 ...
Průměr hodnocení: -
V odpovědi na Danilo Massa

Re: Moodle, Apache 2.0 and RedHat 8.0

autor Martin Dougiamas -
Obrázek: Core developers Obrázek: Documentation writers Obrázek: Moodle HQ Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers Obrázek: 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