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

Add php8.3 to web ui (#4187)

* Add 8.3 in edit server interface

* Fix Filegator config not replaced

upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'true'

instead of upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'yes'

* Update Docs to include PHP8.3

* Make sure www-data can write to /var/cache/nginx/micro/$domain
Jaap Marcus 2 лет назад
Родитель
Сommit
527f2bd4c2

+ 3 - 1
bin/v-add-fastcgi-cache

@@ -91,7 +91,9 @@ else
 fi
 
 mkdir -p /var/cache/nginx/micro/$domain
-
+# Update permissions
+chown www-data:root /var/cache/nginx/micro/$domain
+chmod 640 /var/cache/nginx/micro/$domain
 #----------------------------------------------------------#
 #                       Hestia                             #
 #----------------------------------------------------------#

+ 1 - 1
docs/_data/features.js

@@ -13,7 +13,7 @@ export const webDomains = [
 	{ text: 'Nginx Proxy cache support for Nginx + Apache2' },
 	{ text: 'Per-domain TLS certificates for web domains' },
 	{ text: 'MultiIP support for Web/Mail/DNS' },
-	{ text: 'Support for PHP  version 5.6 up to 8.2 with PHP8.2 as default' },
+	{ text: 'Support for PHP  version 5.6 up to 8.3 with PHP8.2 as default' },
 	{
 		text: 'One-Click Install Apps',
 		items: [

+ 1 - 13
install/upgrade/versions/1.8.11.sh

@@ -21,16 +21,4 @@ upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
 upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
 upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
 upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
-upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
-
-# Folder paths
-SM_INSTALL_DIR="/var/lib/snappymail"
-SM_CONFIG_DIR="/etc/snappymail"
-SM_LOG="/var/log/snappymail"
-
-if [ -d "/var/lib/snappymail" ]; then
-	chown hestiamail:hestiamail /var/lib/snappymail
-	chown hestiamail:hestiamail /etc/snappymail
-fi
-
-sed -i "s/disable_functions =.*/disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority/g" /etc/php/*/cli/php.ini
+upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'true'

+ 36 - 0
install/upgrade/versions/1.8.12.sh

@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Hestia Control Panel upgrade script for target version 1.8.11
+
+#######################################################################################
+#######                      Place additional commands below.                   #######
+#######################################################################################
+####### upgrade_config_set_value only accepts true or false.                    #######
+#######                                                                         #######
+####### Pass through information to the end user in case of a issue or problem  #######
+#######                                                                         #######
+####### Use add_upgrade_message "My message here" to include a message          #######
+####### in the upgrade notification email. Example:                             #######
+#######                                                                         #######
+####### add_upgrade_message "My message here"                                   #######
+#######                                                                         #######
+####### You can use \n within the string to create new lines.                   #######
+#######################################################################################
+
+upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
+upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
+upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
+upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
+upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'true'
+
+# Folder paths
+SM_INSTALL_DIR="/var/lib/snappymail"
+SM_CONFIG_DIR="/etc/snappymail"
+SM_LOG="/var/log/snappymail"
+
+if [ -d "/var/lib/snappymail" ]; then
+	chown hestiamail:hestiamail /var/lib/snappymail
+	chown hestiamail:hestiamail /etc/snappymail
+fi
+
+sed -i "s/disable_functions =.*/disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority/g" /etc/php/*/cli/php.ini

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

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