www.centos.org Forum Index CentOS 5 - General Support How to start Apache automatically at boot
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: How to start Apache automatically at boot | #2 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2005/9/11
From Paris, France
Posts: 16
|
in a terminal session execute the command ntsysv , this will show you all the services started at bootime, select httpd
|
||
Posted on: 2008/2/2 15:36
|
|||
|
Re: How to start Apache automatically at boot (SOLVED) | #3 |
|
|---|---|---|---|
|
Regular Board Member
![]()
Joined: 2006/11/14
From
Posts: 113
|
Quote:
Thanks for your advice. I got it done now. I have been playing around with ntsysv on Xterm before unable to run it as root. # yum list installed | grep ntsysv The package has been installed. Now I found the trick. It must be run as super root (su -). B.R. satimis |
||
Posted on: 2008/2/2 16:13
|
|||
|
Re: How to start Apache automatically at boot | #4 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2008/1/28
From
Posts: 4
|
You can also change whether services start at boot with the chkconfig command. For example, to have Apache (which Centos calls httpd instead of apache2 as in Debian/Ubuntu) start only in runlevels 3,4, and 5, use this command:
chkconfig --level 234 httpd on This command will list the current setting for httpd: chkconfig --list httpd Centos usually defaults to booting to runlevel 3 (standard multi-user) or 5 (multi-user with graphical logon). You can display the previous and current runlevels with the runlevel command. Oh yeah, the chkconfig command will have to be run as root. Hope this helps. |
||
Posted on: 2008/2/4 19:35
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
satimis






You cannot start a new topic.
You can view topic.