Answers for "2022: setup lamp on ubuntu 20.04"

0

How to install LAMP in Ubuntu 20.04?

sudo apt-get update -y
 
sudo apt install apache2 // install apache 2
 
sudo ufw app list // adjust your firewall settings to allow HTTP traffic
 
sudo ufw allow in "Apache"
 
sudo ufw status // check status
 
sudo apt install mysql-server // install mysql database
 
sudo mysql_secure_installation // set user and password
 
sudo mysql // enter into database to verify
 
exit // exit from database
 
sudo apt install php libapache2-mod-php php-mysql // install latest php and php-ext
 
php -v // verify php version
Posted by: Guest on March-03-2022
0

lamp download for ubuntu 20.04

sudo apt update

sudo apt upgrade
Posted by: Guest on January-28-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language