nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to start Apache2 automatically at boot

This is a discussion on How to start Apache2 automatically at boot within the Web servers forums, part of the Mastering Servers category; Hi folks, VMWare Server Ubuntu 7.04 server amd64 (Host) CentOS 5 x86_64 (Guest) I need to start Apache2 at boot. ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 07:38 PM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
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/
Code:
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
Code:
-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


B.R.
satimis
Reply With Quote
  #2 (permalink)  
Old 02-02-2008, 09:23 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Apache2 is not started using xinetd. You need to use /etc/init.d/httpd script.

RHEL / CentOS uses - ntsysv command to setup boot service
Code:
ntsysv
update-rc.d like command on Redhat Enterprise / CentOS Linux

Debian / Ubuntu user has sysvconfig command
Code:
sudo sysvconfig
Ubuntu / Debian Linux: Services Configuration Tool to Start / Stop System Services
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 03-02-2008, 06:03 PM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default

Quote:
Originally Posted by rockdalinux View Post
Apache2 is not started using xinetd. You need to use /etc/init.d/httpd script.

RHEL / CentOS uses - ntsysv command to setup boot service
Code:
ntsysv
Thanks for your advice. I got it done now. Previously I couldn't not make "ntsysv" to work. Later I found it needs "su -" to work.


satimis
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Debian Apache2 Enable PHP and Perl pansarevai Web servers 3 21-11-2008 01:11 AM
run a command automatically after every 10 mins vikas027 Shell scripting 1 01-11-2007 07:24 PM
Redhat Enterprise Linux RHEL - Start service on boot chimu Getting started tutorials 0 26-01-2007 07:29 PM
VirtualHost Problems on Apache2 rcordeiro Linux software 3 08-11-2006 10:30 PM
debian apache2 cgi-bin location Linux software 1 24-01-2006 06:44 PM


All times are GMT +5.5. The time now is 08:34 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38