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.

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:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

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

    Thank you.
     
  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:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
Loading...

Share This Page