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!

server-status stopped working

Discussion in 'Security' started by 63bus, Oct 5, 2014.

  1. 63bus

    63bus Active Member

    Joined:
    Mar 31, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    I ran EasyApache last night to upgrade my server to the latest PHP and now http://mysite/server-status is giving me a 403 error.

    I previously had this added to Post VirtualHost Include (All Versions):
    While trying to figure out what was wrong I found that this was a feature under Tweak Settings -> System -> Allow server-info and server-status now so I removed the above added my IP to Allow server-info... box.

    I checked my /etc/httpd/conf/httpd.conf and See these 3 lines in there:
    MY.IP is my local IP, of course, and I triple-checked that is correct.
    (It has not changed and it was working with that IP before the EasyApache run)

    whm-server-status works fine from within WHM.

    I have CMC from configserver.com running on my site and I can see I got this error in the modsecurity logs (an excerpt):
    HTTP/1.1 403 Forbidden
    Apache-Error: [file "mod_access_compat.c"] [line 352] [level 3] AH01797: client denied by server configuration: %s%s
    Apache-Handler: default-handler
    WAF: ModSecurity for Apache/2.7.7 (http://www.modsecurity.org/).
    Server: Apache
    Engine-Mode: "ENABLED"

    Any tips on what to fix to get this working again? Thank you.
     
  2. 63bus

    63bus Active Member

    Joined:
    Mar 31, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    Scratch that - I have CloudFlare on my site and mod_cloudflare must not have been compiled correctly when I ran EasyApache.

    I don't know why it didn't work but I noticed all of the recorded IPs on my site were now Cloudflare IPs instead of the real IPS.

    I re-ran EasyApache and everything is working now.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
     
    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