Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to install LAMP in CentOs 7?

sudo yum install httpd //install httpd
 
sudo systemctl enable httpd.service //enable httpd<
 
sudo yum install mariadb-server mariadb //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 yum install php php-mysql //Installing PHP
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: linux bin to iso 
Shell :: how to exit vim 
Shell :: linux command create folder if not exist 
Shell :: ubuntu activate bluetooth 
Shell :: check user terminal 
Shell :: pause in bash 
Shell :: How to install specific Laravel version using composer 
Shell :: command for moving files in linux 
Shell :: ubuntu version 
Shell :: push all branches to remote 
Shell :: Terminal commands to push a file to Github 
Shell :: remove tracked files git 
Shell :: install apache on mac 
Shell :: my apache is not running ubuntu 
Shell :: upload folder to gitlab 
Shell :: top git commands 
Shell :: install yt-dlp windows 
Shell :: update git config username and email 
Shell :: bash vertical bar 
Shell :: install magento 2 command line composer 
Shell :: search code git 
Shell :: install plasma kde manjaro 
Shell :: curl request print response 
Shell :: how to go to a folder in git bash 
Shell :: Kali free ports in use 
Shell :: git code push 
Shell :: install snap change in progress ubuntu 
Shell :: install openvino ubuntu 
Shell :: docker update all images 
Shell :: kubeadm print join command 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =