How do I start apache automatically when ubuntu server boots up
This should be the default behavior with the package in Ubuntu Server.
If for some reason it's not working, try the following command:
This will create the symlinks needed for Apache's init scripts to be called at boot.
If you installed Apache via
However, you can run
Here is a nice article describing what it's all about.