Debian remove apache and anything related
We have numerous database specific servers and by default our base Debian images include apache which simply isn't required. So, the best way to remove everything apache related is to run:
apt-get remove apache2*
And you will also need to remove other associated now defunct packages:
apt-get autoremove
and PHP if its been brought in: apt-get php5