php error logs

I have WSOD issue and would like to investigate issue.

Need help with php.ini config - or other config if php.ini is not starting point - for php error logs.

Kind regards,

P.S. I know where to get apache error logs and those logs are not sufficient.

3 Replies

in your php.ini file set errorlog to a file in a folder writable by the web server user (assuming you're running apache modprefork) the php.ini file location varies with distribution which are you using?

If this is Apache + mod_php on Debian or Ubuntu, the relevant php.ini file is /etc/php5/apache2/php.ini

log_errors = On

That will make PHP errors show up in Apache logs by default.

If you want to send error messages to another file, you can also add

error_log = /path/to/error_log

but you'll need to make sure that the log file is writable by www-data.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct