Showing results for 
Search instead for 
Did you mean: 

setup the apache

Super Advisor

setup the apache

I have just install the apache server , but when start it " /usr/local/apache/bin/apachectl start " , it pop the message ""/usr/local/apache/bin/apachectl start: httpd could not be started " , can suggest how to config it ? thx.
Stuart Browne
Honored Contributor

Re: setup the apache

What does the line starting with 'HTTPD' say?

The comments above it should say "# the path to your httpd binary, including options if necessary".

It should point to your apache binary. If it's a custom build, then it will probably be something like '/usr/local/apache/bin/httpd'. Make sure that this file does exist, and is executable by the user you are running 'apachectl' with.
One long-haired git at your service...
Claudio Cilloni
Honored Contributor

Re: setup the apache

Be sure that there aren't errors in apache's configuration file.

Vitaly Karasik_1
Honored Contributor

Re: setup the apache

very general Apache's problem is unknown host name; in this case you need or define host/domain name in hosts/DNS/NIS or add ServerName to httpd.conf

Honored Contributor

Re: setup the apache

Sometimes more informations can be found in


and/or in


Smile I will feel the difference
K.C. Chan
Trusted Contributor

Re: setup the apache

Can you run "httpd -t" to check the configuration file and post error messages, if any.
Reputation of a thousand years can be determined by the conduct of an hour
Steven E. Protter
Exalted Contributor

Re: setup the apache

if httpd -t produces errors, I would suggest restoring httpd.conf.original and trying to start the apache web server.

If that fails you may wish to remove and reinstall the product, depending on what customization you've done.

If you have recently doen a Red Hat 7-9 upgrade or 8-9 upgrade, if you weren't careful that could have trashed the httpd.conf file.

Steven E Protter
Owner of ISN Corporation
Super Advisor

Re: setup the apache

I hv created a nobody group , it is OK now.