mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-03 03:08:27 +00:00
Test PHP install
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user