<?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>Tequila Fish &#187; CentOS</title>
	<atom:link href="http://www.tequilafish.com/category/tech/linux/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:30:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>eAccelerator and open_basedir: open_basedir restriction in effect. File() is not within the allowed path(s):</title>
		<link>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/</link>
		<comments>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 22:48:46 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=417</guid>
		<description><![CDATA[After installing eAccelerator on a CentOS 5.5 server running PHP 5.2.10, a bunch of websites began failing with open_basedir errors like so: [Fri Jul 16 17:53:50 2010] [error] [client XX.XX.XXX.XXX] PHP Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/username/) in /home/username/public_html/wp-settings.php on line 19, referer: http://www.server.com/ After doing [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2010%2F07%2F22%2Feaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2010%2F07%2F22%2Feaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>After installing <a href="http://eaccelerator.net/">eAccelerator</a> on a CentOS 5.5 server running PHP 5.2.10, a bunch of websites began failing with open_basedir errors like so:</p>
<p><code>[Fri Jul 16 17:53:50 2010] [error] [client XX.XX.XXX.XXX] PHP Warning:  require() [<a href='function.require'>function.require</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/username/) in /home/username/public_html/wp-settings.php on line 19, referer: http://www.server.com/</code></p>
<p>After doing some research it turns out that a default option that is compiled into eAccelerator is incompatible with open_basedir.  The fix is easy enough, simply re-compile with the <strong>--without-eaccelerator-use-inode</strong> option like so:</p>
<p><code>make clean<br />
phpize<br />
./configure --without-eaccelerator-use-inode<br />
make<br />
make install</code></p>
<p>After re-compiling and installing, make sure you clear out the existing eAccelerator files before restarting Apache:</p>
<p><code>rm -rf /var/cache/eaccelerator/*<br />
apachectl restart</code></p>
<p>eAccelerator states that the next version will have this compile option set by default.</p>
<p>Reference:</p>
<ul>
<li><a href="http://eaccelerator.net/ticket/414">http://eaccelerator.net/ticket/414</a></li>
<li><a href="http://eaccelerator.net/ticket/104">http://eaccelerator.net/ticket/104</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

