I am a newly used lamp server and phpmyadmin.I was trying to install lamp server and phpmyadmin,but it is not working.So,

i want to completely remove lamp server and phpmyadmin.

Also ,give

a proper steps to fresh installing of lamp server and phpmyadmin.

  • 1
    What do you mean with: but it is not working. What do you expect (to see)? What did you tried? Apr 13, 2014 at 6:13
  • i was trying different process..that why it is not working properly and did not configure properly...
    – Amit Bera
    Apr 13, 2014 at 6:24

2 Answers 2


To remove the LAMP stack :
1.sudo apt-get purge mysql-server apache2 php5

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.

2.sudo apt-get purge 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


The easy way of getting the lamp to get working on any GNU/LINUX is getting the XAMPP for linux ( https://www.apachefriends.org/download.html ). This one comes with phpmyadmin as well.

If you want to make your own LAMP server, then it might prove to a headache.

  • i want lamp not xamp
    – Amit Bera
    Apr 13, 2014 at 9:06
  • well LAMP means LINUX, Apache, MySQL and PHP/Perl . XAMPP for LINUX is one package that makes your job easier. It contains all the things for setting up LAMP - No configuration required.
    – Kenpachi
    Apr 13, 2014 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.