Stopping httpd: [ OK ] Starting httpd: (HELP)

awaisuk

Verified User
Joined
Aug 20, 2009
Messages
5
Whenever i restart my httpd, it tells me this:

Stopping httpd: [ OK ]

Starting httpd:

Why is it not saying [ OK ] for STARTING HTTPD?

When i run these commands "service httpd status" and " ps aux | grep httpd":

httpd (pid 27556 27555 27546 27545 27451 27448 27433 27394 27346 27325 27324 27224) is running...

root 27224 0.0 0.4 22092 10132 ? Ss 12:31 0:00 /usr/sbin/httpd -k start -DSSL
apache 27324 0.2 0.6 28196 14296 ? S 12:45 0:03 /usr/sbin/httpd -k start -DSSL
apache 27325 0.2 0.7 29696 15148 ? S 12:45 0:03 /usr/sbin/httpd -k start -DSSL
apache 27346 0.1 0.6 28084 13532 ? S 12:46 0:01 /usr/sbin/httpd -k start -DSSL
apache 27394 0.0 0.6 27348 12812 ? S 12:49 0:00 /usr/sbin/httpd -k start -DSSL
apache 27433 0.0 0.7 29520 14948 ? S 12:55 0:00 /usr/sbin/httpd -k start -DSSL
apache 27448 0.0 0.5 26728 12140 ? S 12:57 0:00 /usr/sbin/httpd -k start -DSSL
apache 27451 0.1 0.6 27852 13252 ? S 12:57 0:00 /usr/sbin/httpd -k start -DSSL
apache 27545 0.6 0.7 29256 14656 ? S 13:04 0:00 /usr/sbin/httpd -k start -DSSL
apache 27546 0.0 0.4 22244 9568 ? S 13:04 0:00 /usr/sbin/httpd -k start -DSSL
apache 27556 0.0 0.4 22092 8404 ? S 13:05 0:00 /usr/sbin/httpd -k start -DSSL
root 27572 0.0 0.0 3936 696 ? S 13:05 0:00 grep httpd


I dont know if that is rightly started or not.

Thanks.
 
Check your start script for httpd to see if it's set to show the [OK] if the service is started.

It looks like it's running. Try just stopping it and then doing the ps aux command, to see if it's stopping.

(Don't forget to restart it.)

Jeff
 
This is what i get after i do the ps aux command: (This is the stuff for today, i didnt copy all the stuff from previous days)

root 26774 0.0 0.1 10160 2908 ? Ss 11:51 0:00 sshd: root@notty
root 26776 0.0 0.0 6636 1608 ? Ss 11:51 0:00 /usr/libexec/openssh/sftp-server
root 26982 0.0 0.1 10160 2872 ? Rs 12:17 0:00 sshd: root@notty
root 26984 0.0 0.0 4528 1260 ? Ss 12:17 0:00 -bash
root 27150 0.0 0.1 10128 2856 ? Ss 12:30 0:00 sshd: root@notty
root 27152 0.0 0.0 6640 1536 ? Ss 12:30 0:00 /usr/libexec/openssh/sftp-server
root 30330 0.0 0.0 4252 940 ? R 15:18 0:00 ps aux


How do i know if it stopped or not?
 
try to run the command : netstat -at
from the output try to find this :

tcp 0 0 *:http *:* LISTEN

If you find it then your server is started

Usually you are not getting the [OK] signl because there is a warning in/var/log/httpd/error_log eg:

[Wed Aug 19 18:31:51 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
 
Last edited:
You'd get the [OK only if it's in your startup script, which is why I mentioned that.

to see if httpd is running you'd run:
Code:
ps waux | grep httpd
and of course ignore the line for the grep command if it shows up.

Jeff
 
Back
Top