What are the commands for stopping/starting/restarting the apache server? 'stop' will have to stop the web server completely, not just part of the web service.
When I type 'httpd stop', looks like only the chilliASP was stopped.....
Eagle
07-27-2001, 10:19 AM
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/httpd restart
But keep in mind, RAQ checks if httpd is running, if not it runs it (every 15 mins or so)
Thanks. it works.
Actually, i know the command, but I didn't include the path to the httpd. What I did was that execute the command 'httpd stop' when I am in the folder '/etc/rc.d/init.d/' folder. This suppose to work, but it didn't. It is kinda wierd.
ffeingol
07-27-2001, 10:37 AM
Nope, not wierd. You need to start/stop as root. Root's path is very limited and /etc/rc.d/init.d/ is not normally in root's path. If you wanted to execute it from within that directory, you'd have to issue:
./httpd start
the "./" Unix to look in the current directory.
Frank
Sakolwat
07-27-2001, 08:28 PM
How about "./httpd reload"?
If I modified some apache config, whether it's enough to just "reload".
ffeingol
07-27-2001, 08:35 PM
I don't believe there is a "reload" option. restart just does a stop then start.
Frank
Sakolwat
07-27-2001, 10:50 PM
I saw this option from "./httpd --help".
The result was:
Usage: ./httpd {start|stop|restart|reload|status}
ffeingol
07-27-2001, 11:04 PM
I had not seen reload before. I'd check the apache website to see what it does. My guess would be that it would cause Apache to re-read the config files.
Frank