你从未珍惜眼前,你活该失去所有。
php各参数配置详解
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php/etc --with-MySQL=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-safe-mode --enable-ftp --enable-zip
--with-bz2 --with-jpeg-dir --with-png-dir --with-freetype-dir --without-iconv --with-libXML-dir --with-XMLrpc --with-zlib-dir --with-gd --enable-gd-native-ttf --with-curl --with-curlwrappers --with-ttf --with-xsl --with-gettext --with-pear --enable-calendar --enable-mbstring --enable-bcmath --enable-sockets --enable-exif --enable-magic-quotes --disable-rpath --disable-debug --with-mime-magic=/usr/share/file/magic.mime
|
CGI方式安装才用的参数
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| --enable-fpm --enable-fastCGI --enable-force-CGI-redirect --with-ncurses --enable-pcntl --with-mcrypt --with-mhash
--with-gmp --enable-inline-optimization --with-openssl --enable-dbase --with-pcre-dir=/usr/local/bin/pcre-config --disable-dmalloc --with-gdbm --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-zend-multibyte --enable-mbregex --enable-wddx --enable-shmop --enable-soap
|
注意事项
指定了–with-apxs2=/usr/local/apache/bin/apxs以后,就不要再激活–enable-fpm和–enable-fastCGI,apxs是以php module的模式加载PHP的。
http://www.jianshu.com/p/0a79847c8151