Compare commits

...

9 Commits

3 changed files with 539 additions and 126 deletions

View File

@@ -124,12 +124,15 @@ detect_os_1 () {
# - Support systemd ? # - Support systemd ?
# - # -
if [[ "X$(which systemd)" = "X" ]]; then systemd=$(which systemd)
SYSTEMD_EXISTS=false systemctl=$(which systemctl)
else if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
SYSTEMD_EXISTS=true SYSTEMD_EXISTS=true
else
SYSTEMD_EXISTS=false
fi fi
# - Set variable # - Set variable
# - os_dist # - os_dist
# - os_version # - os_version

View File

@@ -124,10 +124,12 @@ detect_os_1 () {
# - Support systemd ? # - Support systemd ?
# - # -
if [[ "X$(which systemd)" = "X" ]]; then systemd=$(which systemd)
SYSTEMD_EXISTS=false systemctl=$(which systemctl)
else if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
SYSTEMD_EXISTS=true SYSTEMD_EXISTS=true
else
SYSTEMD_EXISTS=false
fi fi
# - Set variable # - Set variable

View File

@@ -19,7 +19,7 @@ _HTTPD_USER=www-data
_srcdir=$(dirname $(realpath $0)) _srcdir=$(dirname $(realpath $0))
_pwd=`pwd` CUR_PWD="$(pwd)"
cert_URL_php_net="https://curl.haxx.se/ca/cacert.pem" cert_URL_php_net="https://curl.haxx.se/ca/cacert.pem"
_default_cert_file="" _default_cert_file=""
@@ -240,10 +240,12 @@ _backup_date="$(date +%Y%m%d-%H%M)"
# - Support systemd ? # - Support systemd ?
# - # -
if [[ "X$(which systemd)" = "X" ]]; then systemd=$(which systemd)
SYSTEMD_EXISTS=false systemctl=$(which systemctl)
else if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
SYSTEMD_EXISTS=true SYSTEMD_EXISTS=true
else
SYSTEMD_EXISTS=false
fi fi
# - Set variable # - Set variable
@@ -257,62 +259,128 @@ _required_base_packages=""
_required_compiler_packages="" _required_compiler_packages=""
_required_extension_packages="" _required_extension_packages=""
# - PHP Extension imagick, geoip, memcached # - PHP Extension imagick, geoip, memcached, imap
# - # -
_required_extension_packages="$_required_extension_packages _required_extension_packages="$_required_extension_packages
libmagickwand-dev libmagickcore-dev geoip-bin
libgeoip1 libgeoip-dev geoip-bin libgeoip1
libgeoip-dev
libmagickcore-dev
libmagickwand-dev
libmemcached-dev" libmemcached-dev"
# - Compile stuff # - Compile stuff
# - # -
_required_compiler_packages="$_required_compiler_packages _required_compiler_packages="$_required_compiler_packages
g++ g++-multilib gcc gcc-multilib cpp autoconf
make automake autoconf libtool flex bison automake
gettext pkg-config gnu-standards bison
libssl-dev libreadline-dev libncurses-dev" cpp
flex
g++
g++-multilib
gcc
gcc-multilib
gettext
gnu-standards
libc6-dev
libcrypt-dev
libncurses-dev
libpam0g-dev
libreadline-dev
libssl-dev
libtool
make
pkg-config"
# - Needed to build apache webserver with php/ruby support # - Needed to build apache webserver with php/ruby support
# - # -
_required_base_packages="$_required_base_packages _required_base_packages="$_required_base_packages
libxml2 libxml2-dev curl
curl libcurl4-openssl-dev exif libexiv2-dev
libqdbm-dev libgdbm-dev libpspell-dev graphicsmagick
libjpeg-dev libxpm-dev libfreetype6-dev imagemagick
libwmf-dev libtiff-dev libpaper-dev libapr1-dev
libmagic-dev libaprutil1-dev
libmagick-dev libgraphics-magick-perl libatm-dev
libgraphicsmagick++1-dev libgraphicsmagick1-dev libcrypto++-dev
libgraphviz-dev libgsf-1-dev libilmbase-dev libcurl4-openssl-dev
libvpx-dev vpx-tools libdjvulibre-dev
libgpm-dev libkpathsea-dev libopenexr-dev librsvg2-dev libdjvulibre-dev libexpat-dev
libatm-dev libexpat-dev libfreetype6-dev
imagemagick graphicsmagick libgdbm-dev
libgmp-dev
libgpm-dev
libgraphicsmagick++1-dev
libgraphicsmagick1-dev
libgraphics-magick-perl
libgraphviz-dev
libgsf-1-dev
libharfbuzz-dev
libicu-dev
libilmbase-dev
libjpeg-dev
libkpathsea-dev
libkrb5-dev
libldap-dev
liblua5.1-0
liblua5.1-0-dev
libmagic-dev
libmagick-dev
libmcrypt-dev
libmhash-dev
libmm-dev
libncurses-dev
libnetpbm-dev
libopenexr-dev
libpaper-dev
libpq-dev
libpspell-dev
libqdbm-dev
libreadline-dev
librsvg2-dev
libsctp-dev
libsodium-dev
libtidy-dev
libtiff-dev
libvpx-dev
libwebp-dev
libwmf-dev
libxml2
libxml2-dev
libxmlrpc-epi-dev
libxpm-dev
libxslt1-dev
libzip-dev
mcrypt
netpbm
postgresql-client
re2c re2c
sqlite3 sqlite3
exif libexiv2-dev vpx-tools"
netpbm libnetpbm10-dev
libmcrypt-dev mcrypt
libwebp-dev
libpq-dev postgresql-client
libreadline-dev libncurses-dev
libxslt1-dev libpcre3-dev
libc-client-dev
libicu-dev
libtidy-dev
libmm-dev libgmp-dev libkrb5-dev libldap-dev
libmhash-dev
libapr1-dev libaprutil1-dev
liblua5.1-0 liblua5.1-0-dev
libsctp-dev
libcrypto++-dev
libzip-dev
libharfbuzz-dev
libsodium-dev
libxmlrpc-epi-dev"
# libcroco3-dev # libcroco3-dev
# libc-client-dev is no longer available on debian 13
#
if [[ "$os_dist" = "debian" ]] && [[ $os_version -lt 13 ]] ; then
_required_base_packages="$_required_base_packages
libc-client-dev"
fi
# Package libpcre3-dev is not availabl at debian 13, but libpcre2-dev is
# available there.
#
if [[ "$os_dist" = "debian" ]] && [[ $os_version -lt 13 ]] ; then
_required_base_packages="$_required_base_packages
libpcre3-dev"
else
_required_base_packages="$_required_base_packages
libpcre2-dev"
fi
# - Package libgraphicsmagick++3 is not available at ubunru 18.04" # - Package libgraphicsmagick++3 is not available at ubunru 18.04"
# - # -
if [[ "$os_dist" != "ubuntu" ]] ; then if [[ "$os_dist" != "ubuntu" ]] ; then
@@ -939,7 +1007,7 @@ if $WITH_PHP_FPM_SUPPORT ; then
# Get existing FPM pool definitions # Get existing FPM pool definitions
# #
for _file in $(ls "/usr/local/php-${PHP_MAIN_VERSION}/etc/fpm.d/") ; do for _file in $(ls "/usr/local/php-${PHP_MAIN_VERSION}/etc/fpm.d/") ; do
[[ "${_file}" =~ conf$ ]] || continue [[ "${_file}" =~ conf$ ]] || continue
[[ "${_file}" = "www-${PHP_MAIN_VERSION}.php-fpm.conf" ]] && continue [[ "${_file}" = "www-${PHP_MAIN_VERSION}.php-fpm.conf" ]] && continue
php_fpm_pool_definition_file_arr+=("${_file}") php_fpm_pool_definition_file_arr+=("${_file}")
@@ -1289,7 +1357,7 @@ echo ""
echo "" echo ""
echo -e "Set value for Parameter \033[32m${_key}\033[m (int)" echo -e "Set value for Parameter \033[32m${_key}\033[m (int)"
echo "" echo ""
echo " How often to check script timestamps for updates, in seconds." echo " How often to check script timestamps for updates, in seconds."
echo " 0 will result in OPcache checking for updates on every request." echo " 0 will result in OPcache checking for updates on every request."
echo "" echo ""
echo " This configuration directive is ignored if opcache.validate_timestamps" echo " This configuration directive is ignored if opcache.validate_timestamps"
@@ -1324,7 +1392,7 @@ echo ""
echo "" echo ""
echo -e "Set value for Parameter \033[32m${_key}\033[m (bool)" echo -e "Set value for Parameter \033[32m${_key}\033[m (bool)"
echo "" echo ""
echo " If enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds." echo " If enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds."
echo " When this directive is disabled, you must reset OPcache manually via opcache_reset()," echo " When this directive is disabled, you must reset OPcache manually via opcache_reset(),"
echo " opcache_invalidate() or by restarting the Web server for changes to the filesystem" echo " opcache_invalidate() or by restarting the Web server for changes to the filesystem"
echo " to take effect." echo " to take effect."
@@ -1375,7 +1443,7 @@ echo ""
echo "" echo ""
echo -e "Set value for Parameter \033[32m${_key}\033[m (bool)" echo -e "Set value for Parameter \033[32m${_key}\033[m (bool)"
echo "" echo ""
echo " If enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds." echo " If enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds."
echo " When this directive is disabled, you must reset OPcache manually via opcache_reset()," echo " When this directive is disabled, you must reset OPcache manually via opcache_reset(),"
echo " opcache_invalidate() or by restarting the Web server for changes to the filesystem" echo " opcache_invalidate() or by restarting the Web server for changes to the filesystem"
echo " to take effect." echo " to take effect."
@@ -1470,13 +1538,13 @@ echo ""
echononl "Eingabe: " echononl "Eingabe: "
while [[ -z "$_CHOOSE" ]]; do while [[ -z "$_CHOOSE" ]]; do
read OPTION read OPTION
[[ -z "$OPTION" ]] && OPTION=$__higlighted [[ -z "$OPTION" ]] && OPTION=$__higlighted
case $OPTION in case $OPTION in
1) 1)
_CHOOSE=1 _CHOOSE=1
OPCACHE_ERROR_LOG="/var/log/apache2/opcache_errors.log" OPCACHE_ERROR_LOG="/var/log/apache2/opcache_errors.log"
;; ;;
2) 2)
_CHOOSE=2 _CHOOSE=2
OPCACHE_ERROR_LOG="/var/log/nginx/opcache_errors.log" OPCACHE_ERROR_LOG="/var/log/nginx/opcache_errors.log"
;; ;;
@@ -1851,7 +1919,7 @@ fi
echo "" echo ""
if [ ! -h /usr/local/php-${PHP_MAIN_VERSION} ] ; then if [ ! -h /usr/local/php-${PHP_MAIN_VERSION} ] ; then
SYMLINK_PHP_MAIN_VERSION=true SYMLINK_PHP_MAIN_VERSION=true
echo "Symlink /usr/local/php-$PHP_MAIN_VERSION -> `basename $PREFIX_PHP` will be set." echo "Symlink /usr/local/php-$PHP_MAIN_VERSION -> `basename $PREFIX_PHP` will be set."
else else
OK="" OK=""
@@ -1940,7 +2008,7 @@ FPM_DEFAULT_POOL_ACCESS_FORMAT="\"%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo
FPM_ULIMIT_MAX_FILES=`su -c "ulimit -H -n" -s /bin/bash $_PHP_FPM_USER` FPM_ULIMIT_MAX_FILES=`su -c "ulimit -H -n" -s /bin/bash $_PHP_FPM_USER`
echo "" echo ""
@@ -2280,7 +2348,7 @@ if $WITH_PHP_FPM_SUPPORT ; then
echo " $(basename "$_file")" echo " $(basename "$_file")"
done done
fi fi
echo "" echo ""
echo "PHP FPM Pool Definitions (php-fpm.conf or included files)" echo "PHP FPM Pool Definitions (php-fpm.conf or included files)"
echo " pm.start_servers..................: $FPM_POOL_START_SERVER" echo " pm.start_servers..................: $FPM_POOL_START_SERVER"
@@ -2311,7 +2379,7 @@ if $SYMLINK_PHP_MAIN_VERSION -o $SYMLINK_PHP ; then
echo " /usr/local/php -> /usr/local/php-$PHP_MAIN_VERSION" echo " /usr/local/php -> /usr/local/php-$PHP_MAIN_VERSION"
fi fi
if $SYMLINK_PHP_MAIN_VERSION ; then if $SYMLINK_PHP_MAIN_VERSION ; then
echo " /usr/local/php-$PHP_MAIN_VERSION -> `basename $PREFIX_PHP`" echo " /usr/local/php-$PHP_MAIN_VERSION -> `basename $PREFIX_PHP`"
fi fi
fi fi
echo "" echo ""
@@ -2384,7 +2452,7 @@ if $WITH_PHP_FPM_SUPPORT ; then
if [[ -n "$(ls $PREFIX_PHP.${_backup_date}/etc/fpm.d/*.conf 2>/dev/null)" ]]; then if [[ -n "$(ls $PREFIX_PHP.${_backup_date}/etc/fpm.d/*.conf 2>/dev/null)" ]]; then
for _file in $(ls $PREFIX_PHP.${_backup_date}/etc/fpm.d/*.conf) ; do for _file in $(ls $PREFIX_PHP.${_backup_date}/etc/fpm.d/*.conf) ; do
if [[ "$(basename "$_file")" = "${FPM_DEFAULT_POOL}.php-fpm.conf" ]]; then if [[ "$(basename "$_file")" = "${FPM_DEFAULT_POOL}.php-fpm.conf" ]]; then
FPM_DEFAULT_POOL_DEFINITION_EXISTS=true FPM_DEFAULT_POOL_DEFINITION_EXISTS=true
fi fi
existing_fpm_definition_arr+=("$(realpath "$_file")") existing_fpm_definition_arr+=("$(realpath "$_file")")
@@ -2395,7 +2463,7 @@ if $WITH_PHP_FPM_SUPPORT ; then
elif [[ -n "$(ls /usr/local/php-${PHP_MAIN_VERSION}/etc/fpm.d/*.conf 2>/dev/null)" ]]; then elif [[ -n "$(ls /usr/local/php-${PHP_MAIN_VERSION}/etc/fpm.d/*.conf 2>/dev/null)" ]]; then
for _file in $(ls /usr/local/php-${PHP_MAIN_VERSION}/etc/fpm.d/*.conf) ; do for _file in $(ls /usr/local/php-${PHP_MAIN_VERSION}/etc/fpm.d/*.conf) ; do
if [[ "$(basename "$_file")" = "${FPM_DEFAULT_POOL}.php-fpm.conf" ]]; then if [[ "$(basename "$_file")" = "${FPM_DEFAULT_POOL}.php-fpm.conf" ]]; then
FPM_DEFAULT_POOL_DEFINITION_EXISTS=true FPM_DEFAULT_POOL_DEFINITION_EXISTS=true
fi fi
existing_fpm_definition_arr+=("$(realpath "$_file")") existing_fpm_definition_arr+=("$(realpath "$_file")")
@@ -2611,7 +2679,7 @@ if $_install_freetype && [[ ! -d /usr/local/freetype-$FREETYPE_VERSION ]]; then
done done
[[ $OK = "yes" ]] || fatal "Interupted by user" [[ $OK = "yes" ]] || fatal "Interupted by user"
fi fi
echononl "\tGoing to compile freetype-$FREETYPE_VERSION .." echononl "\tGoing to compile freetype-$FREETYPE_VERSION .."
make > ${_logdir}/freetype-make.log 2>&1 make > ${_logdir}/freetype-make.log 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -2830,7 +2898,7 @@ if $_install_icu4c && [[ ! -d /usr/local/icu4c-$ICU4C_VERSION ]]; then
done done
[[ $OK = "yes" ]] || fatal "Interupted by user" [[ $OK = "yes" ]] || fatal "Interupted by user"
fi fi
echononl "\tGoing to compile icu4c-$ICU4C_VERSION .." echononl "\tGoing to compile icu4c-$ICU4C_VERSION .."
make > ${_logdir}/icu4c-make.log 2>&1 make > ${_logdir}/icu4c-make.log 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -3092,7 +3160,7 @@ if $_install_python2 && [[ ! -d /usr/local/python-$PYTHON2_VERSION ]]; then
done done
[[ $OK = "yes" ]] || fatal "Interupted by user" [[ $OK = "yes" ]] || fatal "Interupted by user"
fi fi
echononl "\tGoing to compile python v${PYTHON2_VERSION} .." echononl "\tGoing to compile python v${PYTHON2_VERSION} .."
make > ${_logdir}/python2-make.log 2>&1 make > ${_logdir}/python2-make.log 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -3314,7 +3382,7 @@ if $_install_libxml2 && [[ ! -d /usr/local/libxml2-$LIBXML2_VERSION ]]; then
done done
[[ $OK = "yes" ]] || fatal "Interupted by user" [[ $OK = "yes" ]] || fatal "Interupted by user"
fi fi
echononl "\tGoing to compile libxml2-$LIBXML2_VERSION .." echononl "\tGoing to compile libxml2-$LIBXML2_VERSION .."
make > ${_logdir}/libxml2-make.log 2>&1 make > ${_logdir}/libxml2-make.log 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -3417,7 +3485,7 @@ if $_install_openssl1 && [[ ! -d /usr/local/openssl-$OPENSSL1_VERSION ]]; then
_NAME="openssl" _NAME="openssl"
_VERSION="${OPENSSL1_VERSION}" _VERSION="${OPENSSL1_VERSION}"
_archive_file="openssl-${_VERSION}.tgz" _archive_file="openssl-${_VERSION}.tgz"
_download_url="https://www.openssl.org/source/openssl-${_VERSION}.tar.gz" _download_url="https://www.openssl.org/source/openssl-${_VERSION}.tar.gz"
@@ -3567,7 +3635,7 @@ if $_install_openssl1 && [[ ! -d /usr/local/openssl-$OPENSSL1_VERSION ]]; then
fi fi
fi fi
echononl "\tGoing to compile ${_NAME} ${_VERSION} .." echononl "\tGoing to compile ${_NAME} ${_VERSION} .."
make > ${_logdir}/${_NAME}-make.log 2>&1 make > ${_logdir}/${_NAME}-make.log 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -3657,7 +3725,7 @@ fi
## - Set Symlink ## - Set Symlink
## - /usr/include/x86_64-linux-gnu/gmp.h -> /usr/include/gmp.h ## - /usr/include/x86_64-linux-gnu/gmp.h -> /usr/include/gmp.h
## - if not exists ## - if not exists
## - ## -
@@ -3673,7 +3741,7 @@ if [ -f "/usr/include/x86_64-linux-gnu/gmp.h" -a ! -e "/usr/include/gmp.h" ]; th
echo "" echo ""
fi fi
## - Set Symlink ## - Set Symlink
## - /usr/lib/x86_64-linux-gnu/libldap.so -> /usr/lib/libldap.so ## - /usr/lib/x86_64-linux-gnu/libldap.so -> /usr/lib/libldap.so
## - if not exists ## - if not exists
## - ## -
@@ -3689,7 +3757,7 @@ if [ -f "/usr/lib/x86_64-linux-gnu/libldap.so" -a ! -e "/usr/lib/libldap.so" ];
echo "" echo ""
fi fi
## - Set Symlink ## - Set Symlink
## - /usr/lib/x86_64-linux-gnu/libXpm.so -> /usr/lib/libXpm.so ## - /usr/lib/x86_64-linux-gnu/libXpm.so -> /usr/lib/libXpm.so
## - if not exists ## - if not exists
## - ## -
@@ -3705,7 +3773,7 @@ if [ -f "/usr/lib/x86_64-linux-gnu/libXpm.so" -a ! -e "/usr/lib/libXpm.so" ]; th
echo "" echo ""
fi fi
## - Set Symlink ## - Set Symlink
## - /usr/include/x86_64-linux-gnu/curl -> /usr/include/curl ## - /usr/include/x86_64-linux-gnu/curl -> /usr/include/curl
## - if not exists ## - if not exists
## - ## -
@@ -3878,7 +3946,7 @@ if [ ! -f ${_srcdir}/php-$VERSION.tar.bz2 ]; then
[[ $OK = "yes" ]] || fatal "Interupted by user" [[ $OK = "yes" ]] || fatal "Interupted by user"
fi fi
fi fi
else else
echo_failed echo_failed
error "Cannot add certificates to ca-certificates file." error "Cannot add certificates to ca-certificates file."
@@ -3943,7 +4011,7 @@ if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 11 ]] && [[ $PHP_MAJOR_VER
fatal "Can't find patchfile '${_srcdir}/PHP-7.4-OpenSSL-3.0-compatibility.patch'" fatal "Can't find patchfile '${_srcdir}/PHP-7.4-OpenSSL-3.0-compatibility.patch'"
fi fi
elif [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 11 ]] && ([[ $PHP_MAJOR_VERSION -eq 8 ]] \ elif [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 11 ]] && ([[ $PHP_MAJOR_VERSION -eq 8 ]] \
&& [[ $PHP_MINOR_VERSION -eq 0 ]]); then && [[ $PHP_MINOR_VERSION -eq 0 ]]); then
if [[ -f ${_srcdir}/PHP-8.0-OpenSSL-3.0-compatibility.patch ]] ; then if [[ -f ${_srcdir}/PHP-8.0-OpenSSL-3.0-compatibility.patch ]] ; then
patch -d $_builddir/ext -p 0 < ${_srcdir}/PHP-8.0-OpenSSL-3.0-compatibility.patch > $tmp_err_msg 2>&1 patch -d $_builddir/ext -p 0 < ${_srcdir}/PHP-8.0-OpenSSL-3.0-compatibility.patch > $tmp_err_msg 2>&1
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
@@ -3977,7 +4045,7 @@ cd $_builddir || exit 1
echononl "\tGoing to configure.." echononl "\tGoing to configure.."
# : ${_arch:=i686} # : ${_arch:=i686}
# : ${_arch:=athlon} # : ${_arch:=athlon}
# : ${_arch:=k8} ## --> x86-64 instructionset # : ${_arch:=k8} ## --> x86-64 instructionset
##_cflags="-O2 -march=$_arch " ##_cflags="-O2 -march=$_arch "
@@ -4033,8 +4101,12 @@ else
--with-openssl" --with-openssl"
fi fi
if ([[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -lt 4 ]]) \ #if ([[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -lt 4 ]]) \
|| [[ "$PHP_MAJOR_VERSION" -lt 8 ]] ; then # || [[ "$PHP_MAJOR_VERSION" -lt 8 ]] ; then
if [[ "$os_dist" = "debian" ]] && [[ "$os_version" -lt 13 ]] \
&& ( [[ "$PHP_MAJOR_VERSION" -lt 8 ]] \
|| ( [[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -lt 4 ]] ) ) ; then
config_params="$config_params config_params="$config_params
--with-imap --with-imap
@@ -4078,7 +4150,7 @@ else
--with-jpeg-dir --with-jpeg-dir
--with-xpm-dir --with-xpm-dir
--enable-zip --enable-zip
--enable-wddx --enable-wddx
" "
if [[ "$os_dist" = "debian" ]] && [[ $os_version -lt 10 ]] ; then if [[ "$os_dist" = "debian" ]] && [[ $os_version -lt 10 ]] ; then
config_params="$config_params config_params="$config_params
@@ -4112,9 +4184,9 @@ if $SYSTEMD_EXISTS ; then
fi fi
## - since version 7.0: unrecognized options --with-t1lib ## - since version 7.0: unrecognized options --with-t1lib
## - ## -
## - '--with-webp-dir=DIR' has to be added, i.e. support for libvpx ## - '--with-webp-dir=DIR' has to be added, i.e. support for libvpx
## - '--with-vpx-dir') has been removed in favor of libwebp. ## - '--with-vpx-dir') has been removed in favor of libwebp.
## - ## -
if [[ $PHP_MAJOR_VERSION -lt 7 ]] ; then if [[ $PHP_MAJOR_VERSION -lt 7 ]] ; then
config_params="$config_params config_params="$config_params
@@ -4204,7 +4276,7 @@ fi
## --with-memcache \ ## --with-memcache \
## --with-xml \ ## --with-xml \
echononl "\tGoing to compile.." echononl "\tGoing to compile.."
make > ${_logdir}/php-make.log 2>&1 make > ${_logdir}/php-make.log 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -4289,7 +4361,7 @@ if [[ "${FPM_RUN_DIR}" =~ ^/run/ ]] ; then
# systemd tmpfile settings for php fpm # systemd tmpfile settings for php fpm
d $FPM_RUN_DIR 0755 $FPM_DEFAULT_POOL_USER $FPM_DEFAULT_POOL_GROUP - d $FPM_RUN_DIR 0755 $FPM_DEFAULT_POOL_USER $FPM_DEFAULT_POOL_GROUP -
EOF" >> ${_logdir}/main.log EOF" >> ${_logdir}/main.log
cat <<EOF > /etc/tmpfiles.d/php-fpm.conf cat <<EOF > /etc/tmpfiles.d/php-fpm.conf
# systemd tmpfile settings for php fpm # systemd tmpfile settings for php fpm
d $FPM_RUN_DIR 0755 $FPM_DEFAULT_POOL_USER $FPM_DEFAULT_POOL_GROUP - d $FPM_RUN_DIR 0755 $FPM_DEFAULT_POOL_USER $FPM_DEFAULT_POOL_GROUP -
EOF EOF
@@ -4348,7 +4420,7 @@ if ! $WITHOUT_APACHE_MOD_PHP ; then
echo_failed echo_failed
fi fi
fi fi
fi fi
@@ -4661,7 +4733,7 @@ if $WITH_PHP_FPM_SUPPORT ; then
error "Removing $FPM_INIT_SCRIPT failed!" error "Removing $FPM_INIT_SCRIPT failed!"
fi fi
fi fi
echononl "\tSet Symlink $FPM_INIT_SCRIPT --> ${PREFIX_PHP}/sbin/php-${PHP_VERSION_STRING}-fpm" echononl "\tSet Symlink $FPM_INIT_SCRIPT --> ${PREFIX_PHP}/sbin/php-${PHP_VERSION_STRING}-fpm"
ln -s ${PREFIX_PHP}/sbin/php-${PHP_VERSION_STRING}-fpm $FPM_INIT_SCRIPT > /dev/null 2<&1 ln -s ${PREFIX_PHP}/sbin/php-${PHP_VERSION_STRING}-fpm $FPM_INIT_SCRIPT > /dev/null 2<&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -4672,7 +4744,7 @@ if $WITH_PHP_FPM_SUPPORT ; then
fi fi
echononl "\tMake php-${PHP_MAIN_VERSION}-fpm start at boottime" echononl "\tMake php-${PHP_MAIN_VERSION}-fpm start at boottime"
if ! grep -e "$FPM_INIT_SCRIPT" /etc/rc.local > /dev/null 2>&1 ; then if ! grep -e "$FPM_INIT_SCRIPT" /etc/rc.local > /dev/null 2>&1 ; then
sed -i -r -e "s#^([[:space:]]*exit\ +.*)#sleep 2\n$FPM_INIT_SCRIPT restart > /dev/null || /bin/true\n\n\1#" /etc/rc.local sed -i -r -e "s#^([[:space:]]*exit\ +.*)#sleep 2\n$FPM_INIT_SCRIPT restart > /dev/null || /bin/true\n\n\1#" /etc/rc.local
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo_ok echo_ok
@@ -5226,11 +5298,11 @@ EOF
# - Copy PHP FPM definitions from current installation to the new one. # - Copy PHP FPM definitions from current installation to the new one.
# - # -
if [[ ${#existing_fpm_definition_arr[@]} -gt 0 ]] ; then if [[ ${#existing_fpm_definition_arr[@]} -gt 0 ]] ; then
echo "" echo ""
for _file in "${existing_fpm_definition_arr[@]}" ; do for _file in "${existing_fpm_definition_arr[@]}" ; do
echononl "\tTake existing PHP FPM definition '$(basename "$_file")' .." echononl "\tTake existing PHP FPM definition '$(basename "$_file")' .."
cp "$_file" "${PREFIX_PHP}/etc/${FPM_POOL_CONF_DIR}/" > /dev/null 2>&1 cp "$_file" "${PREFIX_PHP}/etc/${FPM_POOL_CONF_DIR}/" > /dev/null 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo_ok echo_ok
else else
@@ -5266,7 +5338,7 @@ EOF
else else
echo_failed echo_failed
fi fi
key="pm.min_spare_servers" key="pm.min_spare_servers"
value="$FPM_POOL_MIN_SPARE" value="$FPM_POOL_MIN_SPARE"
echononl "\tPHP FPM Pool - Set Definition '${key}'.." echononl "\tPHP FPM Pool - Set Definition '${key}'.."
@@ -5917,7 +5989,7 @@ if [[ $PHP_MAJOR_VERSION -lt 7 ]] ; then
echo_failed echo_failed
error "See log file: ${_logdir}/pecl_install.log" error "See log file: ${_logdir}/pecl_install.log"
fi fi
else else
echo "" >> ${_logdir}/pecl_install.log echo "" >> ${_logdir}/pecl_install.log
@@ -6295,7 +6367,7 @@ if [[ -z "$_MagickWand_config" ]] || [[ ! -f "$(realpath "$_MagickWand_config")"
echo "# ---" >> ${_logdir}/pecl_install.log echo "# ---" >> ${_logdir}/pecl_install.log
echo "# Warning: Cannot find \"MagickWand_config\" - but is needed for \"imagick\"." >> ${_logdir}/pecl_install.log echo "# Warning: Cannot find \"MagickWand_config\" - but is needed for \"imagick\"." >> ${_logdir}/pecl_install.log
echo "# ---" >> ${_logdir}/pecl_install.log echo "# ---" >> ${_logdir}/pecl_install.log
fi fi
echo "" >> ${_logdir}/pecl_install.log echo "" >> ${_logdir}/pecl_install.log
fi fi
@@ -6334,7 +6406,7 @@ else
_failed=false _failed=false
echononl "\tInstalling git .." echononl "\tInstalling git .."
if ! dpkg -l git 2> /dev/null | grep -e "^ii" | grep git > /dev/null 2>&1 ; then if ! dpkg -l git 2> /dev/null | grep -e "^ii" | grep git > /dev/null 2>&1 ; then
echo "" >> ${_logdir}/pecl_install.log echo "" >> ${_logdir}/pecl_install.log
echo "# Installing git .." >> ${_logdir}/pecl_install.log echo "# Installing git .." >> ${_logdir}/pecl_install.log
echo "apt-get -q -y install git" >> ${_logdir}/pecl_install.log echo "apt-get -q -y install git" >> ${_logdir}/pecl_install.log
@@ -6587,7 +6659,7 @@ if ([[ "$PHP_MAJOR_VERSION" -eq 7 ]] && [[ "$PHP_MINOR_VERSION" -ge 2 ]]) \
else else
echo_skipped echo_skipped
fi fi
fi fi
@@ -6883,7 +6955,7 @@ if [[ $PHP_MAJOR_VERSION -lt 7 ]] ; then
else else
echo_failed echo_failed
fi fi
else else
printf "\n" | ${PREFIX_PHP}/bin/pecl install raphf >> "${_logdir}/pecl_install.log" 2>&1 printf "\n" | ${PREFIX_PHP}/bin/pecl install raphf >> "${_logdir}/pecl_install.log" 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
@@ -6923,35 +6995,323 @@ echo "" >> ${_logdir}/pecl_install.log
echononl "\tInstall 'imap' via pecl.." echononl "\tInstall 'imap' via pecl.."
if ([[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -ge 4 ]]) \ if ([[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -ge 4 ]]) \
|| [[ "$PHP_MAJOR_VERSION" -gt 8 ]] ; then || [[ "$PHP_MAJOR_VERSION" -gt 8 ]] \
printf "\n" | ${PREFIX_PHP}/bin/pecl install imap >> "${_logdir}/pecl_install.log" 2>&1 || ([[ "$os_dist" = "debian" ]] && [[ "$os_version" -ge 13 ]]) ; then
if [ "$?" = "0" ]; then
echo_ok if dpkg -s libc-client-dev > /dev/null 2>&1 \
|| dpkg -s libc-client2007e-dev > /dev/null 2>&1 \
|| dpkg -s libc-client2007f-dev > /dev/null 2>&1 \
|| dpkg -s uw-imap-dev >/dev/null 2>&1; then
export CPPFLAGS="-I/usr/include"
export LDFLAGS="-L/usr/lib"
printf "no\nyes\n" | pecl install imap >> "${_logdir}/pecl_install.log" 2>&1
echononl "\tphp.ini: extension=imap .."
_extension="imap.so"
perl -i -n -p -e "s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#" $PHP_INI_FILE
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo_ok echo_ok
echononl "\tphp.ini: extension=imap .."
_extension="imap.so"
perl -i -n -p -e "s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#" $PHP_INI_FILE
if [ "$?" = "0" ]; then
echo_ok
else
echo_failed
fi
else
echo_failed
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
fi
elif [[ -f "/usr/local/imap/lib/libc-client.a" ]] ; then
_failed=false
echo_skipped
echo -e "\tTry to install imap from source.."
cd /tmp
rm -rf /tmp/imap-*
echo "" >> ${_logdir}/pecl_install.log
echo "# Try to install imap from source.." >> ${_logdir}/pecl_install.log
echo "cd /tmp" >> ${_logdir}/pecl_install.log
echo "rm -rf /tmp/imap-*" >> ${_logdir}/pecl_install.log
# Download imap archive
echononl "\t Download imap source (pecl download imap).."
echo "" >> ${_logdir}/pecl_install.log
echo "# Download imap source .." >> ${_logdir}/pecl_install.log
echo "pecl download imap" >> ${_logdir}/pecl_install.log
pecl download imap > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else else
echo_failed echo_failed
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
# Unzip imap source archive
if ! ${_failed} ; then
echononl "\t Unzip imap source archive .."
echo "" >> ${_logdir}/pecl_install.log
echo "# Unzip imap source archiv .." >> ${_logdir}/pecl_install.log
echo "tar xzf imap-*.tgz " >> ${_logdir}/pecl_install.log
tar xzf imap-*.tgz >> ${_logdir}/pecl_install.log
if [[ $? -eq 0 ]]; then
echo_ok
echo " cd imap-*/" >> ${_logdir}/pecl_install.log
cd imap-*/ >> ${_logdir}/pecl_install.log
if [[ $? -gt 0 ]]; then
error "Error changing directory.."
echo ""
echo "command was: cd imap-*/"
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
else
echo_failed
echo ""
echo "command was: tar xzf imap-*.tgz"
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
fi
# phpize
if ! ${_failed} ; then
echononl "\t Prepare for building extension imap: phpize .."
echo "" >> ${_logdir}/pecl_install.log
echo "# Prepare for building extension imap: phpize .." >> ${_logdir}/pecl_install.log
echo "/usr/local/php-${VERSION}/bin/phpize " >> ${_logdir}/pecl_install.log
/usr/local/php-${VERSION}/bin/phpize >> ${_logdir}/pecl_install.log 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
echo_failed
echo ""
echo "command was: /usr/local/php-${VERSION}/bin/phpize"
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
fi
# Configure..
if ! ${_failed} ; then
echononl "\t Configure imap extension.. .."
echo "" >> ${_logdir}/pecl_install.log
echo "# Configure imap extension .." >> ${_logdir}/pecl_install.log
cat <<EOF >> ${_logdir}/pecl_install.log
export CPPFLAGS="-I/usr/local/imap/include"
export LDFLAGS="-L/usr/local/imap/lib"
./configure \
--with-php-config=/usr/local/php-${VERSION}/bin/php-config \
--with-imap=/usr/local/imap \
--with-kerberos \
--with-imap-ssl
EOF
export CPPFLAGS="-I/usr/local/imap/include"
export LDFLAGS="-L/usr/local/imap/lib"
./configure \
--with-php-config=/usr/local/php-${VERSION}/bin/php-config \
--with-imap=/usr/local/imap \
--with-kerberos \
--with-imap-ssl >> ${_logdir}/pecl_install.log 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
echo_failed
echo ""
echo "command was: ./configure .."
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
fi
if ! ${_failed} ; then
echononl "\t make.."
echo "" >> ${_logdir}/pecl_install.log
echo "# make .." >> ${_logdir}/pecl_install.log
echo "make -j\"$(nproc)\"" >> ${_logdir}/pecl_install.log
make -j"$(nproc)" >> ${_logdir}/pecl_install.log 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
echo_failed
echo ""
echo "command was: make -j\"$(nproc)\""
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
fi
if ! ${_failed} ; then
echononl "\t make install.."
echo "" >> ${_logdir}/pecl_install.log
echo "# make install .." >> ${_logdir}/pecl_install.log
echo "make install" >> ${_logdir}/pecl_install.log
make install >> ${_logdir}/pecl_install.log 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
echo_failed
echo ""
echo "command was: make install"
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
_failed=true
fi
fi
rm -rf /tmp/imap-*
if ! $_failed ; then
echononl "\tphp.ini: extension=propro .."
_extension="imap.so"
echo "" >> ${_logdir}/pecl_install.log
echo "# php.ini: extension=${_extension} .." >> ${_logdir}/pecl_install.log
echo "perl -i -n -p -e \"s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#\" $PHP_INI_FILE" >> ${_logdir}/pecl_install.log
perl -i -n -p -e "s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#" $PHP_INI_FILE
if [ "$?" = "0" ]; then
echo_ok
else
echo_failed
fi
echo ""
fi fi
else else
echo_failed
echo "" echo_skipped
echononl "continue anyway [yes/no]: " warn "The imap plugin cannot be installed - no imap library was found. "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
echo ""
fi fi
else else
echo_skipped echo_skipped
fi fi
@@ -6993,7 +7353,7 @@ if [[ $PHP_MAJOR_VERSION -lt 7 ]] ; then
else else
echo_failed echo_failed
fi fi
else else
echo "printf \"\\n\" | ${PREFIX_PHP}/bin/pecl install propro" >> ${_logdir}/pecl_install.log echo "printf \"\\n\" | ${PREFIX_PHP}/bin/pecl install propro" >> ${_logdir}/pecl_install.log
@@ -7031,7 +7391,7 @@ else
_failed=false _failed=false
echononl "\tInstalling git .." echononl "\tInstalling git .."
if ! dpkg -l git 2> /dev/null | grep -e "^ii" | grep git > /dev/null 2>&1 ; then if ! dpkg -l git 2> /dev/null | grep -e "^ii" | grep git > /dev/null 2>&1 ; then
echo "" >> ${_logdir}/pecl_install.log echo "" >> ${_logdir}/pecl_install.log
echo "# Installing git .." >> ${_logdir}/pecl_install.log echo "# Installing git .." >> ${_logdir}/pecl_install.log
echo "apt-get -q -y install git" >> ${_logdir}/pecl_install.log echo "apt-get -q -y install git" >> ${_logdir}/pecl_install.log
@@ -7197,7 +7557,7 @@ else
_extension="propro.so" _extension="propro.so"
echo "" >> ${_logdir}/pecl_install.log echo "" >> ${_logdir}/pecl_install.log
echo "# php.ini: extension=memcsched .." >> ${_logdir}/pecl_install.log echo "# php.ini: extension=${_extension} .." >> ${_logdir}/pecl_install.log
echo "perl -i -n -p -e \"s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#\" $PHP_INI_FILE" >> ${_logdir}/pecl_install.log echo "perl -i -n -p -e \"s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#\" $PHP_INI_FILE" >> ${_logdir}/pecl_install.log
perl -i -n -p -e "s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#" $PHP_INI_FILE perl -i -n -p -e "s#^(\s*\[PHP\]\s*)#\1\nextension=${_extension}\n#" $PHP_INI_FILE
@@ -7247,7 +7607,7 @@ if [[ $PHP_MAJOR_VERSION -lt 7 ]] ; then
else else
echo_failed echo_failed
fi fi
elif [[ $PHP_MAJOR_VERSION -lt 8 ]] ; then elif [[ $PHP_MAJOR_VERSION -lt 8 ]] ; then
printf "\n" | ${PREFIX_PHP}/bin/pecl install pecl_http-3.2.4 >> "${_logdir}/pecl_install.log" 2>&1 printf "\n" | ${PREFIX_PHP}/bin/pecl install pecl_http-3.2.4 >> "${_logdir}/pecl_install.log" 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo_ok echo_ok
@@ -7491,7 +7851,7 @@ else
echo_failed echo_failed
fi fi
info "Enable xdebug extension by commenting in the apropriate line at top of php.ini file" info "Enable xdebug extension by commenting in the apropriate line at top of php.ini file"
## ----- ## -----
## - END: Install xdebug ## - END: Install xdebug
@@ -7508,6 +7868,54 @@ echo ""
> ${_logdir}/pear_install.log > ${_logdir}/pear_install.log
echo "" >> ${_logdir}/pear_install.log
echo "# - Change into TMP dir '/tmp'" >> ${_logdir}/pear_install.log
echo "# -" >> ${_logdir}/pear_install.log
echo "cd /tmp" >> ${_logdir}/pear_install.log
echononl "\tChange into TMP dir '/tmp'.."
cd /tmp >> ${_logdir}/pear_install.log 2>&1
if [[ $? -gt 0 ]] ; then
echo_failed
error "Changinginto TMP dir '/tmp' failed! \n\t See logfile '${_logdir}/pear_install.log'"
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/no]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Interupted by user"
else
echo_ok
fi
echo "" >> ${_logdir}/pear_install.log
echo "# - Update channel 'pear.php.net'.." >> ${_logdir}/pear_install.log
echo "# -" >> ${_logdir}/pear_install.log
echo "${PREFIX_PHP}/bin/pear channel-update pear.php.net" >> ${_logdir}/pear_install.log
echononl "\tUpdate channel 'pear.php.net'.."
${PREFIX_PHP}/bin/pear channel-update pear.php.net >> ${_logdir}/pear_install.log 2>&1
if [[ $? -gt 0 ]] ; then
echo_failed
error "Updating channel 'pear.php.net' failed! \n\t See logfile '${_logdir}/pear_install.log'"
echo ""
echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/no]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Interupted by user"
else
echo_ok
fi
PEAR_EXT="Net_Socket" PEAR_EXT="Net_Socket"
echo "" >> ${_logdir}/pear_install.log echo "" >> ${_logdir}/pear_install.log
echo "# - Install ${PEAR_EXT} via pear.." >> ${_logdir}/pear_install.log echo "# - Install ${PEAR_EXT} via pear.." >> ${_logdir}/pear_install.log
@@ -8329,7 +8737,7 @@ if [[ -n "$zend_extension_opcache" ]];then
## - ## -
## - sometimes un conjunction with ## - sometimes un conjunction with
## - ## -
## - [Sun May 11 23:02:25.120263 2014] [core:warn] [pid 11566:tid 139746681894656] ## - [Sun May 11 23:02:25.120263 2014] [core:warn] [pid 11566:tid 139746681894656]
## - AH00045: child process 28405 still did not exit, sending a SIGTERM ## - AH00045: child process 28405 still did not exit, sending a SIGTERM
## - ## -
echononl "\tphp.ini: opcache.fast_shutdown = 0 .." echononl "\tphp.ini: opcache.fast_shutdown = 0 .."
@@ -8450,18 +8858,18 @@ if [[ -d "/usr/local/mysql" ]]; then
error "$(cat $tmp_err_msg)" error "$(cat $tmp_err_msg)"
fi fi
fi fi
fi fi
cd $pwd cd ${CUR_PWD}
cat<<EOF cat<<EOF
php.ini php.ini
======= =======
You may edit your php.ini file "$PHP_INI_FILE" You may edit your php.ini file "$PHP_INI_FILE"
to set more PHP options. to set more PHP options.
EOF EOF