- ./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需要这样编译
- make ZEND_EXTRA_LIBS='-liconv'
- make install
复制代码 |
|
|
|
|