Remove Apache and all of it’s dependencies.

apt-get purge apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin

then

rm -rf /etc/apache2; rm -rf /etc/php5; rm -rf /var/lib/mysql; rm etc/mysql

If you have any issues with phpMyAdmin than reconfigure it.

dpkg-reconfigure phpmyadmin
Advertisements