kshazad

Member
Nov 4, 2010
21
0
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?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please check the following:

Code:
whereis httpd
You should see the following:

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

Code:
[email protected] [/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