Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814

    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

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    There is no need to use xinetd in this case. You have to do
    Code:
    #chkconfig httpd on
    to start it immediately you would do
    Code:
    #service httpd start
    or
    Code:
    #/etc/init.d/httpd start

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •