Hi guys in this blog we're learning about how to install nginx server, mysql- server, PHP
For running web applications
First thing we need to update the repository use update command line to update it
sudo apt update
And then next we need to install nginx server for running PHP file
sudo apt install nginx
From above command line helps to install Full package of nginx server
Some firewall permission is there for nginx server
sudo ufw allow 'Nginx HTTP'
Check firewall status for network ports
sudo ufw status
Finally check the nginx service status whether it is working or not
service nginx status
Check on browser by typing "localhost" on URL
The page will reflected nginx test paper that's indicated your done with basic nginx server set-up
For databases we are install mysql server from below command line
sudo apt install mysql-server
Check the mysql service wheather is correctly running or not
service mysql status
once Installation is done we need to assign password for server
sudo mysql_secure_installation
OR
sudo mysql
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
exit
mysql -u root -p
sudo apt install php7.4-cli
Install the php-fpm service
service php7.4-fpm status