Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP and PHP-FPM logs for domain

Discussion in 'EasyApache' started by schatzman, Aug 3, 2017.

Tags:
  1. schatzman

    schatzman Member

    Joined:
    Apr 9, 2017
    Messages:
    22
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    europe
    cPanel Access Level:
    Website Owner
    hello

    where can i find the php and php-fpm error logs for domains? as im running a script that crash and give me error 503.. and while running all websites on server dont load.. just hang until they also crash with 503 and php-fpm is restarted..

    thanks
    Matan
     
    Ashikur Rahman likes this.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    PHP errors are logged to an error_log file in the document root where the PHP script is uploaded to. As for the global PHP-FPM error log, you can find that at:

    /opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log

    You'd replace "ea-php$$" with a specific version of PHP (e.g. ea-php70). You may also want to review the Apache error log (/usr/local/apache/logs/error_log) when troubleshooting that error code.

    Thank you.
     
Loading...

Share This Page