无限星辰工作室-客户无限互联网动力之源

标题: centos 下 PHP编译参数 [打印本页]

作者: crx349    时间: 2020-4-10 19:28
标题: centos 下 PHP编译参数
  1. ./configure  --prefix=/usr/local/php --without-pear --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --disable-debug --disable-ipv6 --disable-filter --enable-exif --enable-ftp --with-gettext --with-mhash=shared  --disable-phar --disable-posix --with-sqlite=shared --with-sqlite3=shared --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --enable-pdo --with-pdo-sqlite=shared --with-openssl
复制代码
分享下 默认支持 PDO 和PDO-mysql
5.3需要这样编译
  1. make ZEND_EXTRA_LIBS='-liconv'   
  2. make install
复制代码





欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://www.xmspace.net/) Powered by Discuz! X3.4