Просмотр исходного кода

PHP 8.2 support (#2969)

* Add support for PHP 8.2 
* Add upgrade.conf

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
codejp3 3 лет назад
Родитель
Сommit
44f59268e2

+ 1 - 1
README.md

@@ -35,7 +35,7 @@ Smart Chain: 0xfF3Dd2c889bd0Ff73d8085B84A314FC7c88e5D51<br>
 ## Features and Services
 
 - Apache2 and NGINX with PHP-FPM
-- Multiple PHP versions (5.6 - 8.1, 8.0 as default)
+- Multiple PHP versions (5.6 - 8.2, 8.0 as default)
 - DNS Server (Bind) with clustering capabilities
 - POP/IMAP/SMTP mail services with Anti-Virus, Anti-Spam, and Webmail (ClamAV, SpamAssassin, Sieve, Roundcube)
 - MariaDB/MySQL and/or PostgreSQL databases

+ 1 - 1
bin/v-restart-service

@@ -51,7 +51,6 @@ else
 fi
 
 for service in $service_list; do
-
 	if [ "$service" = "iptables" ]; then
 		# Run the restart rules for iptables firewall
 		$BIN/v-stop-firewall
@@ -74,6 +73,7 @@ for service in $service_list; do
 		"$service" = "php7.4-fpm" -o \
 		"$service" = "php8.0-fpm" -o \
 		"$service" = "php8.1-fpm" -o \
+    "$service" = "php8.2-fpm" -o \
 		"$service" = "proftpd" -o \
 		"$service" = "ssh" -o \
 		"$service" = "fail2ban" ]; then

+ 1 - 1
bin/v-run-cli-cmd

@@ -47,7 +47,6 @@ if [ -z "$(which "$clicmd")" ]; then
 	check_result "$E_NOTEXIST" "Cli command does not exist $clicmd"
 fi
 basecmd="$(basename "$clicmd")"
-
 if [ "$basecmd" != 'ps' -a \
 	"$basecmd" != 'ls' -a \
 	"$basecmd" != 'tar' -a \
@@ -70,6 +69,7 @@ if [ "$basecmd" != 'ps' -a \
 	"$basecmd" != 'php7.4' -a \
 	"$basecmd" != 'php8.0' -a \
 	"$basecmd" != 'php8.1' -a \
+  "$basecmd" != 'php8.2'     -a \
 	"$basecmd" != 'php' -a \
 	"$basecmd" != "wp" -a \
 	"$basecmd" != 'composer' ]; then

+ 1 - 1
install/hst-install-debian.sh

@@ -34,7 +34,7 @@ VERBOSE='no'
 # Define software versions
 HESTIA_INSTALL_VER='1.7.0~alpha'
 # Dependencies
-multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
+multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2")
 fpm_v="8.0"
 mariadb_v="10.6"
 

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -34,7 +34,7 @@ VERBOSE='no'
 # Define software versions
 HESTIA_INSTALL_VER='1.7.0~alpha'
 # Dependencies
-multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
+multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2")
 fpm_v="8.0"
 mariadb_v="10.6"
 

+ 1 - 1
install/upgrade/upgrade.conf

@@ -35,7 +35,7 @@ UPGRADE_RESTART_SERVICES='true'
 #######################################################################################
 
 # Supported PHP versions
-multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
+multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2")
 
 #######################################################################################
 #######                        3rd Party Software Updates                       #######

+ 1 - 0
web/edit/server/index.php

@@ -38,6 +38,7 @@ $v_php_versions = [
 	"php-7.4",
 	"php-8.0",
 	"php-8.1",
+	"php-8.2",
 ];
 sort($v_php_versions);