Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I extracted the httpd...tar.gz from here, but I don't see apachectl.

[vagrant@centos48 opt]$ ls
httpd-2.2.23  httpd-2.2.23.tar.gz
[vagrant@centos48 httpd-2.2.23]$ find . -name apachectl
[vagrant@centos48 httpd-2.2.23]$ 
share|improve this question
up vote 3 down vote accepted

This is because you did not build the code. You downloaded the source code. So, you need to build it first to create the binaries and libraries.

share|improve this answer
So apachectl doesn't come with the binary? Why? – Kevin Meredith Jan 15 '13 at 15:41
@Kevin: It seems to me that you downloaded the source code not the binary. If you downloaded the binary, you should find it already there. – Khaled Jan 15 '13 at 15:42
I downloaded httpd-2.2.23.tar.gz from the above link, and then extracted it using 'tar -zxvf {file.tar.gz}' – Kevin Meredith Jan 15 '13 at 15:47
@Kevin: Yes, that's the source code. – mattdm Jan 15 '13 at 16:01
Doh! #Homer. I should've noticed that there wasn't a bin directory. Thanks – Kevin Meredith Jan 15 '13 at 16:11

You have downloaded the source code. apachectl is in there, but it's only in source form. You'd have to compile that and install the resulting binary.

But, unless you have a special need, don't. Instead,

yum install httpd

That will get you the compiled package, properly configured with a basic setup, and with all of the tools, including /usr/sbin/apachectl.

The version of Apache is slightly older than the one you've downloaded, but it includes backported security patches, and we're way past the era when new minor releases of Apache included very exciting new features, so it's unlikely that you really need it.

share|improve this answer

Your Answer


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.