Activities

December 2009
M T W T F S S
« Nov   Jan »
 123456
78910111213
14151617181920
21222324252627
28293031  

Enabling php error logging

1. Create a file where webserver can write

#touch /home/path/public_html/php_errors.log && chown -R 777 /home/path/public_html/php_errors.log

2. Create or add the following lines on .htaccess file

php_flag log_errors on php_value error_log /home/path/public_html/php_errors.log

It also possible with enable the same values on php.ini file.

A sample .htaccess file will look like this

php_flag log_errors on php_value […]