Test PHP install

This commit is contained in:
Edi Septriyanto
2021-12-18 13:48:31 +07:00
parent 49f35222ee
commit ff75fd4f0d
3 changed files with 4 additions and 4 deletions

View File

@@ -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"

View File

@@ -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")

View File

@@ -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