1753730 Members
4551 Online
108799 Solutions
New Discussion юеВ

Re: setup the apache

 
juno2
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.
7 REPLIES 7
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.

Ciao
Claudio
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

Vitaly
Huc_1
Honored Contributor

Re: setup the apache

Sometimes more informations can be found in

/var/log/httpd/error.log
/var/log/https/access.log

and/or in

/var/log/messages

J-P
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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
juno2
Super Advisor

Re: setup the apache

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