eva2000
Verified User
- Joined
- Jul 1, 2019
- Messages
- 127
New to DirectAdmin so still haven't found specific examples of overriding system level php.ini options for each php-fpm version installed on the server. From the looks of it I can utilise existing php config file scan directory setups to override php.ini so use a custom .ini in /usr/local/phpXX/lib/php.conf.d/99-custom.ini where XX is 56, 72, 73 for php versions I have installed.
Question
The question I have is 99-custom.ini specifically used by DirectAdmin ? I don't want my settings in 99-custom.ini to be wiped or overriden by DirectAdmin.
I wrote my own php config command script which
setting new custom php option
output for my 3 php-fpm versions installed, php 5.6, 7.2, 7.3
Then inspecting each php-fpm versions php.d *.ini settings files which matter
output
And finally running getphpconfig command without any option parameters just reports each php-fpm versions information
Question
The question I have is 99-custom.ini specifically used by DirectAdmin ? I don't want my settings in 99-custom.ini to be wiped or overriden by DirectAdmin.
I wrote my own php config command script which
- inspect all php-fpm versions configuration settings
- inspect all php-fpm versions *.ini configuration paths and settings
- set and add custom php configuration options into own override 99-custom.ini settings file for each php-fpm version installed and restart respective services and then inspect the new php set value
setting new custom php option
Code:
getphpconfig set max_input_vars=10000
Code:
getphpconfig set max_input_vars=10000
-------------------------------------------------------
php-config: 5.6.40
config file scan dir: /usr/local/php56/lib/php.conf.d
Usage: /usr/local/php56/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php56]
--includes [-I/usr/local/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lrt -lmcrypt -lltdl -lstdc++ -liconv -lpng -lz -ljpeg -lcurl -lz -lpcre -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226]
--include-dir [/usr/local/php56/include/php]
--man-dir [/usr/local/php56/php/man]
--php-binary [/usr/local/php56/bin/php56]
--php-sapis [ cli fpm cgi]
--configure-options [--prefix=/usr/local/php56 --program-suffix=56 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php56/lib/php.conf.d --with-curl --with-gd --enable-gd-native-ttf --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mcrypt --with-mhash --with-mysql=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl CXXFLAGS=-std=c++11 -DU_USING_ICU_NAMESPACE=1]
--version [5.6.40]
--vernum [50640]
-------------------------------------------------------
set max_input_vars=10000
setup /usr/local/php56/lib/php.conf.d/99-custom.ini
Redirecting to /bin/systemctl restart php-fpm56.service
inspecting set php option: max_input_vars
max_input_vars => 10000 => 10000
-------------------------------------------------------
php-config: 7.2.20
config file scan dir: /usr/local/php72/lib/php.conf.d
Usage: /usr/local/php72/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php72]
--includes [-I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lsodium -lrt -lstdc++ -liconv -lpng -lz -ljpeg -lwebp -lz -lpcre -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718]
--include-dir [/usr/local/php72/include/php]
--man-dir [/usr/local/php72/php/man]
--php-binary [/usr/local/php72/bin/php72]
--php-sapis [ cli fpm phpdbg cgi]
--configure-options [--prefix=/usr/local/php72 --program-suffix=72 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php72/lib/php.conf.d --with-curl --with-gd --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-sodium=/usr/local --with-webp-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl]
--version [7.2.20]
--vernum [70220]
-------------------------------------------------------
set max_input_vars=10000
setup /usr/local/php72/lib/php.conf.d/99-custom.ini
Redirecting to /bin/systemctl restart php-fpm72.service
inspecting set php option: max_input_vars
max_input_vars => 10000 => 10000
-------------------------------------------------------
php-config: 7.3.7
config file scan dir: /usr/local/php73/lib/php.conf.d
Usage: /usr/local/php73/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php73]
--includes [-I/usr/local/php73/include/php -I/usr/local/php73/include/php/main -I/usr/local/php73/include/php/TSRM -I/usr/local/php73/include/php/Zend -I/usr/local/php73/include/php/ext -I/usr/local/php73/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lsodium -lrt -lstdc++ -liconv -lpng -lz -ljpeg -lwebp -lz -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lpcre2-8 -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731]
--include-dir [/usr/local/php73/include/php]
--man-dir [/usr/local/php73/php/man]
--php-binary [/usr/local/php73/bin/php73]
--php-sapis [ cli fpm phpdbg cgi]
--configure-options [--prefix=/usr/local/php73 --program-suffix=73 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php73/lib/php.conf.d --with-curl --with-gd --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-sodium=/usr/local --with-webp-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --without-libzip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl]
--version [7.3.7]
--vernum [70307]
-------------------------------------------------------
set max_input_vars=10000
setup /usr/local/php73/lib/php.conf.d/99-custom.ini
Redirecting to /bin/systemctl restart php-fpm73.service
inspecting set php option: max_input_vars
max_input_vars => 10000 => 10000
Code:
getphpconfig ini
Code:
getphpconfig ini
-------------------------------------------------------
php-config: 5.6.40
config file scan dir: /usr/local/php56/lib/php.conf.d
Usage: /usr/local/php56/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php56]
--includes [-I/usr/local/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lrt -lmcrypt -lltdl -lstdc++ -liconv -lpng -lz -ljpeg -lcurl -lz -lpcre -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226]
--include-dir [/usr/local/php56/include/php]
--man-dir [/usr/local/php56/php/man]
--php-binary [/usr/local/php56/bin/php56]
--php-sapis [ cli fpm cgi]
--configure-options [--prefix=/usr/local/php56 --program-suffix=56 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php56/lib/php.conf.d --with-curl --with-gd --enable-gd-native-ttf --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mcrypt --with-mhash --with-mysql=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl CXXFLAGS=-std=c++11 -DU_USING_ICU_NAMESPACE=1]
--version [5.6.40]
--vernum [50640]
-------------------------------------------------------
inspect /usr/local/php56/lib/php.conf.d
/usr/local/php56/bin/php56 --ini
Configuration File (php.ini) Path: /usr/local/php56/lib
Loaded Configuration File: /usr/local/php56/lib/php.ini
Scan for additional .ini files in: /usr/local/php56/lib/php.conf.d
Additional .ini files parsed: /usr/local/php56/lib/php.conf.d/10-directadmin.ini,
/usr/local/php56/lib/php.conf.d/90-custom.ini,
/usr/local/php56/lib/php.conf.d/99-custom.ini
inspect /usr/local/php56/lib/php.conf.d/10-directadmin.ini
extension_dir=/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226
extension=imagick.so
zend_extension=/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
opcache.memory_consumption=192
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=30
opcache.enable_cli=0
opcache.validate_permission=1
opcache.use_cwd=1
opcache.revalidate_path=1
opcache.enable_file_override=1
inspect /usr/local/php56/lib/php.conf.d/90-custom.ini
extension=geoip.so
extension=memcache.so
inspect /usr/local/php56/lib/php.conf.d/99-custom.ini
max_input_vars=10000
-------------------------------------------------------
php-config: 7.2.20
config file scan dir: /usr/local/php72/lib/php.conf.d
Usage: /usr/local/php72/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php72]
--includes [-I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lsodium -lrt -lstdc++ -liconv -lpng -lz -ljpeg -lwebp -lz -lpcre -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718]
--include-dir [/usr/local/php72/include/php]
--man-dir [/usr/local/php72/php/man]
--php-binary [/usr/local/php72/bin/php72]
--php-sapis [ cli fpm phpdbg cgi]
--configure-options [--prefix=/usr/local/php72 --program-suffix=72 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php72/lib/php.conf.d --with-curl --with-gd --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-sodium=/usr/local --with-webp-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl]
--version [7.2.20]
--vernum [70220]
-------------------------------------------------------
inspect /usr/local/php72/lib/php.conf.d
/usr/local/php72/bin/php72 --ini
Configuration File (php.ini) Path: /usr/local/php72/lib
Loaded Configuration File: /usr/local/php72/lib/php.ini
Scan for additional .ini files in: /usr/local/php72/lib/php.conf.d
Additional .ini files parsed: /usr/local/php72/lib/php.conf.d/10-directadmin.ini,
/usr/local/php72/lib/php.conf.d/90-custom.ini,
/usr/local/php72/lib/php.conf.d/99-custom.ini
inspect /usr/local/php72/lib/php.conf.d/10-directadmin.ini
extension_dir=/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718
extension=imagick.so
zend_extension=/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
opcache.memory_consumption=192
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=30
opcache.enable_cli=0
opcache.validate_permission=1
opcache.use_cwd=1
opcache.revalidate_path=1
opcache.enable_file_override=1
inspect /usr/local/php72/lib/php.conf.d/90-custom.ini
extension=redis.so
extension=memcached.so
extension=geoip.so
inspect /usr/local/php72/lib/php.conf.d/99-custom.ini
max_input_vars=10000
-------------------------------------------------------
php-config: 7.3.7
config file scan dir: /usr/local/php73/lib/php.conf.d
Usage: /usr/local/php73/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php73]
--includes [-I/usr/local/php73/include/php -I/usr/local/php73/include/php/main -I/usr/local/php73/include/php/TSRM -I/usr/local/php73/include/php/Zend -I/usr/local/php73/include/php/ext -I/usr/local/php73/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lsodium -lrt -lstdc++ -liconv -lpng -lz -ljpeg -lwebp -lz -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lpcre2-8 -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731]
--include-dir [/usr/local/php73/include/php]
--man-dir [/usr/local/php73/php/man]
--php-binary [/usr/local/php73/bin/php73]
--php-sapis [ cli fpm phpdbg cgi]
--configure-options [--prefix=/usr/local/php73 --program-suffix=73 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php73/lib/php.conf.d --with-curl --with-gd --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-sodium=/usr/local --with-webp-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --without-libzip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl]
--version [7.3.7]
--vernum [70307]
-------------------------------------------------------
inspect /usr/local/php73/lib/php.conf.d
/usr/local/php73/bin/php73 --ini
Configuration File (php.ini) Path: /usr/local/php73/lib
Loaded Configuration File: /usr/local/php73/lib/php.ini
Scan for additional .ini files in: /usr/local/php73/lib/php.conf.d
Additional .ini files parsed: /usr/local/php73/lib/php.conf.d/10-directadmin.ini,
/usr/local/php73/lib/php.conf.d/50-webapps.ini,
/usr/local/php73/lib/php.conf.d/90-custom.ini,
/usr/local/php73/lib/php.conf.d/99-custom.ini
inspect /usr/local/php73/lib/php.conf.d/10-directadmin.ini
extension_dir=/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731
extension=imagick.so
zend_extension=/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/opcache.so
opcache.memory_consumption=192
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=30
opcache.enable_cli=0
opcache.validate_permission=1
opcache.use_cwd=1
opcache.revalidate_path=1
opcache.enable_file_override=1
inspect /usr/local/php73/lib/php.conf.d/50-webapps.ini
[PATH=/var/www/html]
session.save_path=/var/www/tmp
upload_tmp_dir=/var/www/tmp
disable_functions=exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
inspect /usr/local/php73/lib/php.conf.d/90-custom.ini
extension=redis.so
extension=memcached.so
extension=geoip.so
inspect /usr/local/php73/lib/php.conf.d/99-custom.ini
max_input_vars=10000
Code:
getphpconfig
-------------------------------------------------------
php-config: 5.6.40
config file scan dir: /usr/local/php56/lib/php.conf.d
Usage: /usr/local/php56/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php56]
--includes [-I/usr/local/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lrt -lmcrypt -lltdl -lstdc++ -liconv -lpng -lz -ljpeg -lcurl -lz -lpcre -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226]
--include-dir [/usr/local/php56/include/php]
--man-dir [/usr/local/php56/php/man]
--php-binary [/usr/local/php56/bin/php56]
--php-sapis [ cli fpm cgi]
--configure-options [--prefix=/usr/local/php56 --program-suffix=56 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php56/lib/php.conf.d --with-curl --with-gd --enable-gd-native-ttf --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mcrypt --with-mhash --with-mysql=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl CXXFLAGS=-std=c++11 -DU_USING_ICU_NAMESPACE=1]
--version [5.6.40]
--vernum [50640]
-------------------------------------------------------
php-config: 7.2.20
config file scan dir: /usr/local/php72/lib/php.conf.d
Usage: /usr/local/php72/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php72]
--includes [-I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lsodium -lrt -lstdc++ -liconv -lpng -lz -ljpeg -lwebp -lz -lpcre -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718]
--include-dir [/usr/local/php72/include/php]
--man-dir [/usr/local/php72/php/man]
--php-binary [/usr/local/php72/bin/php72]
--php-sapis [ cli fpm phpdbg cgi]
--configure-options [--prefix=/usr/local/php72 --program-suffix=72 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php72/lib/php.conf.d --with-curl --with-gd --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-sodium=/usr/local --with-webp-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl]
--version [7.2.20]
--vernum [70220]
-------------------------------------------------------
php-config: 7.3.7
config file scan dir: /usr/local/php73/lib/php.conf.d
Usage: /usr/local/php73/bin/php-config [OPTION]
Options:
--prefix [/usr/local/php73]
--includes [-I/usr/local/php73/include/php -I/usr/local/php73/include/php/main -I/usr/local/php73/include/php/TSRM -I/usr/local/php73/include/php/Zend -I/usr/local/php73/include/php/ext -I/usr/local/php73/include/php/ext/date/lib]
--ldflags [ -L/usr/local/lib -L/usr/local/icu/lib]
--libs [-lcrypt -lz -lexslt -lresolv -lcrypt -lsodium -lrt -lstdc++ -liconv -lpng -lz -ljpeg -lwebp -lz -lrt -lm -ldl -lnsl -lsystemd -lxml2 -lz -liconv -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lpcre2-8 -lcurl -lxml2 -lz -liconv -lm -ldl -lssl -lcrypto -lfreetype -licui18n -licuuc -licudata -licuio -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lcrypt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -lxslt -lxml2 -lz -liconv -ldl -lm -lssl -lcrypto -lcrypt ]
--extension-dir [/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731]
--include-dir [/usr/local/php73/include/php]
--man-dir [/usr/local/php73/php/man]
--php-binary [/usr/local/php73/bin/php73]
--php-sapis [ cli fpm phpdbg cgi]
--configure-options [--prefix=/usr/local/php73 --program-suffix=73 --enable-fpm --with-fpm-systemd --with-config-file-scan-dir=/usr/local/php73/lib/php.conf.d --with-curl --with-gd --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-libxml-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pcre-regex=/usr/local --with-pdo-mysql=mysqlnd --with-pear --with-png-dir=/usr/local/lib --with-sodium=/usr/local --with-webp-dir=/usr/local/lib --with-xsl --with-zlib --enable-zip --without-libzip --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-sockets --enable-soap --enable-mbstring --with-icu-dir=/usr/local/icu --enable-intl]
--version [7.3.7]
--vernum [70307]