PHP version now assigned in vhost file

This commit is contained in:
Ze'ev Schurmann 2024-02-14 15:17:17 +02:00
parent eb829c1c25
commit 98d97ebf8c
1 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,10 @@ function vhostninja {
echo " Require all granted" >> /etc/apache2/sites-available/$appdbname.conf echo " Require all granted" >> /etc/apache2/sites-available/$appdbname.conf
echo " </Directory>" >> /etc/apache2/sites-available/$appdbname.conf echo " </Directory>" >> /etc/apache2/sites-available/$appdbname.conf
echo "" >> /etc/apache2/sites-available/$appdbname.conf echo "" >> /etc/apache2/sites-available/$appdbname.conf
echo " <FilesMatch \.php$>" >> /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 " </FilesMatch>" >> /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 " 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 " CustomLog ${APACHE_LOG_DIR}/$appdbname_access.log combined" >> /etc/apache2/sites-available/$appdbname.conf
echo "</VirtualHost>" >> /etc/apache2/sites-available/$appdbname.conf echo "</VirtualHost>" >> /etc/apache2/sites-available/$appdbname.conf