From a303b46b3b727f9ccee6d9a1f4bea111c8df5dce Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 28 Jul 2024 14:00:58 -0700 Subject: [PATCH] Enable php-fpm and mariadb on RHEL --- sample-scripts/RHEL-9-LEMP.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sample-scripts/RHEL-9-LEMP.sh b/sample-scripts/RHEL-9-LEMP.sh index 165aab7..740e6b0 100644 --- a/sample-scripts/RHEL-9-LEMP.sh +++ b/sample-scripts/RHEL-9-LEMP.sh @@ -47,6 +47,7 @@ sudo systemctl enable --now php-fpm # Install MariaDB unpriv curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash sudo dnf install -y MariaDB-server +sudo systemctl enable --now mariadb # Run NGINX Setup script unpriv curl -LsS https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/setup.sh | sudo bash @@ -55,4 +56,4 @@ unpriv curl -LsS https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/ma sudo sed -i 's/user = apache/user = nginx/g' /etc/php-fpm.d/www.conf sudo sed -i 's/group = apache/group = nginx/g' /etc/php-fpm.d/www.conf sudo chgrp nginx /var/lib/php/opcache /var/lib/php/session /var/lib/php/wsdlcache -sudo systemctl restart php-fpm \ No newline at end of file +sudo systemctl enable --now php-fpm \ No newline at end of file