From ff75fd4f0d9505f82a759cf10a815ce486c19e13 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Sat, 18 Dec 2021 13:48:31 +0700 Subject: [PATCH] Test PHP install --- .env.dist | 2 +- scripts/install_php.sh | 4 ++-- scripts/remove_php.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.dist b/.env.dist index a95fa2c..ed750f2 100644 --- a/.env.dist +++ b/.env.dist @@ -154,7 +154,7 @@ PHP_VERSIONS="7.4 8.0" # Additional PHP modules (extensions) to install. # Installing multiple extension is supported, separate version by space. # Type only the extension name (without php*-). -PHP_EXTENSIONS="geoip gnupg imagick igbinary json mcrypt memcache memcached msgpack sodium swoole xmlrpc yaml" +PHP_EXTENSIONS="geoip gnupg imagick igbinary json mcrypt memcache memcached msgpack openswoole sodium" # DO NOT CHANGE DEFAULT_PHP_VERSION="7.4" diff --git a/scripts/install_php.sh b/scripts/install_php.sh index 8f0ea85..07a72d7 100755 --- a/scripts/install_php.sh +++ b/scripts/install_php.sh @@ -82,8 +82,8 @@ function install_php() { read -r -a PHP_EXTS <<< "${PHP_EXTENSIONS}" PHP_EXTS+=("bcmath" "bz2" "calendar" "cli" "common" "curl" "dev" "exif" "fpm" "gd" "gettext" "gmp" "gnupg" \ - "iconv" "igbinary" "imap" "intl" "mbstring" "msgpack" "mysql" "opcache" "pdo" "pgsql" "posix" "pspell" \ - "readline" "redis" "ldap" "snmp" "soap" "sqlite3" "tidy" "tokenizer" "xml" "xmlrpc" "xsl" "zip") + "iconv" "imap" "intl" "mbstring" "mysql" "opcache" "pcov" "pdo" "pgsql" "posix" "pspell" \ + "readline" "redis" "ldap" "snmp" "soap" "sqlite3" "tidy" "tokenizer" "xml" "xmlrpc" "xsl" "yaml" "zip") # Add PHP extensions. [[ "${INSTALL_MEMCACHED}" == true ]] && PHP_EXTS+=("memcache" "memcached") diff --git a/scripts/remove_php.sh b/scripts/remove_php.sh index 809210b..17977ba 100755 --- a/scripts/remove_php.sh +++ b/scripts/remove_php.sh @@ -398,7 +398,7 @@ function init_php_fpm_removal() { if [[ "${PHP_IS_EXISTS}" == false ]]; then echo "Removing additional unused PHP packages..." - run apt-get --purge remove-qq -y dh-php php-common php-pear php-xml pkg-php-tools fcgiwrap spawn-fcgi + run apt-get --purge remove -qq -y dh-php php-common php-pear php-xml pkg-php-tools fcgiwrap spawn-fcgi # Remove PHP repository. run add-apt-repository -y --remove ppa:ondrej/php