<?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>小冬kobe地带---关注ubuntu,php,go,python,mysql,nosql,ios</title>
	<atom:link href="http://kb24.net.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://kb24.net.cn</link>
	<description>关注ubuntu,php,go,python,mysql,nosql,ios</description>
	<lastBuildDate>Wed, 25 Apr 2012 09:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ubuntu apt-get方式安装apache 和 php</title>
		<link>http://kb24.net.cn/archives/22</link>
		<comments>http://kb24.net.cn/archives/22#comments</comments>
		<pubDate>Wed, 25 Apr 2012 06:40:44 +0000</pubDate>
		<dc:creator>kobeng</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kb24.net.cn/?p=22</guid>
		<description><![CDATA[<p>ubuntu apt-get方式安装apache 和 php &#160; 我这里没有安装php-fpm 原因感觉用cgi跑php不太稳定，所以nginx放在80端口，处理文件请求，正则，把php处理交给后端apache+mod_php方式处理,下面附上ngxin的配置例子 &#160;</p>
 ]]></description>
			<content:encoded><![CDATA[<h1>ubuntu apt-get方式安装apache 和 php</h1>
<p></p><pre class="crayon-plain-tag">#apache
sudo apt-get install apache2

#php
sudo apt-get install php5 php5-xcache  php5-mysql  php5-gd libapache2-mod-php5</pre><p>&nbsp;</p>
<p>我这里没有安装php-fpm 原因感觉用cgi跑php不太稳定，所以nginx放在80端口，处理文件请求，正则，把php处理交给后端apache+mod_php方式处理,下面附上ngxin的配置例子</p><pre class="crayon-plain-tag">server {
    listen   80;

    root /home/kobeng/working/biz72.com/biz72_yaf;
    index index.php;	

    server_name test.com;  

    rewrite ^/(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&amp;amp;page=$3;	

    if (!-e $request_filename) {
        rewrite ^/(.*)  /index.php/$1 last;
    }

    location /index.php {
         proxy_pass http://test.com:8080;
         include proxy_params;
    }

    location ~ .*\.(php|php5)?$ {
        proxy_pass http://test.com:8080;
        include proxy_params;
    }
}</pre><p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kb24.net.cn/archives/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu &#8211; nginx install nginx 安装</title>
		<link>http://kb24.net.cn/archives/5</link>
		<comments>http://kb24.net.cn/archives/5#comments</comments>
		<pubDate>Wed, 18 Apr 2012 03:31:13 +0000</pubDate>
		<dc:creator>kobeng</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kb24.net.cn/?p=5</guid>
		<description><![CDATA[<p>采用apt-get install方式安装nginx &#160; &#160;</p>
 ]]></description>
			<content:encoded><![CDATA[<p>采用apt-get install方式安装nginx</p>
<p>&nbsp;</p><pre class="crayon-plain-tag">sudo echo &quot;deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main&quot; &amp;gt; /etc/apt/sources.list.d/nginx-stable-lucid.list

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C

sudo apt-get update

sudo apt-get install nginx</pre><p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kb24.net.cn/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

