Skip to main content

PHP error logs

Comments

6 comments

  • cPanelMichael
    Hello, Can you verify which PHP handler is assigned to the account (e.g. suPHP, DSO, PHP-FPM)? Thank you.
    0
  • HostMerit
    Only CGI is showing in the PHP Handler section as an option, even though SuExec module is installed.
    0
  • cPanelMichael
    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
  • HostMerit
    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
  • HostMerit
    Switched to suPHP and error logs are generating now, not sure where they were going earlier while in the stock CGI mode.
    0
  • cPanelMichael
    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.