Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Httpd wil start, but won't stop

Status
Not open for further replies.

IAmJinxed

Programmer
Dec 10, 2001
5
NL
Hi,

I try to restart my httpd service but it won't stop. I get Startinh httpd [failed]
Starting httpd [OK]

I run a Tomcat engine and I try to do this from a JSP-page, but when i also shutdown the tomcat engine, apache still won't shutdown.

Can anyone tell me why he won't shutdown

Much thanks

Hugo Hendriks
 
Hi again,

Its different actually. Now, when i try and start the httpd service, it shows a succes, but when i check this using httpd --status-all, it's says that httpd is dead. Is the service httpd restart tool not working propperly and why won't the daemon start. The httpd.conf syntax is correct.

Does anybody now, if it's actually possible to restart the httpd service from the web. You prob need rights for this because its a port below 1024.

thanx

Hugo Hendriks
 
Hi,

What do you get from (as root) :

/usr/sbin/lsof -i TCP:80

You should see several listeners on port 80.

Have a look in the logs in /var/log/messages to see if there is anything logged regarding the non-starting of httpd.

Another thing you could do is test it outside of the sysv init script and see what happens :

/usr/sbin/httpd -v (assuming redhat - otherwise use '/usr/local/apache/bin/httpd -v')

On the web admin - see webmin -->
Hope this helps
 
I tried removing the httpd from /var/lock/subsys but also didnt help.
When i try /usr/sbin/lsof -i TCP:80, i get to see nothing

In messages, it just says if the httpd startup failed or succeeded, no other errors

my version of apache is 1.3.19
I use redhat 7.1
 
Hi,

Just a thought .. is there a stray process id file lying around :

ls -l /var/run/httpd.pid

If so (i.e. its not a cuurent date/time) then try removing that file.

Are you certain the httpd.conf syntax is OK ?

/usr/sbin/httpd -t

Regards
 
hi,

nope, when i try ls -l /var/run/httpd.pid, i get a nothing-found.

When i try httpd -t and httpd -T, i both get a syntax correct.

Is there another way to start the daemon other than service httpd restart?

thanx

Hugo
 
Hi,

From memory you can just do :

/usr/sbin/httpd

or

/usr/sbin/httpd -V (verbose)

To find out what '/sbin/service httpd start' does look at the sysv init script - i.e.

cat /etc/rc.d/init.d/httpd

The underlying 'start' command will be in that script .

Regards
 
Hi again,

I tried to start it manually, without the service, but it stays dead. Do you have any clue what it might be?

Maybe a clean install of 1.3.22?

grtz

H
 
Hi,

If you installed from rpm you could always try verifying the apache rpm to see if there are any missing files, etc :

rpm -V apache

(see --> )

Other than that, I hate to say re-install because that sounds too windozy but it might well be the quickest solution.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top