I would suggest you to remove the following packages :
- libapache2-mod-auth-mysql
- phpmyadmin
- mysql-server
- mysql-server-
- mysql-server-core-
- apache2 and related modules
- libapache2-mod-php5
use sudo apt-get purge <package_name>
to remove the packages.
The text below is grabbed from Ubuntu help documentation:
Starting over: How to remove the LAMP stack
To remove the LAMP stack
remove the following packages:
Note: This assumes you have no other programs that require any of
these packages. You might wish to simulate this removal first, and
only remove the packages that don't cause removal of something
desired.
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
To also remove the debconf data, use the purge option when removing.
To get rid of any configurations you may have made to apache, manually
remove the /etc/apache2 directory once the packages have been removed.