If you need to have the apache2 debian package installed but you don't need to have the apache2 daemon started at boot time, there is a solution: rcconf
sudo apt-get install rcconf sudo rcconf
Then you can choose in the list the services you need to startup at boot time. This trick applies for every debian services (apache2, mysql, ntp, ssh …).