首页 > 技术文章 > PHP安装之configure的配置参数

wanglijun 2018-04-10 12:39 原文

1、生成环境安装配置如下

要求安装如下库:

imagick
gd
mysql
mysqli
mysqlnd
phalcon
Phar
soap
sockets
xwebxsvc
zip
zlib

具体查看 vim php-config 就可以知道是如何配置的

--prefix=/home/php' '--with-config-file-path=/home/php/etc' '--with-mysql' '--with-pdo-oci' '--with-openssl' '--with-pear' '--with-mhash' '--with-xmlrpc' '--with-zlib' '--with-mcrypt' '--with-curl' '--with-gd' '--with-freetype-dir=/usr/include/freetype2' '--without-sqlite3' '--without-pdo-sqlite' '--disable-rpath' '--without-pear' '--enable-fpm' '--enable-maintainer-zts' '--enable-pcntl' '--with-tsrm-pthreads' '--enable-mbstring' '--enable-mbregex' '--enable-bcmath' '--enable-zip' '--enable-sockets' '--enable-soap' '--enable-gd-native-ttf' '--enable-xml' '--enable-inline-optimization' '--enable-opcache

 

./configure' '--prefix=/home/php' '--with-config-file-path=/home/php/etc' '--with-mysql' '--with-pdo-oci' '--with-openssl' '--with-pear' '--with-mhash' '--with-xmlrpc' '--with-zlib' '--with-mcrypt' '--with-curl' '--with-gd' '--with-freetype-dir=/usr/include/freetype2' '--without-sqlite3' '--without-pdo-sqlite' '--disable-rpath' '--without-pear' '--enable-fpm' '--enable-maintainer-zts' '--enable-pcntl' '--with-tsrm-pthreads' '--enable-mbstring' '--enable-mbregex' '--enable-bcmath' '--enable-zip' '--enable-sockets' '--enable-soap' '--enable-gd-native-ttf' '--enable-xml' '--enable-inline-optimization' '--enable-opcache

 

--prefix=/home/php --with-config-file-path=/home/php/etc --with-fpm-user=daokr --with-fpm-group=daokr --with-pdo-mysql --with-openssl --with-pear --with-mhash --with-xmlrpc --with-zlib --with-mcrypt --with-curl --with-jpeg-dir --with-png-dir --with-gd --with-freetype-dir=/usr/local/include/freetype2 --without-sqlite3 --without-pdo-sqlite --disable-rpath --without-pear --enable-fpm --enable-maintainer-zts --enable-pcntl --with-tsrm-pthreads --enable-mbstring --enable-mbregex --enable-bcmath --enable-zip --enable-sockets --enable-soap --enable-gd-native-ttf --enable-xml --enable-inline-optimization --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-ftp --with-gettext --enable-opcache

  

推荐阅读