Howto disable or enable apache2 autostart on Ubuntu

Folder /etc/init.d/ contains all the init scripts for different boot up services like for example nginx, apache, mysql, etc.

There is a program that makes those services simple to enable or disable from the start up.

If you need to disable apache2 from start up, type:
sudo update-rc.d apache2 disable

To enable apache2 at start up, type:
sudo update-rc.d apache2 enable