<?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>Allan Brown &#187; apache</title>
	<atom:link href="http://allanbrown.me/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://allanbrown.me</link>
	<description>Proramming, Magento and me</description>
	<lastBuildDate>Tue, 19 Jan 2010 21:29: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>include_path setting can cause problems in Magento</title>
		<link>http://allanbrown.me/magento/include_path-setting-can-cause-problems-in-magento/</link>
		<comments>http://allanbrown.me/magento/include_path-setting-can-cause-problems-in-magento/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 00:24:13 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[coolstack]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[include_path]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://allanbrown.me/?p=21</guid>
		<description><![CDATA[A small problem with the Magento connect application. All other Magento functions were working, but when I tried to access Connect, a load of errors were being displayed!]]></description>
			<content:encoded><![CDATA[<p>I had a small problem today with the Magento connect application.  All other Magento functions were working, but when I tried to access Connect (http://sitedomain.com/index.php/admin/extensions_local/), a load of errors were being displayed saying:</p>
<p><code>Warning: include_once(Maged/Model.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web1/html/downloader/Maged/Controller.php on line 21</code></p>
<p><code>Warning: include_once() [function.include]: Failed opening ‘Maged/Model.php’ for inclusion (include_path=’/usr/share/pear:/usr/share/php’) in /var/www/web1/html/downloader/Maged/Controller.php on line 21</code></p>
<p><code>Warning: include_once(Maged/View.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web1/html/downloader/Maged/Controller.php on line 22</code></p>
<p><code>Warning: include_once() [function.include]: Failed opening ‘Maged/View.php’ for inclusion (include_path=’/usr/share/pear:/usr/share/php’) in /var/www/web1/html/downloader/Maged/Controller.php on line 22</code></p>
<p><code>Warning: include_once(Maged/Exception.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web1/html/downloader/Maged/Controller.php on line 23</code></p>
<p><code>Warning: Cannot modify header information - headers already sent by (output started at /var/www/web1/html/downloader/Maged/Controller.php:21) in /var/www/web1/html/downloader/Maged/Controller.php on line 311</code></p>
<p>After much searching, I discovered that it was due to an incorrectly set &#8216;include_path&#8217; in the apache php.ini file.  We are using some advanced caching on the server to speed things up, and the setting it was changed to was slightly out.</p>
<p>So, we changed it from</p>
<p><code>/opt/coolstack/php5/lib/php/</code></p>
<p>to</p>
<p><code>.:/opt/coolstack/php5/lib/php/</code></p>
<p>However in most cases, it would be:</p>
<p>on Linux: include_path = “.:/php/includes”<br />
on Windows: include_path = “.;c:\php\includes”</p>
<p>A quick Apache restart and all is well again.  Easy fix!</p>
<div class="shr-publisher-21"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/include_path-setting-can-cause-problems-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
