bhupinderjitbawa
4/23/2019 - 6:45 PM

Setup new LAMP server

Setup new LAMP server

#1
sudo apt-get update
---
#2
sudo apt-get install apache2
---
#3
sudo systemctl restart apache2
---
#4
sudo apt-get install mysql-server
---
#5
mysql_secure_installation
---
#6
sudo apt-get install php php7.2-mysql
---
#7
sudo systemctl restart apache2
---
#8
sudo apt install phpmyadmin
---
sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt-get update
sudo apt-get install phpmyadmin
#9
mysql -u root -p
---
#10
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'Rp#9900#';
---
#11
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'localhost';

ALTER USER 'admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Auto#4400#';