Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got Apache 2.2 running on Windows 7. However, the command line does not work - if I type in httpd it says:

httpd is not recognized as an internal or external command, program or batch file.

Why is this and how do I fix it?

share|improve this question

1 Answer 1

Add directory with httpd.exe to PATH environment variable.

share|improve this answer
2  
Or type the full path to httpd.exe as part of the command. Tedious, but works if the PATH can't be changed. –  Ed Fries Feb 21 '11 at 23:08
    
@All, sorry This site doesn't allowing me for posting the comment of the @gelraen answer.so i posted in answer block. @gelraen I also facing same problem,so you suggested to set path in environment variables. can you suggest me where will find Httpd.exe directory. –  ur truly friend Jul 9 '13 at 9:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.