How do I start Apache automatically when Ubuntu server boots up?
I installed it from source because I like to run the latest stuff. I've found you can't always trust Aptitude to have the latest.
This should be the default behavior with the package in Ubuntu Server.
If for some reason it's not working, try the following command:
sudo update-rc.d apache defaults
This will create the symlinks needed for Apache's init scripts to be called at boot.
If you installed Apache via aptitude
, it should have installed an init-Script (have a look at /etc/init.d/
). Therefore, it should start automatically already.
However, you can run sudo update-rc.d apache2 defaults
to re-install the symlinks of the init-script.
Here is a nice article describing what it's all about.