cPanel PHP Error log empty
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!
-
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! 0
Please sign in to leave a comment.
Comments
1 comment