首页 > 代码库 > php 编译安装选项

php 编译安装选项

./configure  --prefix=/usr/local/php/ --with-config-file-path=/etc/php5/cli/  --with-config-file-scan-dir=/etc/php5/mods-available/  --with-apxs2=/usr/local/apache243/bin/apxs  --with-mysql   --with-libxml-dir=/usr/local/libxml2/ --with-png-dir=/usr/local/libpng/ --with-jpeg-dir=/usr/local/jpeg8/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd/ --with-zlib-dir=/usr/local/zlib/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli  --enable-soap --enable-mbstring=all --enable-sockets  --with-pdo-mysql --with-pdo-pgsql --with-pgsql --with-curl

--with-XX 中不带文件路径的文件是通过apt-get 方式添加的。

php 编译安装选项