Changeset 1305

Show
Ignore:
Timestamp:
11/21/07 21:11:02 (1 year ago)
Author:
rho
Message:

tweaked default php flags values

Signed-off-by: Rolando Espinoza La Fuente <rho@prosoftpeople.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/htaccess-dist

    r1303 r1305  
    2020DirectoryIndex index.php 
    2121 
    22 # Whether to display PHP error messages in page output. Recommended to be off for production systems. 
    23 # Messages will be logged to Apache's error log regardless. 
    24 #php_flag display_errors on 
    25  
    26 # PHP defaults to allowing file uploads of max 2MB, below is example option for 5MB. 
    27 # NB: Adjusting value may not work, depending on other configured php and apache limits. 
    28 # for more info see http://php.net/manual/en/features.file-upload.php and http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody 
    29 # post_max_size should be slightly larger than upload_max_filesize, but the default is usually 8MB anyway. 
    30 #php_value post_max_size 8388608 
    31 #php_value upload_max_filesize 5242880 
    32  
    33 # Elgg can be more of a RAM lover than PHP's default of 8 meg. E.g. 16 meg: 
    34 #php_value memory_limit 16777216 
    35  
    36 # Not really necessary, just to be clean 
    37 #php_flag short_open_tag off 
    38 # Forgot that anyone might still have this turned on 
    39 #php_flag register_globals off 
    40  
    4122# php 4, apache 1.x 
    4223<IfModule mod_php4.c> 
     24        # default memory limit to 16Mb 
    4325        php_value memory_limit 16777216 
     26        # to make sure register global is off 
    4427        php_value register_globals 0 
     28        # max post size to 8Mb 
     29        php_value post_max_size 8388608 
     30        # upload size limit to 5Mb       
     31        php_value upload_max_filesize 5242880 
     32        # hide errors, enable only if debug enabled 
     33        php_value display_errors 0 
    4534</IfModule> 
    4635 
    4736# php 4, apache 2 
    4837<IfModule sapi_apache2.c> 
     38        # default memory limit to 16Mb 
    4939        php_value memory_limit 16777216 
     40        # to make sure register global is off 
    5041        php_value register_globals 0 
     42        # max post size to 8Mb 
     43        php_value post_max_size 8388608 
     44        # upload size limit to 5Mb       
     45        php_value upload_max_filesize 5242880 
     46        # hide errors, enable only if debug enabled 
     47        php_value display_errors 0 
    5148</IfModule> 
    5249 
    5350# php 5, apache 1 and 2 
    5451<IfModule mod_php5.c> 
     52        # default memory limit to 16Mb 
    5553        php_value memory_limit 16777216 
     54        # to make sure register global is off 
    5655        php_value register_globals 0 
     56        # max post size to 8Mb 
     57        php_value post_max_size 8388608 
     58        # upload size limit to 5Mb       
     59        php_value upload_max_filesize 5242880 
     60        # hide errors, enable only if debug enabled 
     61        php_value display_errors 0 
    5762</IfModule> 
    5863