Website in comercial environment:
1) .htaccess and php directives
General rule is: php_attr_name PHP-variable value
a) Temporary enable error display
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_value error_reporting 1
b) Diable error display using .htaccess
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
c) memory limit
php_value memory_limit “32M”
d) maximum execution time limit
php_value max_execution_time 60 (see cmsmadesimple v5.1)
Example:
How to increase session life time (it is used to be 24 min in share hosting (for security resons):
If you have an e-commerce website then that is a problem for not logged in users who are shopping.
Le’s increase it to 4h
<ifModule mod_php4.c>
php_value memory_limit “14400″
</ifModule>
<ifModule mod_php5.c>
php_value memory_limit “14400″
</ifModule>
Note:
phpini() will show the same value.




(20 votes, average: 4.75 out of 5, rated)