Installing Moodle/httpd.conf setup: Difference between revisions
From MoodleDocs
Frank Ralf (talk | contribs) (New page: === httpd.conf file === '''Note''': <br /> This and the following sections are only necessary if you run into problems with the default installation procedure described above. *Firstly, ...) |
Frank Ralf (talk | contribs) |
||
Line 1: | Line 1: | ||
If you run into problems when installing Moodle check the following settings for your Apache server in the ''apache\conf\httpd.conf'' file: | |||
*Firstly, make sure that your web server is set up to use index.php as a default page (perhaps in addition to index.html, default.htm and so on). In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this: | *Firstly, make sure that your web server is set up to use index.php as a default page (perhaps in addition to index.html, default.htm and so on). In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this: |
Revision as of 16:23, 1 April 2009
If you run into problems when installing Moodle check the following settings for your Apache server in the apache\conf\httpd.conf file:
- Firstly, make sure that your web server is set up to use index.php as a default page (perhaps in addition to index.html, default.htm and so on). In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this:
DirectoryIndex index.php index.html index.htm
- Just make sure index.php is in the list (and preferably towards the start of the list, for efficiency).
- Secondly, if you are using Apache 2, then you should turn on the AcceptPathInfo variable, which allows scripts to be passed arguments like http://server/file.php/arg1/arg2. This is essential to allow relative links between your resources, and also provides a performance boost for people using your Moodle web site. You can turn this on by adding these lines to your httpd.conf file. (NB: This setting, or any equivalent, is not required in Apache 1)
AcceptPathInfo on