apachectl start can’t find httpd but it is there?

Posted on

apachectl start can’t find httpd but it is there? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about apache-2.2, linux, web-server, configuration, .

Just configured and installed Apache (successfully as far as I know) on a remote server, via X-Win32 SSH.

In the bin directory I see “httpd” listed.

To start the web server my provided instructions for the server state:

From your installation Apache directory type, ‘./bin/apachectl start’.

However, I get the following error (11-14 just showing it is there):

server.edu(11): ls
bin     cgi-bin conf    htdocs  icons   include libexec logs    man     proxy
server.edu(12): cd bin
server.edu(13): ls
ab              apxs            dbmmanage       htpasswd        logresolve
apachectl       checkgid        htdigest        httpd           rotatelogs
server.edu(14): cd ..
server.edu(15): ./bin/apachectl start
./bin/apachectl: apache/bin/httpd: not found
./bin/apachectl start: httpd could not be started

Any help is greatly appreciated.

Thank You!

Solution :

Depending on your distro there are other commands to try:

service httpd restart
service apache2 restart

What distro are you using?

As I see, you have installed apache manually and it was mis-configured somewhere, because apachectl tries to launch apache/bin/httpd, which does not exist.

I assume you are already at apache directory, if httpd is in bin directory, you will be able to run httpd by ../apache/bin/httpd.

Leave a Reply

Your email address will not be published. Required fields are marked *