Skip to content

Instantly share code, notes, and snippets.

@sagarPakhrin
Last active June 30, 2019 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagarPakhrin/2305de295eb8c644b883b1403f793013 to your computer and use it in GitHub Desktop.
Save sagarPakhrin/2305de295eb8c644b883b1403f793013 to your computer and use it in GitHub Desktop.
Installing apache and mysql
#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