PHP Error Log

A

Anonymous

Guest
Hi,

I'm having problem getting PHP to write to error log.

In php.ini file, i have set the following :

Code:
log_errors = On
error_log = /usr/local/apache2/logs/php-error.log

my php-error.log file has 777 permission

But i still i cannot get any error log written to the file.
Anything i miss ? Thanks for the kind help.
For info, i'm on Fedora 25 with PHP 7.1.7
 
Have you checked phpinfo?

PHP can still process other php.ini files which may change the values, but certainly check the path and make sure log_errors is on.
 
Back
Top