\r
<blockquote>\r
<hr>\r
-<p><b>Answer:</b> Some web servers don't support the default method Moodle uses to pass arguments to a script.</p>\r
-<p>As Admin, go into the "Configure Variables" page and change the setting for \r
- "slasharguments". You should now be able to access your uploaded files.</p>\r
+<p><b>Answer:</b> Your web server needs to be configured to allow the part of the URL \r
+after a script name to be passed directly to the script. This is \r
+usually enabled in Apache 1, but is usually disabled by default in \r
+Apache 2. To turn it on, add these lines to your httpd.conf, or to \r
+a .htaccess file in your local directory (see the \r
+<A HREF="./?file=install.html#webserver">Install documentation</A> for more details): \r
+\r
+<blockquote>\r
+<pre><IfDefine APACHE2>\r
+ <b>AcceptPathInfo</b> on\r
+</IfDefine>\r
+</pre>\r
+</blockquote>\r
+\r
+<p>If you are not using another type of web server then you can switch Moodle \r
+ to use an alternative method. The disadvantages are a slight loss of \r
+ performance for your users and you won't be able to use relative links \r
+ within HTML resources.\r
+<p>To use this alternative method: login as Admin, go into the "Configure Variables" page \r
+ and change the setting for "<b>slasharguments</b>". You should now be able to \r
+ access your uploaded files.</p>\r
</blockquote>\r
\r
\r
</blockquote>\r
<p>Just make sure index.php is in the list (and preferably towards the start \r
of the list, for efficiency).</p>\r
- <p>Secondly, Moodle requires a number of PHP settings to be active for it to \r
+ <p>Secondly, if you are using Apache 2, then you should turn on the <i>AcceptPathInfo</i>\r
+ variable, which allows scripts to be passed arguments like http://server/file.php/arg1/arg2.\r
+ This is essential to allow relative links between your resources, and also \r
+ provides a performance boost for people using your Moodle web site. You can \r
+ turn this on by adding these lines to your httpd.conf file.</p>\r
+<blockquote>\r
+<pre><IfDefine APACHE2>\r
+ <b>AcceptPathInfo</b> on\r
+</IfDefine>\r
+</pre>\r
+</blockquote>\r
+\r
+ <p>Thirdly, Moodle requires a number of PHP settings to be active for it to \r
work. <B>On most servers these will already be the default settings.</B>\r
However, some PHP servers (and some of the more recent PHP versions) may \r
have things set differently. These are defined in PHP's configuration\r
This only works on Apache servers and only when Overrides have been allowed.\r
<BLOCKQUOTE><PRE>\r
DirectoryIndex index.php index.html index.htm\r
+\r
+<IfDefine APACHE2>\r
+ <b>AcceptPathInfo</b> on\r
+</IfDefine>\r
+\r
php_value magic_quotes_gpc On\r
php_value magic_quotes_runtime Off\r
php_value file_uploads On\r