源码安装php5.6时的配置:

来源:互联网 发布:保卫萝卜3 炮塔数据 编辑:程序博客网 时间:2024/06/17 16:11

源码安装php5.6时的配置:


./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --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-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo 


如果mysql在php安装之后安装的,还需要挂载mysql.so扩展。参考:http://www.cnblogs.com/wangtao_20/archive/2011/03/07/1973621.html

然后重启php-fpm及nginx即可.


但是为什么禁用掉exec函数之后,shell里面还是可以使用exec函数呢?

0 0
原创粉丝点击