<?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>Institutional Knowledge &#187; PHP</title>
	<atom:link href="http://blogs.csuchico.edu/ik/category/web-development/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.csuchico.edu/ik</link>
	<description>Wherein we write down some stuff that we know.</description>
	<lastBuildDate>Mon, 24 Aug 2009 16:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrading PEAR on RHEL 4</title>
		<link>http://blogs.csuchico.edu/ik/2006/11/27/upgrading-pear-on-rhel-4/</link>
		<comments>http://blogs.csuchico.edu/ik/2006/11/27/upgrading-pear-on-rhel-4/#comments</comments>
		<pubDate>Mon, 27 Nov 2006 22:41:47 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blogs.csuchico.edu/ik/2006/11/27/upgrading-pear-on-rhel-4/</guid>
		<description><![CDATA[Wherein we figure out how to upgrade PEAR on RHEL 4.]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> You need to install <span class="caps">PEAR </span>packages that use package.xml version 2.0 but you&#8217;re running the stock RedHat <span class="caps">RPM </span>of <span class="caps">PHP </span>which is at php-pear-4.3.9-22.i386.prm (aka pear 1.3.1).</p>

<blockquote><p><code>pear upgrade Date</code><br />
<code>downloading Date-1.4.7.tgz ...</code><br />
<code>Starting to download Date-1.4.7.tgz (55,754 bytes)</code><br />
<code>.............done: 55,754 bytes</code><br />
<code>No handlers for package.xml version 2.0</code></p></blockquote>

<p>You can&#8217;t upgrade <span class="caps">PEAR </span>using <code>pear upgrade PEAR</code> because you need at least pear-1.3.3 to get to the latest version.</p>

<blockquote><p><code>requires package `PEAR' &gt;= 1.3.3</code><br />
<code>PEAR: Dependencies failed</code></p></blockquote>

<p><strong>Solution:</strong></p>


<ol>
<li>Download <a href="http://pear.php.net/package/PEAR/download/1.3.3"><span class="caps">PEAR</span> 1.3.3</a></li>
<li>Install with <code>pear upgrade /path/to/pear-1.3.3</code></li>
<li>Upgrade <span class="caps">PEAR </span>with <code>pear upgrade pear</code></li>
<li><em>Optional:</em> Upgrade your existing packages with <code>pear upgrade-all</code></li>
</ol>



<p>You may now install packages that use package.xml version 2.0.  You are also ahead of the game with regard to <span class="caps">RPM</span>s.  The next <span class="caps">RHN </span>update may hose what you have just done.  You should probably consider marking php-pear as a package to ignore.</p>

<p><strong>Update:</strong> As noted in the comments, you will need to upgrade to 1.4.11 before you can upgrade to 1.5.0.</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2006/11/27/upgrading-pear-on-rhel-4/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>RHEL 4 and php-xslt</title>
		<link>http://blogs.csuchico.edu/ik/2006/09/20/rhel-4-and-php-xslt/</link>
		<comments>http://blogs.csuchico.edu/ik/2006/09/20/rhel-4-and-php-xslt/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 15:55:49 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blogs.csuchico.edu/ik/2006/09/20/rhel-4-and-php-xslt/</guid>
		<description><![CDATA[Having problems with php-xslt on RHEL?  This _might_ help you.]]></description>
			<content:encoded><![CDATA[<p>It all started out innocently enough&#8230;a <span class="caps">JIRA </span>issue for me to install the <a href="http://www.php.net/manual/en/ref.xslt.php"><span class="caps">PHP XSLT </span>module</a>.  <em>How hard could it be?</em>  When you ask yourself that question immediately realize that you are in trouble.</p>

<p>You&#8217;re running the stock RedHat <span class="caps">PHP </span>rpm.  RedHat Network doesn&#8217;t provide an rpm for php-xslt.  So you need to build a php-xslt rpm from source.  How do you do that and avoid all the issues we ran into?  Good question.</p>


<ol>
<li>Get and build a <a href="http://dag.wieers.com/packages/js/">js rpm</a> from source.
<ol>
<li><code>rpm -i js-version.srpm</code></li>
<li><code>rpmbuild -bb /usr/src/redhat/SPECS/js.spec</code></li>
<li>install <code>js</code> and <code>js-devel</code> rpms</li>
</ol>
</li>
<li>Get and build a <a href="http://dag.wieers.com/packages/sablotron/">sablotron rpm</a> from source.  You need to build from source to avoid problems later on that I will explain.
<ol>
<li><code>rpm -i sablotron-version.srpm</code></li>
<li>Edit <code>/usr/src/redhat/SPECS/sablotron.spec</code> to remove the <code>--with-readline</code> configure option.  If <span class="caps">PHP </span>tries to load a module that dynamically links to readline, it <a href="http://archive.gingerall.cz/archives/public/sablot2004/msg00318.html">will barf</a>.</li>
<li><code>rpmbuild -bb /usr/src/redhat/SPECS/sablotron.spec</code></li>
<li>install <code>sablotron</code> and <code>sablotron-devel</code> rpms</li>
</ol>
</li>
<li>Get and install php source from <span class="caps">RHN</span>
<ol>
<li><code>up2date --get-source php</code></li>
<li><code>rpm -i /var/spool/up2date/php-version.srpm</code></li>
</ol>
</li>
<li>Patch <code>php.spec</code> to enable php-xslt.  A patch that works against <code>php-4.3.9-3.15</code> is available <a href="http://www.pdinc.us:8080/public/rpms/php-xslt/php-xslt-srcrpm.rhel4.patch">here</a> or <a href="http://blogs.csuchico.edu/ik/wp-content/uploads/2006/09/php-xslt-srcrpmrhel4.txt">here</a>.
<ol>
<li><code>cd /usr/src/redhat</code></li>
<li><code>patch -p0 &lt; /path/to/patch</code> (You should see that 5 hunks succeeded.)</li>
<li>Edit <code>php.spec</code> so that <code>%{!?xslt:%define xslt 0}</code> says <code>%{!?xslt:%define xslt 1}</code></li>
</ol>
</li>
<li>Build and install php
<ol>
<li><code>rpmbuild --bb /usr/src/redhat/SPECS/php.spec</code></li>
<li><code>rpm -U --replacepkgs --force --hash /path/to/php /path/to/php-xslt</code></li>
<li><code>service httpd reload</code></li>
</ol>
</li>
</ol>



<p><em>How hard could it be</em>, indeed&#8230;</p>

<p>Technorati tags: <a href="http://technorati.com/tag/php" rel="tag">php, <a href="http://technorati.com/tag/xslt" rel="tag">xslt</a>, <a href="http://technorati.com/tag/rhel" rel="tag">rhel</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2006/09/20/rhel-4-and-php-xslt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Market Pressure</title>
		<link>http://blogs.csuchico.edu/ik/2006/03/07/market-pressure/</link>
		<comments>http://blogs.csuchico.edu/ik/2006/03/07/market-pressure/#comments</comments>
		<pubDate>Wed, 08 Mar 2006 00:25:32 +0000</pubDate>
		<dc:creator>pberry</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://fozzy.csuchico.edu/wordpress/2006/03/07/market-pressure/</guid>
		<description><![CDATA[Wherein we all rediscover MVC, for the first time.]]></description>
			<content:encoded><![CDATA[<p>Zend is making a <span class="caps">MVC </span><a href="http://framework.zend.com/">framework</a> for <span class="caps">PHP. </span> I would guess that most of the pressure to make this is coming from Rails and from the various python frameworks (Google anyone?).  I hope it&#8217;s not going to be &#8220;Rails for <span class="caps">PHP</span>!&#8221; because I doubt that would work.  This certainly isn&#8217;t the only <span class="caps">MVC </span>framework for <span class="caps">PHP, </span>but I&#8217;m sure it will be the best supported.</p>]]></content:encoded>
			<wfw:commentRss>http://blogs.csuchico.edu/ik/2006/03/07/market-pressure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
