<?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>Cakephp.nu blog &#187; php</title>
	<atom:link href="http://www.cakephp.nu/t/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cakephp.nu</link>
	<description>Cake and cookies by Jippi</description>
	<lastBuildDate>Wed, 11 Aug 2010 09:15:50 +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>open_basedir will slow you down &#8211; security vs. speed</title>
		<link>http://www.cakephp.nu/open_basedir-will-slow-you-down-security-vs-speed</link>
		<comments>http://www.cakephp.nu/open_basedir-will-slow-you-down-security-vs-speed#comments</comments>
		<pubDate>Fri, 21 Mar 2008 01:48:58 +0000</pubDate>
		<dc:creator>Christian Winther</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.cakephp.nu/open_basedir-will-slow-you-down-security-vs-speed</guid>
		<description><![CDATA[
Just a quickie. I’m working on some security enhancements for my new website project, and in that progress, I have moved away from Apache2.2.3 and now using Lighttpd instead. Lighttpd does not use the same method of invoking php as apache does (mod_php vs. fast-cgi php). In my eager to make the application as secure [...]
]]></description>
			<content:encoded><![CDATA[<p>Just a quickie.</p>
<p>I’m working on some security enhancements for my new website project, and in that progress, I have moved away from Apache2.2.3 and now using Lighttpd instead. Lighttpd does not use the same method of invoking php as apache does (mod_php vs. fast-cgi php).</p>
<p>In my eager to make the application as secure and locked down as possible, I went berserk in the php-cgi.ini file and turned on just about any security feature I could find (not safemode!), including the innocent looking switch called “open_basedir”.</p>
<p>That was rather late in the night, so when I resumed my work the following day, I have long forgotten about all the fancy security settings I had enabled in php. </p>
<p>A few hours ago I noticed that the complete render time for the front page suddenly was ~2seconds(!) &#8211; and comparing with apache’s load time for the same page (0.9s) I was quite disappointed at lighttpd and fastcgi, but refused to give up my new found love without a fair trial.</p>
<p>I attacked google with full force without finding any useful resources that might be able to explain my issue.. I was quite sure it was APC that did not function well in a fastcgi environment &#8211; and therefore my google madness was focused around the keywords “apc + fastcgi”  </p>
<p>While chatting to PatrickDK in the #lighttpd channel @ freenode, it suddenly hit me &#8211; let’s try to disable everything I have “fixed” last night &#8211; starting with XDebug, some 3rd party php modules (syck, memcache, simplexml, fileinfo) &#8211; and then, open_basedir flag.</p>
<p><b>And with just one line commented out in my php-cgi.ini file, the render time went from 2.4 to 0.5 seconds !!(!!) </b></p>
<p>So just a little note to you guys out there, beware of the open_basedir setting in a setup where you include many files, it is a rather costly feature to use. And when running fastcgi php in chroot()ed setup, its not really required anyway  </p>
<p><b>Its another +1 for lighty and fastcgi</b></p>
<p>And yes, I’m aware that open_basedir is slow because it has to validate EVERY file or path you work with inside php to check if its within the scope defined.</p>

	Tags: <a href="http://www.cakephp.nu/t/english" title="english" rel="tag">english</a>, <a href="http://www.cakephp.nu/t/lighttpd" title="lighttpd" rel="tag">lighttpd</a>, <a href="http://www.cakephp.nu/t/php" title="php" rel="tag">php</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.cakephp.nu/open_basedir-will-slow-you-down-security-vs-speed/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>New books from amazon.co.uk</title>
		<link>http://www.cakephp.nu/books-amazoncouk</link>
		<comments>http://www.cakephp.nu/books-amazoncouk#comments</comments>
		<pubDate>Wed, 19 Mar 2008 21:20:19 +0000</pubDate>
		<dc:creator>Christian Winther</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.cakephp.nu/books-amazoncouk</guid>
		<description><![CDATA[
Just got an email from Amazon.co.uk &#8211; the have shipped my new batch of dev-books This time around it was more an impulze to buy some books, so I hope I will end up as satisfied as last time I purchased some books from them. Building Scalable Web Sites: Building, scaling, and optimizing the next [...]
]]></description>
			<content:encoded><![CDATA[<p>Just got an email from Amazon.co.uk &#8211; the have shipped my new batch of dev-books <img src='http://www.cakephp.nu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This time around it was more an impulze to buy some books, so I hope I will end up as satisfied as last time I purchased some books from them.</p>
<ul>
<li><a target="_blank" href="http://www.amazon.co.uk/exec/obidos/ASIN/0596102356">Building Scalable Web Sites: Building, scaling, and optimizing the next generation of web applications</a></li>
<li><a target="_blank" href="http://www.amazon.co.uk/exec/obidos/ASIN/0596529260">RESTful Web Services</a></li>
<li><a target="_blank" href="http://www.amazon.co.uk/exec/obidos/ASIN/0596529309">High Performance Web Sites: Essential Knowledge for Front-End Engineers: Essential Knowledge for Front-end Engineers</a></li>
<li><a target="_blank" href="http://www.amazon.co.uk/exec/obidos/ASIN/0672327562">PostgreSQL (Developers Library)</a></li>
<li><a target="_blank" href="http://www.amazon.co.uk/exec/obidos/ASIN/097584198X">The CSS Anthology: 101 Essential Tips, Tricks and Hacks</a></li>
</ul>
<p>I will probably give a short review of the books once I have read them <img src='http://www.cakephp.nu/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

	Tags: <a href="http://www.cakephp.nu/t/amazon" title="amazon" rel="tag">amazon</a>, <a href="http://www.cakephp.nu/t/books" title="books" rel="tag">books</a>, <a href="http://www.cakephp.nu/t/css" title="css" rel="tag">css</a>, <a href="http://www.cakephp.nu/t/english" title="english" rel="tag">english</a>, <a href="http://www.cakephp.nu/t/php" title="php" rel="tag">php</a>, <a href="http://www.cakephp.nu/t/postgresql" title="postgresql" rel="tag">postgresql</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.cakephp.nu/books-amazoncouk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc

Served from: www.cakephp.nu @ 2012-02-05 15:43:45 -->
