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!

Can't find Apache httpd command

Discussion in 'EasyApache' started by kshazad, Sep 7, 2011.

  1. kshazad

    kshazad Member

    Joined:
    Nov 4, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    51
    I've tried running httpd -v and the server is giving me "command not found" error.

    The command was working fine yesterday, any ideas how I can fix this?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please check the following:

    Code:
    whereis httpd
    You should see the following:

    Code:
    root@host [~]# whereis httpd
    httpd: /usr/sbin/httpd /etc/httpd
    If you are not seeing /usr/sbin/httpd, then please do the following:

    Code:
    root@host [/usr/sbin]# ls -lah httpd
    It should show this:

    Code:
    lrwxrwxrwx 1 root root 31 Aug 26 12:50 httpd -> /usr/local/apache/bin/apachectl*
    If not, then try this command:

    Code:
    cd /usr/sbin
    ln -s /usr/local/apache/bin/apachectl httpd
     
    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