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 Handler set to none after update

Discussion in 'General Discussion' started by robertjw, Feb 22, 2017.

Tags:
  1. robertjw

    robertjw Member

    Joined:
    Oct 18, 2013
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Server is running
    CENTOS 6.8 x86_64 WHM 62.0 (build 15)

    Last night a cpanel update was logged in /var/cpanel/updatelogs. After this update completed the server crashed.

    All PHP Handlers were changed from suphp to none

    Any thoughts on why this would have happened?
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    599
    Likes Received:
    90
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Yikes! That's a pretty nasty bug. I've not seen anything like this reported. Any chance you could throw in a ticket so we can take a look and see what happened?
     
  3. robertjw

    robertjw Member

    Joined:
    Oct 18, 2013
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I can, but would that require access? I don't think the company this is for will allow external access for legal reasons.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @robertjw,

    Yes, it would require access to the affected system to take a closer look at what happened.

    Does this system use any custom applications such as Nginx? Do you notice any error messages when browsing through the log file associated with this update in the /var/cpanel/updatelogs/ directory?

    Thank you.
     
  5. robertjw

    robertjw Member

    Joined:
    Oct 18, 2013
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    No, no Nginx or anything custom that I know of.

    There are errors related to ModSecurity. I was attempting to run ModSecurity, but had trouble with the default modsec config vile locations. I thought I had it fixed, but the cpanel update must have created a duplicate config file resulting in some errors. We had several messages like this:
    Code:
    [2017-02-22 00:05:52 -0700]      [27621] ModSecurity: Found another rule with the same id
    [2017-02-22 00:05:52 -0700]      [27621] AH00526: Syntax error on line 22 of /etc/apache2/conf.d/modsec_vendor_configs/comodo_apache/00_Init_Initialization.conf:
    [2017-02-22 00:05:52 -0700]      [27621] ModSecurity: Found another rule with the same id
    [2017-02-22 00:05:52 -0700]      [27621] Can't use string ("Unable to detect Apache version "...) as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/AdvConfig.pm line 68.
    
    We had to disable ModSecurity to get Apache back up.

    Only other error messages that aren't like those are these:
    Code:
    [2017-02-22 00:06:40 -0700]      [27621] (XID c9sb3e) The system failed to set the user ID to “501” and the group ID to “99” on “/home/npl/public_html/addons_sub/form” because of an error: Operation not permitted at /usr/local/cpanel/scripts/enablefileprotect line 101.
    [2017-02-22 00:06:40 -0700]      [27621] (XID 7rqw6e) The system failed to set the permissions on “/home/npl/public_html/addons_sub/form” to “0750” (as EUID: 501, EGID: 99 99) because of the following error: Operation not permitted at /usr/local/cpanel/scripts/enablefileprotect line 101.
    
    I wouldn't think any of these would change the PHP Handlers.
     
    #5 robertjw, Mar 20, 2017
    Last edited by a moderator: Mar 20, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @robertjw,

    We'd need access to an affected system in order to determine what might have happened. Feel free to open a support ticket if you'd like us to take a closer look.

    Thank you.
     
Loading...

Share This Page