Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Building Websites (http://www.geekboards.com/forums/forumdisplay.php?f=3)
-   -   Installed Apache...Don't Know How to Start it (http://www.geekboards.com/forums/showthread.php?t=664)

DomainerZone 03-05-2006 04:17 AM

Installed Apache...Don't Know How to Start it
 
I installed Apache off the CentOS disc, but I don't really know how to start it up or shut it down. Is there some place that has all the commands or something? I also need to do some configuring...I think.

Soulwatcher 03-06-2006 05:28 AM

Sorry about getting back to you on this a day late but I have been helping developing another website. The command to start Apache (assuming that you are using Centos) would be "/usr/sbin/apachectl start"

Coop 04-13-2006 01:09 PM

If you on a redhat based distribution, you can also use the command :-

service httpd start

As root. It just saves you having to remember the full path. It actually runs the /etc/init.d/httpd script, which can also be used to start the service at bootup.

To have the service start automatically, run the command :-

chkconfig httpd on

This will cause startup and shutdown links to be placed in the appropriate runlevel directories under /etc/rc.d, so the service will be started on entering runlevel 3, then stopped on either changing to a lower runlevel or doing an 'init 6' (which reboots the server).


All times are GMT -5. The time now is 09:35 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.