How to start Apache2 automatically at boot

Discussion in 'Server Operation' started by satimis, Feb 2, 2008.

  1. satimis

    satimis New Member

    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

  2. topdog

    topdog New Member HowtoForge Supporter

    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

Share This Page