1 # On some PHP servers it may help if this file is copied
2 # to the main moodle directory and renamed .htaccess
4 # As soon as you do this, check your web site. Is it
5 # still working OK? If you are getting a "configuration
6 # error" then you may need to enable overrides by editing
7 # the main httpd.conf for Apache and in the main server
8 # or virtual server area, adding something like:
10 # <Directory /web/moodle>
15 ### Firstly, if you are using Apache 2, you need the following
16 ### three lines to allow Apache to pass a PATH_INFO variable
17 ### correctly for URLs like http://server/file.php/arg1/arg2
23 ### Secondly, you can define the default files in the Moodle
24 ### directories as follows:
26 DirectoryIndex index.php index.html index.htm
28 ### Thirdly, set up some PHP variables that Moodle needs
30 php_flag file_uploads 1
31 php_flag short_open_tag 1
32 php_flag session.auto_start 0
33 php_flag session.bug_compat_warn 0
35 ### Fourthly, sometimes Apache limits the size of uploaded files
36 ### (this is a separate limit to the one in PHP, see below).
37 ### The setting here turns off this limitation
42 ### These are optional - you may not want to override php.ini
43 ### To enable them, remove the leading hash (#)
45 #php_value upload_max_filesize 2M
46 #php_value post_max_size 2M
47 #php_value session.gc_maxlifetime 7200
50 ### You can change the following line to point to the
51 ### error/index.php file in your Moodle distribution.
52 ### It provides a form which emails you (the admin)
53 ### about 404 errors (URL not found).
55 #ErrorDocument 404 http://example.org/moodle/error/index.php
58 ### People have reported that these can help in some cases
59 ### (unusual) when you see errors about undefined functions
61 #php_value auto_prepend_file none
62 #php_value include_path .