| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 # On some PHP servers it may help if this file is copied 2 # to the main moodle directory and renamed .htaccess 3 # 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: 9 # 10 # <Directory /web/moodle> 11 # AllowOverride All 12 # </Directory> 13 # 14 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 18 19 <IfDefine APACHE2> 20 AcceptPathInfo on 21 </IfDefine> 22 23 ### Secondly, you can define the default files in the Moodle 24 ### directories as follows: 25 26 DirectoryIndex index.php index.html index.htm 27 28 ### Thirdly, set up some PHP variables that Moodle needs 29 30 php_flag magic_quotes_gpc 1 31 php_flag magic_quotes_runtime 0 32 php_flag register_globals 0 33 php_flag file_uploads 1 34 php_flag short_open_tag 1 35 php_flag session.auto_start 0 36 php_flag session.bug_compat_warn 0 37 38 ### Fourthly, sometimes Apache limits the size of uploaded files 39 ### (this is a separate limit to the one in PHP, see below). 40 ### The setting here turns off this limitation 41 42 LimitRequestBody 0 43 44 45 ### These are optional - you may not want to override php.ini 46 ### To enable them, remove the leading hash (#) 47 48 #php_value upload_max_filesize 2M 49 #php_value post_max_size 2M 50 #php_value session.gc_maxlifetime 7200 51 52 53 ### You can change the following line to point to the 54 ### error/index.php file in your Moodle distribution. 55 ### It provides a form which emails you (the admin) 56 ### about 404 errors (URL not found). 57 58 #ErrorDocument 404 http://example.org/moodle/error/index.php 59 60 61 ### People have reported that these can help in some cases 62 ### (unusual) when you see errors about undefined functions 63 64 #php_value auto_prepend_file none 65 #php_value include_path . 66 67
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |