各版本PHP编译安装的configure参数

查看已安装PHP的configure参数
[root@localhost ~]# /program/php/bin/php -i | grep configure
 
 
 
如果升级了OpenSSL需要设置环境变量PKG_CONFIG_PATH
[root@localhost ~]# vim /etc/profile
…………此处省略内容若干…………
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/program/openssl/lib64/pkgconfig
[root@localhost ~]# source /etc/profile
 
 
 
PHP Version 8.2
--------------------------------------------------
./configure --prefix=/program/php-8.2 --bindir=/program/php-8.2/bin --exec-prefix=/program/php-8.2 --includedir=/program/php-8.2/include --libdir=/program/php-8.2/lib --mandir=/program/php-8.2/man --sbindir=/program/php-8.2/sbin --with-config-file-path=/program/php-8.2 --disable-debug --disable-rpath --enable-bcmath --enable-calendar --enable-cgi --enable-cli --enable-ctype --enable-exif --enable-fileinfo --enable-fpm --enable-ftp --enable-gd --enable-gd-jis-conv --enable-intl --enable-ipv6 --enable-mbregex --enable-mbstring --enable-mysqlnd --enable-opcache --enable-pcntl --enable-pdo --enable-phar --enable-session --enable-shared --enable-shmop --enable-simplexml --enable-soap --enable-sockets --enable-static --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-xml --enable-zts --with-bz2 --with-curl --with-fpm-group=www --with-fpm-user=www --with-freetype --with-gettext --with-iconv --with-jpeg --with-kerberos --with-ldap-sasl --with-libxml --with-mhash --with-mysqli --with-openssl --without-gdbm --with-pdo-mysql --with-pdo-sqlite --with-pear --with-readline --with-sqlite3 --with-tidy --with-webp --with-xpm --with-xsl --with-zlib
 
 
 
PHP Version 8.1
--------------------------------------------------
./configure --prefix=/program/php-8.1 --exec-prefix=/program/php-8.1 --with-config-file-path=/program/php-8.1 --bindir=/program/php-8.1/bin --includedir=/program/php-8.1/include --libdir=/program/php-8.1/lib --mandir=/program/php-8.1/man --sbindir=/program/php-8.1/sbin --disable-debug --disable-rpath --enable-bcmath --enable-calendar --enable-ctype --enable-exif --enable-fpm --enable-ftp --enable-intl --enable-mbregex --enable-mbstring --enable-mysqlnd --enable-opcache --enable-pcntl --enable-session --enable-shared --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-xml --enable-zts --with-bz2 --with-curl --with-fpm-group=www --with-fpm-user=www --with-gettext --with-iconv --with-kerberos --with-ldap-sasl --with-mhash --with-mysqli --with-openssl --with-pdo-mysql --with-readline --with-xsl --with-zlib
 
 
 
PHP Version 7.2
--------------------------------------------------
./configure --prefix=/program/php-7.2 --with-config-file-path=/program/php-7.2 --disable-debug --disable-rpath --enable-bcmath --enable-calendar --enable-dom --enable-exif --enable-fileinfo --enable-filter --enable-fpm --enable-ftp --enable-gd-jis-conv --enable-inline-optimization --enable-json --enable-maintainer-zts --enable-mbregex --enable-mbregex-backtrack --enable-mbstring --enable-mysqlnd-compression-support --enable-opcache --enable-pdo --enable-session --enable-shared --enable-shmop --enable-simplexml --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-bz2 --with-cdb --with-curl --with-fpm-group=www --with-fpm-user=www --with-freetype-dir --with-gd --with-gettext --with-gmp --with-iconv --with-jpeg-dir --with-libmbfl --with-libxml-dir --with-mhash --with-mysqli=mysqlnd --with-onig --with-openssl --with-openssl-dir --with-pcre-dir --with-pcre-regex --with-pdo-mysql=mysqlnd --with-pdo-sqlite --with-pear --with-png-dir --with-readline --with-sqlite3 --with-xmlrpc --with-xsl --with-zlib --with-zlib-dir
 
 
 
PHP Version 5.6
--------------------------------------------------
./configure --prefix=/program/php-5.6 --with-config-file-path=/program/php-5.6 --with-fpm-group=www --with-fpm-user=www --with-mcrypt=/program/libmcrypt --with-gd --enable-opcache --disable-debug --disable-rpath --enable-bcmath --enable-calendar --enable-ctype --enable-exif --enable-fpm --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-maintainer-zts --enable-mbregex --enable-mbstring --enable-pcntl --enable-session --enable-shared --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip --with-bz2 --with-curl --with-freetype-dir --with-gettext --with-iconv --with-jpeg-dir --with-kerberos --with-ldap-sasl --with-libxml-dir --with-mhash --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-png-dir --with-readline --with-xmlrpc --with-xsl --with-zlib

Copyright © 2024 码农人生. All Rights Reserved