Skip to main content

Error 500 with nothing in the logs

Comments

12 comments

  • Nicola Urbinati
    Well, it was apparently somethig about security, as it's working again now, without my intervention... Can some of cPanel/WHM security engines throw that behaviour on a site? Where can I look for the right incident?
    0
  • Nicola Urbinati
    Ok, found it: it was a low PHP memory_limit Having no tip from the logs caused me an headache ;)
    0
  • cPanelMichael
    k, found it: it was a low PHP memory_limit Having no tip from the logs caused me an headache

    Hello @Nicola Urbinati, I'm glad to see you were able to determine the cause of the issue. Generally, PHP errors are logged to the error_log file located in the document root of the domain name that was accessed when the error was generated. Do you see an error_log file in the document root of the affected website? If not, can you verify which PHP handler is assigned to the domain? Thank you.
    0
  • Nicola Urbinati
    The handler should be suPHP (7.2) with FPM (as noted in MultiPHP Manager, even if my other sources like the system information page in joomla say: Server API FPM/FastCGI, I think from phpinfo). In the directory root I have the logs directory, and in the file for that domain (domain_com.php.error.log) there was no hint at the incident, as I noted before. Nor I saw any line about it in the Errors page in cPanel. Thank you, I'm eager to help investigating if you need it.
    0
  • Nicola Urbinati
    PS: I noted now "PHP Handlers do not apply to PHP-FPM." So joomla is right: FastCGI/FPM.
    0
  • cPanelMichael
    Hello @Nicola Urbinati, With PHP-FPM, the individual error log for PHP scripts is located in the following location: /home/username/logs/domain_com.php.error.log Are you sure that no entries exist at all in this log file at the times when the memory limit was reached? Thank you.
    0
  • Nicola Urbinati
    That's exactly where I searched for hints, and found nothing. Might be Joomla thew the error before PHP could do it, but even Joomla logs were without lines about the incident.
    0
  • cPanelMichael
    Hello @Nicola Urbinati, We're happy to take a closer look at your server to see why the PHP errors are not logged. You can open a
    0
  • Nicola Urbinati
    Ticket: 10082599
    0
  • Nicola Urbinati
    Sorry @cPanelMichael I must have problems opening the ticket: I have errror 500 on your store and ticket sites from Chrome, trying again from Mozilla (they're working from there)
    0
  • Nicola Urbinati
    Ticket: 10082823
    0
  • cPanelMichael
    Hello, To update, it looks like the global PHP-FPM error log for PHP version 7.2 was helpful for troubleshooting the specific error message: /opt/cpanel/ea-php72/root/usr/var/log/php-fpm/error.log Thank you.
    0

Please sign in to leave a comment.