Last active
September 19, 2021 17:32
-
-
Save LinuxPlaner/be07657ad970594a7a37ae697b68be36 to your computer and use it in GitHub Desktop.
Install LAMP stack on Ubuntu 20.04 LTS
This file contains hidden or 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
Ping Me For lamp installing related service: | |
SMS: +8801610932753 | |
IMO: +8801610932753 | |
BiP: +8801610932753 | |
Viber: +8801610932753 | |
Signal: +8801610932753 | |
Discord: supanta saha#3868 | |
Telegram: https://t.me/LinuxPlaner | |
WhatsApp: https://wa.link/njuw4c | |
Skype: https://join.skype.com/weW8UDI0u7o5 | |
Email: [email protected] | |
# Install Apache to check from web browser using 0.0.0.0 or localhost, check version, start,stop & restart Apache into Ubuntu | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install apache2 | |
apache2 -v | |
sudo service apache2 start | |
sudo systemctl enable apache2 | |
sudo service apache2 stop | |
sudo service apache2 start | |
sudo service apache2 restart | |
# Visit: http://localhost/ to check apache | |
# Install MySQL & check version, start,stop & restart Apache | |
sudo apt install mysql-server | |
sudo mysql_secure_installation | |
mysql --version | |
sudo service mysql start | |
sudo service mysql enable | |
sudo service mysql start | |
sudo service mysql restart | |
# Create MySQL DB, User | |
sudo mysql -u root -p | |
#Granting all privilege to newly created user on db | |
FLUSH PRIVILEGES; | |
EXIT; | |
# Install PHP & check version | |
sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php | |
php --version | |
#browse localhost | |
#lamp #stack #linux #ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment