PHP error logs
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.
-
Hello, Can you verify which PHP handler is assigned to the account (e.g. suPHP, DSO, PHP-FPM)? Thank you. 0 -
Only CGI is showing in the PHP Handler section as an option, even though SuExec module is installed. 0 -
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. 0 -
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? 0 -
Switched to suPHP and error logs are generating now, not sure where they were going earlier while in the stock CGI mode. 0 -
I can enable suPHP, but why is cPanel not showing or logging the error under CGI mode, or displaying it in the browser?
Feel free to open a support ticket and we can take a closer look at the affected system to see why that's happening. Create Support Ticket - Version 68 Documentation - cPanel Documentation Thank you.0
Please sign in to leave a comment.
Comments
6 comments