Skip to content

Instantly share code, notes, and snippets.

@linuxbiekaisar
Last active April 1, 2020 10:44
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 linuxbiekaisar/e54434eeac833d1b08f0f7f4603f9c4d to your computer and use it in GitHub Desktop.
Save linuxbiekaisar/e54434eeac833d1b08f0f7f4603f9c4d to your computer and use it in GitHub Desktop.
How to install LAMP stack on Ubunt
# YouTube: https://youtu.be/HX15wgOjBF0
# Apache Installation, version checking, start, stop, restarting and enabling procedure:
sudo apt update
sudo apt upgrade
sudo apt install apache2
php --version
sudo systemctl start apache2
sudo systemctl status apache2
sudo systemctl stop apache2
sudo systemctl restart apache2
sudo systemctl enable apache2
# MySql Installation, version checking, start, stop, restarting and enabling procedure:
sudo apt-get update
sudo apt-get install mysql-server
mysql --version
sudo systemctl start mysql
sudo systemctl stop mysql
sudo systemctl enable mysql
# Create MySQL DB, User
sudo mysql -u root -p
CREATE DATABASE school DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON school.* TO 'user'@'localhost' IDENTIFIED BY 'D@y-8';
FLUSH PRIVILEGES;
EXIT;
# For checking local host and phpmyadmin follow the under mentioned procedure:
- Start apache by inputing $ sudo systemctl start apache2
- copy paste or type "http://localhost/" to the taskbar
- then type "http://localhost/phpmyadmin/"
- thereafter give user name and password and do your work in database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment