<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>月影鹏鹏 &#187; php</title>
	<atom:link href="http://jk.aiwaly.com/wp/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://jk.aiwaly.com</link>
	<description>不断探索,追求卓越,做快乐自己</description>
	<lastBuildDate>Thu, 29 Mar 2012 01:09:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>php下添加pdo_mysql扩展</title>
		<link>http://jk.aiwaly.com/wp/php-pdo_mysql-setup.html</link>
		<comments>http://jk.aiwaly.com/wp/php-pdo_mysql-setup.html#comments</comments>
		<pubDate>Thu, 03 Mar 2011 13:14:19 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[question (问题)]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2927</guid>
		<description><![CDATA[# wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
# tar xzvf PDO_MYSQL-1.0.2.tgz
# cd PDO_MYSQL-1.0.2
# /usr/local/php/bin/phpize
./configure &#8211;with-php-config=/usr/local/php/bin/php-config
注意：php安装在/usr/local/php下
经过configure就可以make了
./configure &#8211;with-php-config=/usr/local/php/bin/php-config -with-pdo-mysql=/usr/local/mysql/bin/mysql_config
make
make install
注意pdo_mysql的全路径是：
/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613//pdo_mysql.so
然后:
# vi //usr/local/php/lib/php.ini
加上一句：
extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so
保存后，重新启动apache即可看到已经加载pdo_mysql成功。
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/php-pdo_mysql-setup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx+php+fpm+apc=awesome</title>
		<link>http://jk.aiwaly.com/wp/nginxphpfpmapcawesome.html</link>
		<comments>http://jk.aiwaly.com/wp/nginxphpfpmapcawesome.html#comments</comments>
		<pubDate>Thu, 24 Dec 2009 07:49:08 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[English Version]]></category>
		<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[fpm]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=1608</guid>
		<description><![CDATA[
The following guide will walk you through setting up possibly the fastest way to serve PHP known to man. If there is a faster way, I’ve not yet found it climbing through zillions of blog posts out there on the subject. In this article, we’ll be installing nginx http server, PHP with the PHP-FPM patches, [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginxphpfpmapcawesome.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx安装简记(含PHP支持、虚拟主机、反向代理负载均衡)</title>
		<link>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e7%ae%80%e8%ae%b0%e5%90%abphp%e6%94%af%e6%8c%81%e3%80%81%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e3%80%81%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e7%ae%80%e8%ae%b0%e5%90%abphp%e6%94%af%e6%8c%81%e3%80%81%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e3%80%81%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 00:56:03 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jacky.scanmon.com/1520.html</guid>
		<description><![CDATA[Nginx，据说高性能和稳定性比Apache还牛，并发连接处理能力强，低系统资源消耗。目前已有250多万web站点在使用（据http://jacky.scanmon.com/1520.html）。
################################################################
系统环境：RHEL5 [ 2.6.18-8.el5xen ]
软件环境：
nginx-0.7.17
lighttpd-1.4.20.tar.gz
pcre-6.6-1.1
pcre-devel-6.6-1.1
php-5.1.6-5.el5
参考下载地址：
http://sysoev.ru/nginx/nginx-0.7.17.tar.gz (最新稳定版为0.6.32)
http://www.lighttpd.net/download/lighttpd-1.4.20.tar.gz
##########################################################################
一、安装支持软件
1、安装lighttpd以提取spawn-fcgi (如果站点不包含php页面，可以不安装spaw-fcgi、PHP)
shell&#62; tar zxvf lighttpd-1.4.20.tar.gz
shell&#62; cd lighttpd-1.4.20/
shell&#62; ./configure &#38;&#38; make
shell&#62; cp -p src/spawn-fcgi /usr/sbin/spawn-fcgi
2、安装pcre和php（以下软件）
可使用RHEL5自带的rpm包安装，过程略。
二、安装nginx
shell&#62; tar zxvf nginx-0.7.17.tar.gz
shell&#62; cd nginx-0.7.17/
shell&#62; ./configure &#8211;prefix=/opt/nginx &#8211;with-http_stub_status_module &#8211;with-http_ssl_module
shell&#62; make &#38;&#38; make install
shell&#62; ln -sf /opt/nginx/sbin/nginx /usr/sbin/
三、nginx运行控制
1、检查配置文件有无语法错误
shell&#62; nginx -t
2、启动（不带任何参数直接运行即可）
shell&#62; nginx
3、重新加载nginx配置
shell&#62; killall -s HUP nginx    #//或者 killall -1 nginx
4、处理完当前请求后退出nginx
shell&#62; killall -s QUIT nginx    #//或者 killall -3 nginx
四、nginx配置用例
1、常规配置
shell&#62; vi [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e7%ae%80%e8%ae%b0%e5%90%abphp%e6%94%af%e6%8c%81%e3%80%81%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e3%80%81%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian 5下的nginx+php+mysql的解决方案</title>
		<link>http://jk.aiwaly.com/wp/debian-5%e4%b8%8b%e7%9a%84nginxphpmysql%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88.html</link>
		<comments>http://jk.aiwaly.com/wp/debian-5%e4%b8%8b%e7%9a%84nginxphpmysql%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88.html#comments</comments>
		<pubDate>Sat, 12 Dec 2009 01:53:09 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jacky.scanmon.com/?p=1399</guid>
		<description><![CDATA[
月影鹏鹏在debian下配置nginx+php+mysql 参考了以下文档
使用php-fpm就必须重新编译php，不能使用系统自带的php。MySQL使用Debian自带的，Nginx是从Debian官方软件库中下载的最新版本。
安装Nginx
Debian 5系统自带的nginx版本比较低，现在Nginx的新稳定版本0.7.61，即将发行的Debian 6里面带的是最新版本的nginx，测试后发现这个nginx在Debian 5下可以运行。我们在 http://ftp.us.debian.org/debian/pool/main/n/nginx/ 下载了Nginx的deb包，放到了 http://rashost.com/download/ 方便客户下载
安装命令：
dpkg -i nginx_0.7.61-3_amd64.deb
/etc/init.d/nginx start
mkdir -p /var/www/nginx-default
echo &#8216;nginx ok&#8217;>/var/www/nginx-default/index.html
echo &#8216;&#8216; > /var/www/nginx-default/test.php
另外运行dpkg -L nginx命令可以看到nginx的文件都安装在哪些目录下面了
Debian下nginx的缺省网页目录是/var/www/nginx-default，这个目录安装的时候没有创建，我们是手工创建的。
通过浏览器访问，应该能看到nginx的缺省网页了，说明nginx正常工作了！
安装MySQL
我们使用Debian自带的MySQL，安装命令：
apt-get install mysql-server-5.0
/etc/init.d/mysql start
运行mysql -uroot -p命令，应该可以正常连接到MySQL
安装php &#038; php-fpm
安装php所需要的库文件：
apt-get update
apt-get install libxml2 libldap-2.4-2 libmhash2 curl libpng3 libjpeg62 libsasl2-2 libmcrypt4
到 http://rashost.com/download/ 下载安装我们自己在Debian下编译的php-fpm:
cd /opt
tar zxf php-fpm-5.2.10-amd64.tar.gz
ln -s /opt/php/sbin/php-fpm /etc/init.d/php-fpm
update-rc.d -f php-fpm defaults
/etc/init.d/php-fpm start
整合
首先在/var/www/nginx-default目录下创建文件test.php，其内容很简单，只要下面一行：

假设所在VPS的地址是debian5.rashost.com，这时通过浏览器访问http://debian5.rashost.com/test.php是得不到正确的显示结果的。
修改nginx的配置文件/etc/nginx/sites-enabled/default，在文件内搜索fastcgi_pass，修改该部分内容为：
      [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/debian-5%e4%b8%8b%e7%9a%84nginxphpmysql%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

