<?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>Computer Solutions Blog &#187; wordpress</title>
	<atom:link href="http://www.computersolutions.cn/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computersolutions.cn/blog</link>
	<description>Whats happening at Computer Solutions</description>
	<lastBuildDate>Thu, 02 Sep 2010 08:07:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>NGinx and WordPress Crib Notes</title>
		<link>http://www.computersolutions.cn/blog/2009/11/nginx-and-wordpress-crib-notes/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=nginx-and-wordpress-crib-notes</link>
		<comments>http://www.computersolutions.cn/blog/2009/11/nginx-and-wordpress-crib-notes/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 11:08:04 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[Technical Mumbo Jumbo]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[crib notes]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=260</guid>
		<description><![CDATA[Unfortunately, its back to the techie stuff for a few posts! Here are my crib notes on installing NGinx on one of our client servers. Add spawn-fcgi (cos its split from litettpd now) http://redmine.lighttpd.net/projects/spawn-fcgi/wiki/SVN cd /downloads svn co svn://svn.lighttpd.net/spawn-fcgi/trunk spawn-fcgi No svn..grrr apt-get install subversion subversion-tools svn co svn://svn.lighttpd.net/spawn-fcgi/trunk spawn-fcgi cd spawn-fcgi ./autogen.sh ./configure make [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately, its back to the techie stuff for a few posts!</p>
<p>Here are my crib notes on installing NGinx on one of our client servers.</p>
<p>Add spawn-fcgi (cos its split from litettpd now)<a href="http://redmine.lighttpd.net/projects/spawn-fcgi/wiki/SVN"> http://redmine.lighttpd.net/projects/spawn-fcgi/wiki/SVN</a></p>
<p><code><br />
cd /downloads<br />
svn co svn://svn.lighttpd.net/spawn-fcgi/trunk spawn-fcgi<br />
</code></p>
<p>No svn..grrr</p>
<p><code><br />
apt-get install subversion subversion-tools<br />
svn co svn://svn.lighttpd.net/spawn-fcgi/trunk spawn-fcgi<br />
cd spawn-fcgi<br />
./autogen.sh<br />
./configure<br />
make<br />
make install<br />
</code></p>
<p>spawn-fcgi should be happily installed in /usr/local/bin/spawn-fcgi now</p>
<p>make sure we have php5-cgi<br />
<code>apt-get install php5-cgi</code></p>
<p>Check spawn-fcgi runs -<br />
In my case not, had to rebuild eAccelerator @#$@#$!, did that, and all ok</p>
<p><code><br />
/bin/spawn-fcgi -f /usr/bin/php5-cgi -a 127.0.0.1 -p 53217 -P /var/run/fastcgi-php.pid<br />
</code></p>
<p>Note port 53217 can be any unused port from some high unused number though to 65535<br />
We&#8217;re going to be installing NGinx from debian packages, but probably better from source long term&#8230;</p>
<p><code>apt-get install nginx</p>
<p>pico /etc/nginx/nginx.conf<br />
</code></p>
<p>change some default settings</p>
<p><code><br />
user www-data;<br />
worker_processes  1;</p>
<p>error_log  /var/log/nginx/error.log;<br />
pid        /var/run/nginx.pid;</p>
<p>events {<br />
    worker_connections  1024;<br />
}</p>
<p>http {<br />
    include       /etc/nginx/mime.types;<br />
    default_type  application/octet-stream;</p>
<p>    access_log  /var/log/nginx/access.log;</p>
<p>    sendfile        on;<br />
    #tcp_nopush     on;</p>
<p>    #keepalive_timeout  0;<br />
    keepalive_timeout  5;<br />
    tcp_nodelay        on;</p>
<p>    client_max_body_size 8m;</p>
<p>    gzip  on;<br />
    gzip_comp_level 9;<br />
    gzip_types      text/plain text/html text/css text/xml application/xml application/xml+rss text/javascript application/x-javascript;</p>
<p>    include /etc/nginx/conf.d/*.conf;<br />
    include /etc/nginx/sites-enabled/*;<br />
}</p>
<p></code></p>
<p>Now we add our virtual hosts in  /etc/nginx/sites-available</p>
<p><code><br />
pico /etc/nginx/sites-available</p>
<p></code></p>
<p>Lastly, we add our fast-cgi settings, using our port from above 53217 </p>
<p><code><br />
fastcgi stuff here<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2009/11/nginx-and-wordpress-crib-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
