PHP Error Log

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply
johndoe
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Jul 26, 2017 7:32 pm

Wed Jul 26, 2017 7:41 pm

Hi,

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

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

Code: Select all

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

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 526
Joined: Mon Feb 22, 2016 5:52 pm

Thu Jul 27, 2017 9:46 am

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.

Post Reply