How to check Apache

Discussion in 'Apache' started by wikivisas, Dec 29, 2010.

  1. #1
    How to check Apache if it is installed on server or not?
    and ho it can help in increasing blog speed?
     
    wikivisas, Dec 29, 2010 IP
  2. elicitservers

    elicitservers Peon

    Messages:
    714
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Apache, depending on the Linux distro you are using, is most times installed by default...check for "httpd" processes, better yet just put the IP of the server in a browser to see if the default Apache page shows up, or just browse to a random directory in your site and you should see the httpd server's signature in a directory index.
     
    elicitservers, Dec 29, 2010 IP
  3. amrox

    amrox Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    depends on how it was installed
    for debian, or its derivitives (ubuntu, knoppix etc), dpkg -l | grep apache
    for redhat and derivatives (centOS, Fedora etc): rpm -qa | grep httpd

    if its not rpm or deb based, or if was installed by source, see if its running (ps ax | grep httpd or ps ax | grep apache), or has any config: is there a directory called httpd or apache in /etc, /usr/local, or /var/log

    could also check if the default port is open: telnet localhost 80

    hope that helps


    Will need more information before discussing increasing blog speed: what's your Linux distribution, PC/Server spec, blogging s/w, traffic expectations, connection speed, apache settings etc. etc.
     
    amrox, Dec 29, 2010 IP
  4. jarrodw

    jarrodw Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Run these commands:

    find / -iname apachectl -exec ls
    netstat -tap | grep 80
    ls /etc/init.d/ | grep apache ; ls /etc/init.d | grep httpd ; sudo /etc/init.d/apache status ; sudo /etc/init.d/httpd status

    if one of these outputs something other than errors you probably have apache.
     
    jarrodw, Dec 29, 2010 IP