From 2bfcf86597f77565cb3c78f5bbdab130a898a78b Mon Sep 17 00:00:00 2001 From: baldnerd Date: Fri, 8 Aug 2025 13:13:00 -0400 Subject: [PATCH] Fix PHP binary --- installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index 32bf1e5..be4d89e 100755 --- a/installer.sh +++ b/installer.sh @@ -77,7 +77,7 @@ systemctl start lsws sleep 2 # PHP and extensions -PHPVER='8.3' +PHPVER='8.1' apt install -y lsphp${PHPVER//./} lsphp${PHPVER//./}-{common,mysql,curl,imagick,intl,opcache,redis} # Create a symlink that gives PHP CLI capability but uses the LSPHP version of PHP to coincide with server @@ -85,7 +85,7 @@ ln -s /usr/local/lsws/lsphp83/bin/php /usr/local/bin/php systemctl stop lsws # Set lsphp as default for LiteSpeed -sed -i "s|path .*|path /usr/local/lsws/lsphp${PHPVER//./}/bin/php|" /usr/local/lsws/conf/httpd_config.conf +sed -i "/extprocessor lsphp${PHPVER//./}/,/}/ s|path .*| path /usr/local/lsws/lsphp${PHPVER//./}/bin/lsphp|" /usr/local/lsws/conf/httpd_config.conf systemctl start lsws # Enable GZIP and Brotli compression @@ -192,7 +192,7 @@ virtualHost $HTMLSITE_CONF { configFile \$VH_ROOT/vhconf.conf allowSymbolLink 1 enableScript 1 - restrained 0 + restrained 1 setUIDMode 0 } EOL