I recently switched all my sites from apache module to fastcgi using php 5.4.23 and I can't get php to log errors.
To prove it is not logging errors I created a php script like this..
The result in the browser is a blank page, no error messages.
That should show up in the error log but it does not.. Yet I see apache errors ok in the error log, just not php errors.
The php.ini in the settings for that site show
display_errors = On
log_errors = On
Also If I create a php script with phpinfo(); in it, it says
display_errors on
log_errors on
in my conf/last_httpd_ip_default.conf I see this...
ErrorLog "/var/www/vhosts/system/mysite.com/logs/error_log"
The log where I expect to see the errors is in /var/www/vhosts/system/mysite.com/logs/error_log
I get all the apache errors just fine, just NOTHING from php,.
Some sites on my server log ok, but most have this same problem
I would apprecate any help I can get on this.. I can't debug my php when I can't see the error output.
Also, if it makes any difference, I have the nginx proxy disabled on my server.
To prove it is not logging errors I created a php script like this..
Code:
<?
// This should throw an error as it is a non existant function
nonexistant_function(garbage);
?>
The result in the browser is a blank page, no error messages.
That should show up in the error log but it does not.. Yet I see apache errors ok in the error log, just not php errors.
The php.ini in the settings for that site show
display_errors = On
log_errors = On
Also If I create a php script with phpinfo(); in it, it says
display_errors on
log_errors on
in my conf/last_httpd_ip_default.conf I see this...
ErrorLog "/var/www/vhosts/system/mysite.com/logs/error_log"
The log where I expect to see the errors is in /var/www/vhosts/system/mysite.com/logs/error_log
I get all the apache errors just fine, just NOTHING from php,.
Some sites on my server log ok, but most have this same problem
I would apprecate any help I can get on this.. I can't debug my php when I can't see the error output.
Also, if it makes any difference, I have the nginx proxy disabled on my server.