cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hello @ca2236

This is created by enabling error logging for the PHP version. You can enable it by going to WHM>>Software>>MultiPHP INI Editor -> Editor Mode

Code:
; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog.
;error_log = syslog
error_log = error_log
Code:
; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog.
;error_log = syslog
error_log = error_log
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Thanks,

However, I have a follow up question, on sites that do have the error_log working, it doesn't have this in the multiPHP INI Editor. It just is the text version of Basic typically. Is this due to using inherited php settings on multi php manager and it pulls from a global setting? If so.. Why is that working for the local file when the above code doesn't exist?

Sorry for asking, just trying to grasp this.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
It's possible this is set locally for those domains, within their respective php.ini, if you're running wordpress you can also enable error logging in the wp-config.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Yea, they should be, they can also be in /home/$user but most commonly found in /home/$user/public_html - you'd be looking for any .ini file most commonly there's user.ini, local.ini and php.ini
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Thanks,

This might be out of scope of cpanel, it still doesn't appear to log. when pasting

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; PHP: Runtime Configuration - Manual
; Example:
;error_log = php_errors.log
; Log errors to syslog.
;error_log = syslog
error_log = error_log


do I need a full path in error_log =
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
We are not. Thanks for all of these links, what is confusing is that the other sites do not have all these specific settings declared in /home/<username>/public_html/php.ini or the MultiPHP INI editor.

However, it is working.
 
  • Like
Reactions: cPanelLauren