Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 2nd February 2008, 17:12
satimis satimis is offline
Senior Member
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default How to start Apache2 automatically at boot

Hi folks,

VMWare Server
Ubuntu 7.04 server amd64 (Host)
CentOS 5 x86_64 (Guest)

I need to start Apache2 at boot. I have xinetd installed and could not figure out how to set it for such a function.

# ls /etc/xinetd.d/
chargen-dgram   discard-stream  gssftp          tcpmux-server
chargen-stream  echo-dgram      klogin          time-dgram
daytime-dgram   echo-stream     krb5-telnet     time-stream
daytime-stream  eklogin         kshell          
discard-dgram   ekrb5-telnet    rsync

# ls -l /etc/rc.d/init.d/ | grep xinetd
-rwxr-xr-x 1 root root  2497 Mar 15  2007 xinetd

Besides I tried to reconfigure Apache2 and cound not find dpkg-reconfigure which is Debian package. What will be its equivalent on CentOS? Is there yum repo providing this package? TIA

Reply With Quote
Sponsored Links
Old 2nd February 2008, 17:33
topdog topdog is offline
Senior Member
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts

To start apache at boot on centos you need to do this
chkconfig --level 2345 httpd on
Apache does not run under xinetd.

There is no dpkg-reconfigure on centos you need to make the changes manually
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to start apache2 on Heart beat amohammad Installation/Configuration 10 10th November 2009 09:19
how to make application start automatically indonesia Desktop Operation 2 24th January 2008 08:42
Start Openfire at boot? tfunky Server Operation 8 4th January 2008 17:15
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 22:58
Apache2 don't start /var/www/sharedip don't exist Dr.Oetker General 14 6th May 2007 14:15

All times are GMT +2. The time now is 20:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.