Abs
Abs

Reputation: 57916

PHP: Log errors to a logfile locally

I am trying to setup PHP to log errors locally so that I can solve this problem.

However, I can't even get this to work. I have followed this tutorial, but nothing. Does it only log fatal errors or what?

Is there anything else I need to make sure of?

Upvotes: 1

Views: 312

Answers (1)

jspcal
jspcal

Reputation: 51904

need these settings:

log_errors = on

error_reporting = E_ALL

if you want to set these in .htaccess, you can do somn like:

php_value log_errors 1

php_value error_reporting 6143

Upvotes: 1

Related Questions