Skip to content

Commit b713af8

Browse files
authored
Merge pull request hestiacp#2068 from hestiacp/feature/2021-07_include-openssl
Feature/2021 07 include openssl
2 parents 351fa64 + 4280dda commit b713af8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

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.21
4+
Version: 7.4.22
55
Section: admin
66
Maintainer: HestaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/deb/php/php.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ serialize_precision = -1
309309
; This directive allows you to disable certain functions.
310310
; It receives a comma-delimited list of function names.
311311
; http://php.net/disable-functions
312-
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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,passthru,system,proc_open,popen,show_source,
312+
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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,passthru,system,popen,show_source,
313313

314314
; This directive allows you to disable certain classes.
315315
; It receives a comma-delimited list of class names.

src/hst_autocompile.sh

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

213213
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
214214
OPENSSL_V='1.1.1k'
215-
PCRE_V='8.44'
215+
PCRE_V='8.45'
216216
ZLIB_V='1.2.11'
217217

218218
# Create build directories
@@ -459,29 +459,31 @@ if [ "$PHP_B" = true ] ; then
459459
# Download and unpack source files
460460
cd $BUILD_DIR
461461
download_file $PHP '-' | tar xz
462-
462+
463463
# Change to untarred php directory
464464
cd $BUILD_DIR_PHP
465465

466466
# Configure PHP
467467
if [ $BUILD_ARCH = 'amd64' ]; then
468-
./configure --prefix=/usr/local/hestia/php \
468+
./configure --prefix=/usr/local/hestia/php \
469469
--enable-fpm \
470470
--with-fpm-user=admin \
471471
--with-fpm-group=admin \
472472
--with-libdir=lib/x86_64-linux-gnu \
473+
--with-openssl \
473474
--with-mysqli \
474475
--with-gettext \
475476
--with-curl \
476477
--with-zip \
477478
--with-gmp \
478479
--enable-mbstring
479480
else
480-
./configure --prefix=/usr/local/hestia/php \
481+
./configure --prefix=/usr/local/hestia/php \
481482
--enable-fpm \
482483
--with-fpm-user=admin \
483484
--with-fpm-group=admin \
484485
--with-libdir=lib/aarch64-linux-gnu \
486+
--with-openssl \
485487
--with-mysqli \
486488
--with-gettext \
487489
--with-curl \
@@ -564,7 +566,7 @@ if [ "$PHP_B" = true ] ; then
564566

565567
# clear up the source folder
566568
if [ "$KEEPBUILD" != 'true' ]; then
567-
rm -r $BUILD_DIR/php-$PHP_V
569+
rm -r $BUILD_DIR/php-$(echo $PHP_V |cut -d"~" -f1)
568570
rm -r $BUILD_DIR_HESTIAPHP
569571
if [ "$use_src_folder" == 'true' ] && [ -d $BUILD_DIR/hestiacp-$branch_dash ]; then
570572
rm -r $BUILD_DIR/hestiacp-$branch_dash

0 commit comments

Comments
 (0)