Apache 2 is installed in the /etc directory. But when I use httpd -v from the terminal, it gives an error stating httpd command not found. How do I fix this error?
Platform: Linux (SUSE)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most likely it is because you are not in the user environment that has the command.
For example, if you were root, you could
su -and then tryhttpd -v.Otherwise, use the full path. In my case it is this:
It may be somewhere different on your system, but that is the location of that particular file even though my installation is located here:
/etc/httpd/