Find the answer to your Linux question:
Results 1 to 3 of 3
ok, I am using Astrumi to host a website. How can I get Apache to boot up on start automatically without manually doing it? i have used Code: service http ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    16

    Lightbulb Apache on Startup


    ok,

    I am using Astrumi to host a website. How can I get Apache to boot up on start automatically without manually doing it? i have used
    Code:
    service http start
    . doesnt work. any ideas? help would be grealty appreciated.


    chris

  2. #2
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Turn Around
    Posts
    202
    I believe this will vary from distro to distro, but this is how it works on Debian.

    1.) Make sure 'apache' is in /etc/init.d (or possibly apache2, etc.). If it is not, make a quick shell script used to run apache and place it in /etc/init.d.
    2.) Make a symlink in /etc/rcx.d where (x is your default runlevel) to the binary in /etc/init.d
    3.) In the symlink name use a name similar to the others in the directory, like 'S99apache'. The higher the number (in that case 99), the later it starts on boot-up. I believe you should use 99.

    Good luck! Keep in mind this is for DEBIAN and likely isn't the exact same. HOWEVER this should give some pointers that will hopefully allow you to figure it out on your own. Post again if you need help.

    Be well!
    -Dan

    P.S. Just remembered... check out http://aboutdebian.com/linux.htm and scroll down to "Starting Up". There's a great explanation on this startup system there.

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Posts
    16

    Awesome!

    Hey,

    It worked exactly the wayi wanted too! Thanks Alot! I have one more question but it is completely off topic from this thread...


    Chris

Posting Permissions

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