有2条错误比较引人注意:
tail /www/wdlinux/nginx_php-5.2.17/logs/php-fpm.log
[WARNING] fpm_children_bury(), line 215: child 16523 (pool default) exited on signal 15 SIGTERM after 1868.423609 seconds from start
tail /www/wdlinux/nginx/logs/error.log
[error] 16501#0: *5 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 123.456.789, server: www.shop-yishunbike.com, request: "POST /index.php?option=com_contact&view=contact&id=1&Itemid=210 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "............", referrer: "........................."
用site:()搜索:
site:(wdlinux.cn) recv() failed (104: Connection reset by peer)
再参考张宴大哥的那篇nginx文章,运行如下命令:
tar zxf php-5.4.13.tar.gz
cd php-5.4.13
LIBS="-lm -ltermcap -lresolv"DYLD_LIBRARY_PATH="/www/wdlinux/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
LD_LIBRARY_PATH="/www/wdlinux/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
cd php-5.4.13/ext/pdo_mysql/
/www/wdlinux/php2/bin/phpize
./configure --with-php-config=/www/wdlinux/php2/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make && make install
cd ../../..
配置php.ini,添加下面的语句
vim /www/wdlinux/php2/etc/php.ini
extension_dir = "/www/wdlinux/php2/lib/php/extensions/no-debug-non-zts-20100525/"
extension = "pdo_mysql.so"
cgi.fix_pathinfo=0
always_populate_raw_post_data = On