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. doesnt work. any ideas? help would be grealty appreciated.Code:service http start
chris
Printable View
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. doesnt work. any ideas? help would be grealty appreciated.Code:service http start
chris
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.
Hey,
It worked exactly the wayi wanted too! Thanks Alot! :D I have one more question but it is completely off topic from this thread...
Chris