<?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>JonnyReeves.co.uk &#187; deployment</title>
	<atom:link href="http://www.jonnyreeves.co.uk/tag/deployment/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonnyreeves.co.uk</link>
	<description>Actionscript, Flash, PHP and stuff</description>
	<lastBuildDate>Mon, 19 Jul 2010 15:36:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CakePHP &#8211; Open_Basedir Restriction in Effect</title>
		<link>http://www.jonnyreeves.co.uk/2008/06/cakephp-open_basedir-restriction-in-effect/</link>
		<comments>http://www.jonnyreeves.co.uk/2008/06/cakephp-open_basedir-restriction-in-effect/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 21:37:17 +0000</pubDate>
		<dc:creator>Jonny</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[open_basedir]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=40</guid>
		<description><![CDATA[Just deployed a CakePHP on a domain running PLESK and dismayed by the fact that your screen is over-flowing with warning about open_basedir restriction in effect?  Fear not, the solution is straight forward (if a little frustrating to track down!)
The problem is caused by this line (line 69, in CakePHP 1.2.0.6311) in /app/webroot/index.php:

ini_set&#40;&#8216;include_path&#8217;, CAKE_CORE_INCLUDE_PATH [...]]]></description>
			<content:encoded><![CDATA[<p>Just deployed a CakePHP on a domain running <a href="http://en.wikipedia.org/wiki/Plesk">PLESK</a> and dismayed by the fact that your screen is over-flowing with warning about open_basedir restriction in effect?  Fear not, the solution is straight forward (if a little frustrating to track down!)</p>
<p>The problem is caused by this line (line 69, in CakePHP 1.2.0.6311) in /app/webroot/index.php:</p>
<div class="dean_ch" style="white-space: nowrap; overflow: scroll;">
<a href="http://www.php.net/ini_set"><span class="kw3">ini_set</span></a><span class="br0">&#40;</span><span class="st0">&#8216;include_path&#8217;</span>, CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . <a href="http://www.php.net/ini_get"><span class="kw3">ini_get</span></a><span class="br0">&#40;</span><span class="st0">&#8216;include_path&#8217;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp;</div>
<p>Yep, the simple ini_set command &#8211; the clues should start coming in thick and fast that ini_set is causing the problem due to the fact taht open_basedir complains about paths with :&#8217;s in their structure.  (:&#8217;s being the delimiter for automatically included paths).  To fix the problem you can either remove the if logic that calls &#8220;function_exists(&#8217;ini_set&#8217;)&#8221;, or, if you prefer to fix things the corret way, modify the line to remove the final stub:</p>
<div class="dean_ch" style="white-space: nowrap; overflow: scroll;">
<a href="http://www.php.net/ini_set"><span class="kw3">ini_set</span></a><span class="br0">&#40;</span><span class="st0">&#8216;include_path&#8217;</span>, CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS<span class="br0">&#41;</span>;<br />
&nbsp;</div>
<p>Good luck, hope that saves someone a headache! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonnyreeves.co.uk/2008/06/cakephp-open_basedir-restriction-in-effect/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
