Skip to content

Commit 527f2bd

Browse files
authored
Add php8.3 to web ui (hestiacp#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
1 parent 417db77 commit 527f2bd

File tree

5 files changed

+42
-15
lines changed

5 files changed

+42
-15
lines changed

bin/v-add-fastcgi-cache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ else
9191
fi
9292

9393
mkdir -p /var/cache/nginx/micro/$domain
94-
94+
# Update permissions
95+
chown www-data:root /var/cache/nginx/micro/$domain
96+
chmod 640 /var/cache/nginx/micro/$domain
9597
#----------------------------------------------------------#
9698
# Hestia #
9799
#----------------------------------------------------------#

docs/_data/features.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const webDomains = [
1313
{ text: 'Nginx Proxy cache support for Nginx + Apache2' },
1414
{ text: 'Per-domain TLS certificates for web domains' },
1515
{ text: 'MultiIP support for Web/Mail/DNS' },
16-
{ text: 'Support for PHP version 5.6 up to 8.2 with PHP8.2 as default' },
16+
{ text: 'Support for PHP version 5.6 up to 8.3 with PHP8.2 as default' },
1717
{
1818
text: 'One-Click Install Apps',
1919
items: [

install/upgrade/versions/1.8.11.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,4 @@ upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
2121
upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
2222
upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
2323
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
24-
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
25-
26-
# Folder paths
27-
SM_INSTALL_DIR="/var/lib/snappymail"
28-
SM_CONFIG_DIR="/etc/snappymail"
29-
SM_LOG="/var/log/snappymail"
30-
31-
if [ -d "/var/lib/snappymail" ]; then
32-
chown hestiamail:hestiamail /var/lib/snappymail
33-
chown hestiamail:hestiamail /etc/snappymail
34-
fi
35-
36-
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
24+
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'true'

install/upgrade/versions/1.8.12.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# Hestia Control Panel upgrade script for target version 1.8.11
4+
5+
#######################################################################################
6+
####### Place additional commands below. #######
7+
#######################################################################################
8+
####### upgrade_config_set_value only accepts true or false. #######
9+
####### #######
10+
####### Pass through information to the end user in case of a issue or problem #######
11+
####### #######
12+
####### Use add_upgrade_message "My message here" to include a message #######
13+
####### in the upgrade notification email. Example: #######
14+
####### #######
15+
####### add_upgrade_message "My message here" #######
16+
####### #######
17+
####### You can use \n within the string to create new lines. #######
18+
#######################################################################################
19+
20+
upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
21+
upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
22+
upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
23+
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
24+
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'true'
25+
26+
# Folder paths
27+
SM_INSTALL_DIR="/var/lib/snappymail"
28+
SM_CONFIG_DIR="/etc/snappymail"
29+
SM_LOG="/var/log/snappymail"
30+
31+
if [ -d "/var/lib/snappymail" ]; then
32+
chown hestiamail:hestiamail /var/lib/snappymail
33+
chown hestiamail:hestiamail /etc/snappymail
34+
fi
35+
36+
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

web/edit/server/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"php-8.0",
4040
"php-8.1",
4141
"php-8.2",
42+
"php-8.3",
4243
];
4344
sort($v_php_versions);
4445

0 commit comments

Comments
 (0)