Installing Moodle/httpd.conf setup: Difference between revisions
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) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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: | |||
== index.php as default page == | |||
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 | '''DirectoryIndex''' index.php index.html index.htm | ||
Line 10: | Line 8: | ||
:Just make sure index.php is in the list (and preferably towards the start of the list, for efficiency). | :Just make sure index.php is in the list (and preferably towards the start of the list, for efficiency). | ||
== AcceptPathInfo == | |||
Secondly, '''if you are using Apache 2''', then you should turn on the ''AcceptPathInfo'' variable, which allows scripts to be passed arguments like <nowiki>http://server/file.php/arg1/arg2</nowiki>. 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 | '''AcceptPathInfo''' on |
Latest revision as of 16:24, 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:
index.php as default page
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).
AcceptPathInfo
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