LEMP is a combination of open-source software. The acronym LEMP refers to the first letters of Linux (Operating system), Nginx Server, MySQL (database software), and PHP, PERL, or Python, principal components to build a viable general-purpose web server.
__________________________________________________________________________________________________________________________________
Server - Os: Oracle Linux Server 9 64Bit | IP -192.168.1.50 |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf update
dnf install nginx -y
systemctl start nginx ; systemctl enable nginx ; systemctl status nginx
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
dnf install mariadb-server mariadb -y
systemctl start mariadb ; systemctl enable mariadb ; systemctl status mariadb
mysql_secure_installation
dnf install php php-mysqlnd php-fpm php-opcache php-gd php-xml php-mbstring -y
systemctl start php-fpm ; systemctl enable php-fpm ; systemctl status php-fpm
nano /etc/php-fpm.d/www.conf
user = apache
group = apache
user = nginx
group = nginx
systemctl reload php-fpm
echo "<?php phpinfo() ?>" > /usr/share/nginx/html/info.php
systemctl restart nginx php-fpm
http:/server.testbox.com/info.php
__________________________________________________________________________________________________________________________________
Saturday, February 4, 2023
How To Install LEMP Stack on Oracle Linux Server 9
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment