PDA

View Full Version : starting apache from the command line


cwalcott
10-29-2002, 09:14 PM
Where are the startup scripts for apache kept? I'm familiar with how it's done with solaris. I see that httpd.conf is in /etc/httpd but I don't see where the start scripts are.

The reason why I ask is because I was working on the server remotely and somehow apache either crashed or suddenly quit on me. Either way, the only way I could find to restart it was to be at the machine and use the GUI Server Admin.

Thanks!

- chris

blb
10-29-2002, 10:21 PM
If you mean the equivalent to /etc/rc?.d scripts, that's in /System/Library/StartupItems; however, to start Apache from the CLI:

apachectl start

(which is in fact what the startup script for Apache does).