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.

httpd status with details from ssh

Discussion in 'General Discussion' started by LAZer, Jul 1, 2010.

  1. LAZer

    LAZer Well-Known Member

    Joined:
    Jan 18, 2010
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    at net :D
    hi , how can i get apache httpd status from ssh with full details as what whm shows when viewing the link of apache status
    --> /scripts2/apachestatus

    i run the following command from ssh : httpd status
    but it only shows apache details till WWW........
    but i want the rest of the details . is there any commands to run from ssh to view full apache details ? thanks in advanced.
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Use apachectl

    You will need to use apachectl to get the information you want. This command:

    Code:
    # /usr/local/apache/bin/apachectl fullstatus
    is the exact command that is used by Main >> Server Status >> Apache Status. The WebHost Manager merely executes the above command and sends the output to the browser.

    The following command:

    Code:
    # /usr/local/apache/bin/apachectl status
    is equivalent to:

    Code:
    # /etc/rc.d/init.d/httpd status
    The init script, /etc/rc.d/init.d/httpd, merely calls apachectl and passes it the "status" argument.
     
  3. LAZer

    LAZer Well-Known Member

    Joined:
    Jan 18, 2010
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    at net :D
    thanks

    thank u very much for always answering in details and complete. :D

    so this worked too .
    # httpd fullstatus

    but as i had so many apache connections it wasnt so useful and readable and therefor it is much better for me to user full status only from whm itself :D

    thanks for your answering dear.
     
Loading...

Share This Page