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

Installing Moodle/httpd.conf setup: Difference between revisions

From MoodleDocs
(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, ...)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=== httpd.conf file ===
If you run into problems when installing Moodle check the following settings for your Apache server in the ''apache\conf\httpd.conf'' file:


'''Note''': <br />
== index.php as default page ==
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:
 
*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).


*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 ==
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