<?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>Jason Ashdown &#187; Debian</title>
	<atom:link href="http://www.jasonashdown.co.uk/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonashdown.co.uk</link>
	<description>There&#039;s no place like 127.0.0.1</description>
	<lastBuildDate>Thu, 22 Dec 2011 11:40:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Solved: Debian Squeeze + Nginx + PHP5-FPM</title>
		<link>http://www.jasonashdown.co.uk/2011/09/solved-debian-squeeze-nginx-php5-fpm/</link>
		<comments>http://www.jasonashdown.co.uk/2011/09/solved-debian-squeeze-nginx-php5-fpm/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 00:24:47 +0000</pubDate>
		<dc:creator>Jason Ashdown</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Waffle News]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Squeeze]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.jasonashdown.co.uk/?p=228</guid>
		<description><![CDATA[After tiresomely testing the config &#8211; I eventually got it to work. Once you know how it&#8217;s really easy but I kept getting a &#8220;502 Bad Gateway&#8221; error that confused me. Benefits of sockets over TCP: Faster connection over sockets &#8230; <a href="http://www.jasonashdown.co.uk/2011/09/solved-debian-squeeze-nginx-php5-fpm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After tiresomely testing the config &#8211; I eventually got it to work.</p>
<p>Once you know how it&#8217;s really easy but I kept getting a &#8220;502 Bad Gateway&#8221; error that confused me.</p>
<p>Benefits of sockets over TCP:</p>
<ul>
<li>Faster connection over sockets than TCP; 20% boost</li>
<li>More secure as sockets are harder to break their permissions</li>
</ul>
<p>Anyway, here&#8217;s what you need to do. All config locations are the defaults installed by Debian Squeeze.</p>
<p>Add Dotdeb&#8217;s sources in your Debian <em>/etc/apt/source.list</em></p>
<pre class="brush: plain; title: ; notranslate">
## PHP5-FPM
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
</pre>
<p>Then install php5-fpm:</p>
<pre class="brush: plain; title: ; notranslate">
apt-get update
apt-get install php5-fpm
</pre>
<p>Change the settings in <em>/etc/php5/fpm/php-fpm.conf</em></p>
<pre class="brush: plain; title: ; notranslate">
pid = /var/run/php5-fpm.pid
error_log = /var/log/php5-fpm.log
daemonize = yes
include=/etc/php5/fpm/pool.d/*.conf
</pre>
<p>Recommended settings in <em>/etc/php5/fpm/pool.d/www.conf</em></p>
<pre class="brush: plain; title: ; notranslate">
;listen = 127.0.0.1:9000
listen = /var/run/php5-fpm.sock

listen.owner = www-data
listen.group = www-data
listen.mode = 0666

user = www-data
group = www-data

php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
php_admin_value[error_reporting] = 0
php_admin_value[memory_limit] = 128M
php_admin_value[date.timezone] = Europe/London
</pre>
<p>Start/Restart Nginx and PHP5-FPM and voila</p>
<pre class="brush: plain; title: ; notranslate">
/etc/init.d/nginx restart
/etc/init.d/php5-fpm start
</pre>
<p>Everything should be running smoothly. Enjoy your new faster server!</p>
<p>Thanks to the people below who wrote about it first.</p>
<ul>
<li><a href="http://www.kutukupret.com/2010/10/26/how-to-make-php-fpm-listen-on-both-tcp-and-unix-socket/" target="_blank">http://www.kutukupret.com/2010/10/26/how-to-make-php-fpm-listen-on-both-tcp-and-unix-socket/</a></li>
<li><a href="http://www.kutukupret.com/2010/10/26/how-to-make-php-fpm-listen-on-both-tcp-and-unix-socket/" target="_blank">http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian</a></li>
<li><a href="http://norbyit.se/blog/2011/01/configuring-php-fpm/" target="_blank">http://norbyit.se/blog/2011/01/configuring-php-fpm/</a></li>
<li><a href="http://andreas-lehr.com/blog/archives/491-nginx-wordpress-php-fpm-on-debian-squeeze.html" target="_blank">http://andreas-lehr.com/blog/archives/491-nginx-wordpress-php-fpm-on-debian-squeeze.html</a></li>
<li><a href="http://www.webhostingtalk.com/showthread.php?t=1025286" target="_blank">http://www.webhostingtalk.com/showthread.php?t=1025286</a></li>
<li><a href="http://www.kutukupret.com/2010/10/26/how-to-make-php-fpm-listen-on-both-tcp-and-unix-socket/" target="_blank">http://www.kutukupret.com/2010/10/26/how-to-make-php-fpm-listen-on-both-tcp-and-unix-socket/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonashdown.co.uk/2011/09/solved-debian-squeeze-nginx-php5-fpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the latest Nginx on Debian Squeeze</title>
		<link>http://www.jasonashdown.co.uk/2011/09/installing-the-latest-nginx-on-debian-squeeze/</link>
		<comments>http://www.jasonashdown.co.uk/2011/09/installing-the-latest-nginx-on-debian-squeeze/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 21:32:23 +0000</pubDate>
		<dc:creator>Jason Ashdown</dc:creator>
				<category><![CDATA[Waffle News]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.jasonashdown.co.uk/?p=224</guid>
		<description><![CDATA[I just updated my Nginx on Debian 6 (Squeeze) from 0.7.x.x to 1.0.6 by altering my source list. Edit your /etc/apt/sources.list to include the following lines: Then run `apt-get update` and `apt-get upgrade`. Follow the on-screen instructions and BOOM! You&#8217;re &#8230; <a href="http://www.jasonashdown.co.uk/2011/09/installing-the-latest-nginx-on-debian-squeeze/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just updated my Nginx on Debian 6 (Squeeze) from 0.7.x.x to 1.0.6 by altering my source list.</p>
<p>Edit your /etc/apt/sources.list to include the following lines:</p>
<pre class="brush: plain; title: ; notranslate">
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
</pre>
<p>Then run `apt-get update` and `apt-get upgrade`.</p>
<p>Follow the on-screen instructions and BOOM! You&#8217;re running the latest version of Nginx! My preference is to use Nginx these days instead of Apache2 purely because of the extra performance you gain out of it. Much higher requests per second (rpp).</p>
<p>I highly recommend trying it if you haven&#8217;t already.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonashdown.co.uk/2011/09/installing-the-latest-nginx-on-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo Forge: Getting the most out of your Webserver</title>
		<link>http://www.jasonashdown.co.uk/2008/11/howto-forge-getting-the-most-out-of-your-webserver/</link>
		<comments>http://www.jasonashdown.co.uk/2008/11/howto-forge-getting-the-most-out-of-your-webserver/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 12:05:37 +0000</pubDate>
		<dc:creator>Jason Ashdown</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WebServer]]></category>

		<guid isPermaLink="false">http://www.jasonashdown.co.uk/?p=43</guid>
		<description><![CDATA[I&#8217;ve always enjoyed tweaking my Web Servers, trying to get the most out of them, but sometimes it can be very tedious and frustrating&#8230; long, late hours of troubleshooting problems. Enter HowTo Forge! HowTo Forge is website that provides pre-compiled &#8230; <a href="http://www.jasonashdown.co.uk/2008/11/howto-forge-getting-the-most-out-of-your-webserver/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jasonashdown.co.uk/2008/11/howto-forge-getting-the-most-out-of-your-webserver/"><img class="alignleft size-full wp-image-44" style="margin: 10px;" title="Linux Tutorials for the Novice &amp; Experts" src="http://www.jasonashdown.co.uk/wp-content/uploads/2008/11/howto_forge.gif" alt="" width="215" height="64" /></a>I&#8217;ve always enjoyed tweaking my Web Servers, trying to get the most out of them, but sometimes it can be very tedious and frustrating&#8230; long, late hours of troubleshooting problems. Enter <em>HowTo Forge</em>!</p>
<p><a href="http://www.howtoforge.com/"><strong><em>HowTo Forge</em></strong></a> is website that provides pre-compiled virtual images of (pretty much) every UNIX platform already configured for you.</p>
<p><span id="more-43"></span></p>
<p>It also has tutorials on how to do the tweaks yourself with download links to the complete image. It&#8217;s really cool if you&#8217;re not a Unix guru as they are designed to be secure and efficient with minimal setup knowledge.</p>
<p>Personally I like using Debian for my web servers, but they do have <a href="http://www.howtoforge.com/perfect-server-ubuntu-8.10">The Perfect Server Setup for Ubuntu</a> with the latest build of Ubuntu 8.10.</p>
<p>They also have <a href="http://www.howtoforge.com/the-perfect-desktop-ubuntu-8.10">The Perfect Desktop Setup for Ubuntu</a> (no image) with step by step instructions and screenshots.</p>
<p>I love reading the useful tips within the tutorials, absorbing the information on how to configure the best web server setups while expanding my knowledge of Unix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonashdown.co.uk/2008/11/howto-forge-getting-the-most-out-of-your-webserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

