| Author |
Message |
wbdnet
Joined: 15 Jan 2012
Posts: 2
|
| Posted: Sun Jan 15, 2012 5:27 pm Post subject: 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. |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Sun Jan 15, 2012 5:48 pm Post subject: |
|
|
| in your php.ini file set error_log to a file in a folder writable by the web server user (assuming you're running apache mod_prefork) the php.ini file location varies with distribution which are you using? |
|
| Back to top |
|
hybinet
Joined: 02 May 2008
Posts: 1058
|
| Posted: Sun Jan 15, 2012 5:52 pm Post subject: |
|
|
If this is Apache + mod_php on Debian or Ubuntu, the relevant php.ini file is /etc/php5/apache2/php.ini
Code: 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
Code: error_log = /path/to/error_log
but you'll need to make sure that the log file is writable by www-data. |
|
| Back to top |
|
wbdnet
Joined: 15 Jan 2012
Posts: 2
|
| Posted: Mon Jan 16, 2012 9:46 am Post subject: THANKS |
|
|
| Got. Thanks. |
|
| Back to top |
|
| |