From 98d97ebf8ce008f8336653b447d441877f6e6661 Mon Sep 17 00:00:00 2001 From: thisiszeev Date: Wed, 14 Feb 2024 15:17:17 +0200 Subject: [PATCH] PHP version now assigned in vhost file --- setupninja.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setupninja.sh b/setupninja.sh index bb0cd43..a8f101e 100644 --- a/setupninja.sh +++ b/setupninja.sh @@ -440,6 +440,10 @@ function vhostninja { echo " Require all granted" >> /etc/apache2/sites-available/$appdbname.conf echo " " >> /etc/apache2/sites-available/$appdbname.conf echo "" >> /etc/apache2/sites-available/$appdbname.conf + echo " " >> /etc/apache2/sites-available/$appdbname.conf + echo " SetHandler \"proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost\"" >> /etc/apache2/sites-available/$appdbname.conf + echo " " >> /etc/apache2/sites-available/$appdbname.conf + echo "" >> /etc/apache2/sites-available/$appdbname.conf echo " ErrorLog ${APACHE_LOG_DIR}/$appdbname_error.log" >> /etc/apache2/sites-available/$appdbname.conf echo " CustomLog ${APACHE_LOG_DIR}/$appdbname_access.log combined" >> /etc/apache2/sites-available/$appdbname.conf echo "" >> /etc/apache2/sites-available/$appdbname.conf