Apache not responding while server is online

9,613

If it were me I'd....

  • start with top - always the first place to look when things are amiss - is the load average too high? Too low?

  • next, netstat -nap | less - is the webserver listening on the relevant ports?

  • if apache is running, then check the webserver logs - is any traffic going through? Anny errors logged?

  • then the messages log - is the firewall blocking traffic? Is there anything else amiss?

this morning the server turned itself magically off

Does the error log show it being shutdown? If not, does the messages log show the oom killer terminating processes?

Share:
9,613

Related videos on Youtube

LHolleman
Author by

LHolleman

Updated on September 18, 2022

Comments

  • LHolleman
    LHolleman over 1 year

    Since a hour, apache stopped responding. I can reach the server with putty and the average load is only a few percent. Apache is (re)starting without error. If it helps: this morning the server turned itself magically off but in this case it's still on, it worked all day without any further problems.

    I have absolutely no idea what to look/search for :(

    • ceejayoz
      ceejayoz over 11 years
      Servers don't turn themselves off "magically".
    • LHolleman
      LHolleman over 11 years
      I know, it probably crashed
    • ceejayoz
      ceejayoz over 11 years
      So take a look in /var/log/httpd or /var/log/apache2 or similar and see what the error logs show.
    • user9517
      user9517 over 11 years
      You don't need a Q&A site you need education and a consultant.
    • ncmathsadist
      ncmathsadist over 7 years
      I encountered a problem with SELinux. This can cause apache not to work after it has been installed. You have to configure it correctly for the enabling of web serving.