Tag Archives: htaccess

Debugging php can be a hurdle

Debugging PHP can be a hurdle. Specially if you dont have access to something like XDebug. A great way to solve those things is by reading the log files PHP and Apache is generating. One way is enabling error logging in htaccess like this:

php_flag log_errors On
php_value error_log /home/ranza/Sites/project/logs/php_errors.log

Of course you need to create the php_errors.log file and set chmod to 755