环境如题
笔者能力有限,欢迎拍砖~
这个参数应该是够全了,放在这就是为了找个地方放一下,大家也可以用哦~~反正跑个什么wordpress啊,mongodb啊,没问题~~没毛病~~刷刷的
<!-- lang: shell -->
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --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-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt=/usr/local/libmcrytp --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext
不过要注意的是,我把libmcrytp放在了libmcrytp,所以要--with-mcrypt=/usr/local/libmcrytp php.ini我也没放/etc下,而是放在了/usr/local/php/etc下,至少FTP操作的时候不至于老切换目录了~