Skip to content

Commit e4ed234

Browse files
authored
Update hestia-nginx + hestia-php + changes to PCRE + openbase dir (hestiacp#2324)
* Use of PCRE2 instead PCRE Nginx 1.21.5 uses by default PCRE2 instead of 1. Probally time to upgrade 2. Update Nginx version to 1.21.5 * Limit access hestia-php - Limit access hestia-php to /usr/local/hestia and tmp via openbase dir - Update version to last version * Include /dev/urandom/ * /dev/urandom/ didn't wor
1 parent f89b701 commit e4ed234

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/deb/nginx/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia-nginx
22
Package: hestia-nginx
33
Priority: optional
4-
Version: 1.21.4
4+
Version: 1.21.5
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/deb/php/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia-php
22
Package: hestia-php
33
Priority: optional
4-
Version: 7.4.26
4+
Version: 7.4.27
55
Section: admin
66
Maintainer: HestaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/deb/php/php-fpm.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ php_admin_value[upload_max_filesize] = 256M
4141
php_admin_value[max_execution_time] = 300
4242
php_admin_value[max_input_time] = 300
4343
php_admin_value[session.save_path] = /usr/local/hestia/data/sessions
44+
php_admin_value[open_basedir] = /usr/local/hestia/:/tmp/:/dev/

src/hst_autocompile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ echo "Build version $BUILD_VER, with Nginx version $NGINX_V and PHP version $PHP
216216

217217
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
218218
OPENSSL_V='1.1.1l'
219-
PCRE_V='8.45'
219+
PCRE_V='10.39'
220220
ZLIB_V='1.2.11'
221221

222222
# Create build directories
@@ -290,7 +290,7 @@ fi
290290
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
291291
NGINX='https://nginx.org/download/nginx-'$(echo $NGINX_V |cut -d"~" -f1)'.tar.gz'
292292
OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
293-
PCRE='https://sourceforge.net/projects/pcre/files/pcre/'$PCRE_V'/pcre-'$PCRE_V'.tar.gz/download'
293+
PCRE='https://github.com/PhilipHazel/pcre2/releases/download/pcre2-'$PCRE_V'/pcre2-'$PCRE_V'.tar.gz'
294294
ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
295295
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"~" -f1)'.tar.gz'
296296

@@ -342,7 +342,7 @@ if [ "$NGINX_B" = true ] ; then
342342
--with-openssl-opt=no-nextprotoneg \
343343
--with-openssl-opt=no-weak-ssl-ciphers \
344344
--with-openssl-opt=no-ssl3 \
345-
--with-pcre=../pcre-$PCRE_V \
345+
--with-pcre=../pcre2-$PCRE_V \
346346
--with-pcre-jit \
347347
--with-zlib=../zlib-$ZLIB_V
348348
fi

0 commit comments

Comments
 (0)