<?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>CatalystX &#187; cpanel</title>
	<atom:link href="http://www.catalystx.com/news/tag/cpanel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.catalystx.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Nov 2010 14:20:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fix for Cpanel&#8217;s WHM PEAR Installer</title>
		<link>http://www.catalystx.com/news/2009/01/20/fix-for-cpanels-whm-pear-installer/</link>
		<comments>http://www.catalystx.com/news/2009/01/20/fix-for-cpanels-whm-pear-installer/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 17:02:12 +0000</pubDate>
		<dc:creator>Mark Steel</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.catalystx.com/?p=90</guid>
		<description><![CDATA[     In Cpanel, performing an EasyApache update to Apache 2.x &#38; PHP 5.x breaks PEAR more often than not.  Cpanel admins and users are left with only the very basic PEAR modules, and are unable to use the Module Installer front-end due to error messages indicating that every package one attempts to install is invalid. [...]]]></description>
			<content:encoded><![CDATA[<p>     In Cpanel, performing an EasyApache update to Apache 2.x &amp; PHP 5.x breaks PEAR more often than not.  Cpanel admins and users are left with only the very basic PEAR modules, and are unable to use the Module Installer front-end due to error messages indicating that every package one attempts to install is invalid.<br />
     Attempting to install Net_URL, for instance, results in the following:<br />
<blockquote>downloading Net_URL-1.0.15.tgz &#8230;<br />
Starting to download Net_URL-1.0.15.tgz (6,303 bytes)<br />
&#8230;..done: 6,303 bytes<br />
Could not get contents of package &#8220;/root/tmp/pear/cache/Net_URL-1.0.15.tgz&#8221;. Invalid tgz file.<br />
Download of &#8220;pear/Net_URL&#8221; succeeded, but it is not a valid package archive<br />
Error: cannot download &#8220;pear/Net_URL&#8221;<br />
Download failed<br />
install failed</p></blockquote>
<p>     The problem is caused by differences in the way PHP 5.2.x parses code, and can be fixed by manually patching the listContent function in PEAR&#8217;s Archive_Tar package.  Open /usr/local/lib/php/Archive/Tar.php and look at the offending Line 220:</p>
<pre class="brush: php">
//            if (!$this-&gt;_extractList(&#039;&#039;, $v_list_detail, &quot;list&quot;, &#039;&#039;, &#039;&#039;)) {
            $x = $this-&gt;_extractList(&#039;&#039;, $v_list_detail, &quot;list&quot;, &#039;&#039;, &#039;&#039;);
            if (!$x) {
</pre>
<p>     We commented it out, and added two more lines.  Now, from both the command-line &amp; WHM interface, everything magically works.</p>
<p>Note: In <em>some</em> instances (depending on your OS, Cpanel version &amp; build options &#8212; multiple servers show no uniformity), you&#8217;ll have to make the same change to /usr/lib/php/Archive/Tar.php.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.catalystx.com/news/2009/01/20/fix-for-cpanels-whm-pear-installer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

