I am attempting to install LAMP server so I can work on PHP and MySQL databases locally on Ubuntu 16.04LTS.
I got through a lot of the installation and then decided I wanted to start again (see below as to why). How can I remove everything associated with LAMP server that I have just installed and start again?
I went through the following steps when installing:
sudo apt-get install tasksel
and then
sudo tasksel install lamp-server
Upon going though these steps it asked me for a mysql password, which I (probably shouldn't have) left blank.
I then installed phpmyadmin, again leaving the password blank for root.
After installation of phpmyadmin I then had to use
sudo gedit /etc/apache2/apache2.conf
And add this line:
Include /etc/phpmyadmin/apache.conf
Attempting to login to phpmyadmin threw up an error about removing the 'allownopasswords' or setting similar to that to allow me to enter with no pass.
At this point I decided to completely reinstall and use a password.
So I attempting to remove the packages I had used using some commands found here: How do I remove the LAMP stack so I can start over? & How do I remove the LAMP stack so I can start over?
I then reinstalled lamp-server, this time it showed no password entry and then I installed phpmyadmin.
Now when I goto localhost/phpmyadmin it just displays the config file, as if PHP is not installed.
I assume I am now missing some vital parts of the server.
I want to completely start afresh and install LAMP from scratch, how can I do this?
It would also be useful to know what the different passwords are for mySQL that it requests on installation, is it just 1 root user and password?
Thanks,
sudo tasksel install lamp-server^
(the ^ makes it connect to the task) – Rinzwind Sep 02 '17 at 11:06