Last active
June 30, 2019 09:10
-
-
Save sagarPakhrin/2305de295eb8c644b883b1403f793013 to your computer and use it in GitHub Desktop.
Installing apache and mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#update | |
sudo apt update && sudo apt -y upgrade | |
#install apache | |
sudo apt install -y apache2 | |
#Install php | |
sudo apt-get install -y php libapache2-mod-php | |
#install mysql | |
sudo apt install -y mysql-server | |
sudo mysql_secure_installation | |
sudo mysql -u root -p | |
#to chage the user password for root | |
#ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; | |
sudo apt install php-mysqli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment