其他配置请参考之前的:LAMP、LNMP
php:
0 1 2 3 4 5 6 7 8 9 10 11 |
[root@LAMP tmp]# wget museum.php.net/php5/php-5.2.17.tar.gz [root@LAMP tmp]# wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz [root@LAMP tmp]# wget http://www.92csz.com/downloads/php-5.2.17-max-input-vars.patch [root@LAMP tmp]# tar zxf php-5.2.17.tar.gz [root@LAMP tmp]# gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1 [root@LAMP tmp]# patch -p0 -b < ../php-5.x.x.patch [root@LAMP tmp]# cd php-5.2.17 [root@LAMP tmp]# patch -p1 < php-5.2.17-max-input-vars.patch [root@LAMP php-5.2.17]# sed -i "s/\!png_check_sig (sig, 8)/png_sig_cmp (sig, 0, 8)/" ext/gd/libgd/gd_png.c [root@LAMP php-5.2.17]# ./configure --prefix=/byrd/server/php-5.2.17 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --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 --with-mime-magic [root@LAMP php-5.2.17]# make && make install [root@LAMP php-5.2.17]# cp php.ini-recommended /byrd/server/php-5.2.17/lib/php.ini |
参考:http://www.92csz.com/19/603.html
参考:http://php.net/manual/zh/install.unix.nginx.php
参考:http://zyan.cc/nginx_php_v5/
申明:本文由BYRD原创(基于Centos6.4 X64),未经许可禁止转载! SourceByrd's Weblog-https://note.t4x.org/environment/centosw-phpfastcgi/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!