Fix PHP binary

This commit is contained in:
2025-08-08 13:13:00 -04:00
parent 34de32b793
commit 2bfcf86597

View File

@ -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