I installed LAMP:

apache2 libapache2-mod-php7.0 php7.0 php7.0-mysql mysql-server

and phpmyadmin.

Unfortunately, I did not put a password in when I was questioned to do so. Now I cannot log into mysql. I think there is a policy now that forbidds root access without password.

That is why i wanted to completely remove all packages and configuration and do a fresh install of LAMP where I will get asked to set the password again.

I used purge and whereis and dpkg -l mysql* | grep ii | awk '{print $2}' to make sure I deinstalled all files (i also did this for apache2) but on re-installing the dialog for the password does not come up.

How do I find and delete all files for the LAMP and phpmyadmin to be able to install everything newly from scratch?

  • I now managed to log in via terminal using this post (askubuntu.com/questions/766334/…) but anyway the question is still relevant because phpmyadmin requires (root)-users to have a password which i cannot set. – Ben Nov 14 '16 at 11:39
  • You can log in to the mysql server (>5.7) via root linux user only, without password. Have a look at related question for what you can do in your case. – Rostislav Kandilarov Nov 14 '16 at 12:27
  • Yes, I did this. Anyway, my question still remains relevant, I think. Because one should be able to remove all files concerning a package to be able to install it completely new. – Ben Nov 14 '16 at 17:37
  • LAMP is actually a number of individual packages, so each package needs to be removed individually. See this post: How do I remove the LAMP stack so I can start over? askubuntu.com/questions/50101/… – Steve R. Feb 23 '17 at 19:31
  • Maybe this will solve your problem – Siraj Feb 28 '17 at 17:59

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.