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!

fastcgi ignores display_errors = Off

Discussion in 'General Discussion' started by Nash1, Nov 13, 2015.

  1. Nash1

    Nash1 Member

    Joined:
    Oct 20, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    San Diego
    cPanel Access Level:
    Root Administrator
    Hello All,

    I am running WHM 11.52 with EA3 using fastcgi and PHP 5.6. When I use WHM > PHP Configuration Editor > Advanced to set display_errors = Off, nothing happens. The setting is ignored. PHP warnings still appear on the web pages. Even restarting Apache and killing off all php processes doesn't help.

    If I put a .user.ini in the public_html of the account that contains:
    display_errors = Off
    error_reporting = 0

    Then the PHP warnings go away. How can I set display_errors = Off for all sites in WHM? Also worth noting, log_errors = On, fails to log the PHP warnings to the Apache error_log.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you verify if this is only happening when using FCGI as your handler?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Nash1

    Nash1 Member

    Joined:
    Oct 20, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    San Diego
    cPanel Access Level:
    Root Administrator
    I'm running a production environment with over 150 domains. How can I test that without breaking things? I do not want to change the FCGI handler for all of the domains.

    -Ron
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you check to see if there are any .htaccess files in the document root of the domain name that could be adjusting this option on an account-level? Also, if you upload a PHPINFO file in the same directory, does it show the correct value?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice