httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rod rook <>
Subject [users@httpd] Looking for an easier way to see if Apache is running.
Date Wed, 16 Feb 2005 04:48:29 GMT
I've successfully installed an Apache2 server on my comp with Madrake 10.0.
The only problem I have is my inability to know if it is started on boot as it 
is supposed to. The starting script is /etc/rc.d/init.d/httpd (as shown 

On boot, 'netstat -a' does not list the word, httpd. 
The Madrake Control Center (System -> services) shows httpd to be stopped 
although marked to start on boot. 

If I issue the command, apachectl start, I get a response like "httpd (pid 
1906) already running.."

Is there any easy way to tell if the server is running at the given moment? 
Why does the Control Center say it is stopped? Should I change the script in 
some way? I borrowed the script from someone on this mailing list and I am 
not sure if it is suitable for Mandrake 10.0.  
Thanks for your help in advance.

============================  starting on boot script ================
# Startup script for the Apache Web Server
# from: apache-httpd-users mailinglist, 09/21/2004
# chkconfig: 345 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#              HTML files and CGI.
# processname: httpd

# Source function library.
. /etc/rc.d/init.d/functions 

# See how we were called.
case "$1" in
         echo -n "Starting httpd: "
         /usr/local/apache2/bin/apachectl start
         echo -n "Shutting down http: "
         /usr/local/apache2/bin/apachectl stop
         status httpd
         $0 stop
         $0 start
         echo -n "Reloading httpd: "
         /usr/local/apache2/bin/apachectl restart
         echo "Usage: $0 {start|stop|restart|reload|status}"
         exit 1

exit 0

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message