Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Installing Moodle/httpd.conf setup.

Installing Moodle/httpd.conf setup

From MoodleDocs
Revision as of 16:21, 1 April 2009 by 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, ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

httpd.conf file

Note:
This and the following sections are only necessary if you run into problems with the default installation procedure described above.

  • 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