Skip to main content

Update to alt-php and EA-php files, httpd restart and apache server status

Comments

21 comments

  • Pedro Fernandes

    I don't have LFD/CSF, but i also can see that issue, with the Apache Status showing:
    "Failed to receive status information from Apache.
    Unable to connect to local httpd server."

    Apache, however, is working fine.

    1
  • cPRex Jurassic Moderator

    We've got an update on this one: https://support.cpanel.net/hc/en-us/articles/41084398618519-Apache-Status-not-displaying-after-upgrading-to-v136

    but I'll keep everything in the thread that ciao70 linked to ensure I don't miss anything.

    1
  • bloatedstoat

    The resolution link provided cPRex in your post above produces a 404 mate.

    0
  • Pedro Fernandes

    bloatedstoat

    The link was left i think by mistake.

    You only need to run:

    /scripts/rebuildhttpdconf
    /scripts/restartsrv_httpd
     
    1
  • bloatedstoat

    Pedro Fernandes thank you.

    The above didn't resolve my issue though.

    0
  • Ricardo Salvador

    Same issue Pedro Fernandes runned that mantiane error Failed to receive status information from Apache.

    0
  • cPRex Jurassic Moderator

    Correct - that link shouldn't have been there to begin with, so I've removed that now.

    If you're still seeing the error even after rebuilding Apache and re-logging in to WHM, we'd like to see a ticket.

    0
  • bloatedstoat

    Our license is provided by a Partner Supported License so I am unable to open a ticket directly using the cpanel request portal. I have opened one with our provider. Assume there will be communication between you both cPRex ?

    0
  • cPRex Jurassic Moderator

    Yes, if necessary they'll poke us!

    1
  • Ricardo Salvador

    Hello good morning all,

    Any update tell me pls .

    i saw they updated to136.0.22 but still not fixed.

    0
  • cPRex Jurassic Moderator

    Last night's update did not contain a fix for this issue, so that is to be expected.

    If you'd already rebuilt Apache and you're still seeing this it would be best to create a ticket so this can be examined directly on your system.

    0
  • bloatedstoat

    Ricardo Salvador Pedro Fernandes cPRex this post pointed me in the right direction.

    https://support.cpanel.net/hc/en-us/community/posts/41451717897879-CSF-bug-with-whm-server-status

    I edited csf.conf to correct the path and the error has now vanished.

     

    0
  • bloatedstoat

    As an aside, our license is through our server provider and they wanted $200 plus tax an hour to investigate through a ticket. Glad I waited. I didn't create the problem, paying to investigate it is absurd.

    0
  • cPRex Jurassic Moderator

    bloatedstoat - that's crazy, and I'm sorry to hear that's how your provider is doing business.

    0
  • Ricardo Salvador

    I have made this to fix but with tonight update is back again:
    The bug in CPANEL-53901: the key file gets regenerated correctly, but the Apache template (ea4_main.default) still generates a hardcoded <Location /whm-server-status> block — it does not inject the key as a <Location> path. So Apache has no handler for /<secret_key> and returns 404. The WHM page gets nothing back and shows the error.

    Fix — permanent, survives rebuildhttpdconf

    cPanel's pre_virtualhost_global.conf include is the correct place for this. It is not overwritten by /scripts/rebuildhttpdconf.

    Step 1 — create the include:

    KEY=$(tr -d '[:space:]' < /var/cpanel/whm_server_status_key)

    cat > /etc/apache2/conf.d/includes/pre_virtualhost_global.conf << EOF

    # WHM Apache Status - workaround CPANEL-53901

    # Generated: $(date)

    # Key: ${KEY}

    <IfModule status_module>

    <Location /${KEY}>

    SetHandler server-status

    Order deny,allow

    Deny from all

    Allow from 127.0.0.1 ::1

    <IfModule security2_module>

    SecRuleEngine Off

    </IfModule>

    <IfModule security3_module>

    modsecurity_rules 'SecRuleEngine Off'

    </IfModule>

    </Location>

    </IfModule>

    EOF

    Step 2 — test and restart:

    apachectl configtest && /scripts/restartsrv_httpd

    Step 3 — verify:

    curl -si http://127.0.0.1/$(cat /var/cpanel/whm_server_status_key)?auto | head -3

    # Should return: HTTP/1.0 200 OK

    Then reload WHM > Server Status > Apache Status — it should work.

    0
  • cPRex Jurassic Moderator

    Ricardo Salvador - we're expecting this to be resolved in version 136 at this time.  If you're still seeing issues it would be best to create a ticket as you shouldn't need a custom workaround at this point.

    0
  • Ricardo Salvador

    Hello,

    Right now i have version: 136.0.27

    0
  • cPRex Jurassic Moderator

    Would you be able to create a ticket so we can take a look at that system?

    0
  • Ricardo Salvador

    the issue is license is on OVH and i dont have acess to cpanel support directly

    0
  • cPRex Jurassic Moderator

    You should still be able to contact your host to have them check an issue.

    0

Please sign in to leave a comment.