HostMerit

Well-Known Member
Oct 24, 2004
163
0
166
New Jersey, USA
cPanel Access Level
DataCenter Provider
Is the account using PHP-FPM as it's PHP handler? If so, check to see if you notice any errors in the following log file:

/home/username/logs/domain_tld.php.error.log

I'm having a similiar issue. Moving a user from a system to a new system, and they're getting 500 errors that aren't logging. I've enabled display_errors, checked the local error_log, /usr/local/apache/logs/error_log, and in /home/USER/logs/

The user wants the old condition back where if there was a PHP error on their server it would display in the browser. Now we can't even get the error to log on the new server, but a 500 is replied.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello,

Can you verify which PHP handler is assigned to the account (e.g. suPHP, DSO, PHP-FPM)?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello,

Suexec isn't a PHP handler. We document the available PHP handlers and the considerations for using them at:

PHP Handlers - EasyApache 4 - cPanel Documentation

As far as the internal server error message (500 error code), that's an Apache error and thus should appear in the Apache error log (/usr/local/apache/logs/error_log). Are you sure the domain name resolves to the correct IP address?

Thank you.
 

HostMerit

Well-Known Member
Oct 24, 2004
163
0
166
New Jersey, USA
cPanel Access Level
DataCenter Provider
Meant suPHP. CGI is the handler, and repeated 500 errors, but the error isn't logging to /usr/local/apache/logs/error_log.

Quite sure as I've hardcoded the IP locally.

I can see the 500 in /usr/local/apache/domlogs/domain.com, but the error isn't logged, and isn't shown in the browser, only a 500 is returned.

I can enable suPHP, but why is cPanel not showing or logging the error under CGI mode, or displaying it in the browser?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463