From cf7a968e8c8f332957bc11f066b49d9d850184df Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sun, 8 Dec 2024 14:24:18 -0800 Subject: [PATCH] reorder phpPriority code and php restart --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 325aada..84bb057 100755 --- a/install.sh +++ b/install.sh @@ -11,17 +11,17 @@ chmod 644 /usr/local/lib/systemd/system/vpanel-php-fpm-socket-helper.service PHP_MAJOR_VERSION=`php -r "echo PHP_MAJOR_VERSION;"` PHP_MINOR_VERSION=`php -r "echo PHP_MINOR_VERSION;"` phpVersion=$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION +phpPriority=$PHP_MAJOR_VERSION$PHP_MINOR_VERSION # create versioned php fpm dir mkdir etc/php/$phpVersion mv etc/php/fpm etc/php/$phpVersion/ +sed -i "s|PHPVERSION|$phpVersion|g" etc/php/$phpVersion/fpm/pool.d/vpanel.conf cp -a etc/* /etc/ chmod 440 /etc/sudoers.d/vpanel sed -i "s|;process_control_timeout = 0|process_control_timeout = 1s|g" /etc/php/$phpVersion/fpm/php-fpm.conf -sed -i "s|PHPVERSION|$phpVersion|g" /etc/php/$phpVersion/fpm/php-fpm.conf -phpPriority=$PHP_MAJOR_VERSION$PHP_MINOR_VERSION +service php$phpVersion-fpm restart update-alternatives --install /run/php/php-fpm-vpanel.sock php-fpm-vpanel.sock /run/php/php$phpVersion-fpm-vpanel.sock $phpPriority a2enconf vpanel -service php$phpVersion-fpm restart service apache2 restart systemctl enable vpanel-php-fpm-socket-helper.service cp -a panel /srv/www/html/