Answers for "how to install lamp linux"

0

hoe to install LAMP on ubuntu

sudo apt-get install tasksel
sudo tasksel install lamp-server
Posted by: Guest on August-05-2021
0

How to install LAMP in CentOs?

sudo dnf install httpd //install httpd
 
sudo systemctl start httpd //start httpd
 
sudo firewall-cmd --permanent --add-service=http //allow firewall
 
sudo firewall-cmd --permanent --list-all //check firewall
 
sudo firewall-cmd --reload //reload firewall
 
sudo dnf install mariadb-server //Installing MariaDB
 
sudo systemctl start mariadb //start MariaDB
 
sudo mysql_secure_installation //set user and password
 
sudo mysql //login to database
 
exit //exit from database
 
sudo dnf install php php-mysqlnd //Installing PHP
 
sudo systemctl restart httpd //restart httpd
Posted by: Guest on March-03-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language