[CODE]root@SC-Image:/# sudo apt-get remove --purge $(dpkg -l apache* | grep ii | awk ‘{print $2}’)
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
apache2* apache2-mpm-prefork* apache2-utils* apache2.2-bin*
apache2.2-common* libapache2-mod-php5*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 13.7 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database …
dpkg: warning: files list file for package `apache2.2-bin’ missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `apache2-utils’ missing, assuming package has no files currently installed.
(Reading database … 227731 files and directories currently installed.)
Removing apache2 …
Removing libapache2-mod-php5 …
Module php5 disabled.
To activate the new configuration, you need to run:
service apache2 restart
Purging configuration files for libapache2-mod-php5 …
Removing apache2-mpm-prefork …
No apache MPM package installed
Removing apache2.2-common …
Purging configuration files for apache2.2-common …
dpkg: warning: while removing apache2.2-common, directory ‘/var/www’ not empty so not removed.
Removing apache2-utils …
Removing apache2.2-bin …
Processing triggers for man-db …
Processing triggers for ufw …
Processing triggers for ureadahead …[/CODE]