Delano

Registered
Sep 18, 2015
1
0
1
Veenendaal
cPanel Access Level
Root Administrator
In my C-Panel + WHM installation the error log is always empty. For some reason it creates a brand new one in the document root.

The setup I'm using is one with suPHP prehaps that has something to do with it. I've checked the php error log value in the php configuratior and it says error_log = error_log.

Since the configuration is global for each user, I can't just say /home/%user%/logs/error_log.

How am I suppose to handle this?

Thanks in advance!
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi,

The php.ini will specify where the error_log is held. Since with that directive (error_log = error_log), this means that if there ARE errors, those errors will be send to "${PWD}/error_log". So if the PHP application is executed from '/home/${user}/public_html', the error_log in public_html will be populated in the event of PHP errors.

The ACTUAL cPanel PHP error_log (/usr/local/cpanel/logs/error_log) is for cPanels internal PHP only, and not Apache's PHP.

I hope this helps!