PHP version now assigned in vhost file
This commit is contained in:
parent
eb829c1c25
commit
98d97ebf8c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue