<?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>Adam DiCarlo&#039;s Blog &#187; pear</title>
	<atom:link href="http://adamdicarlo.com/tag/pear/feed/" rel="self" type="application/rss+xml" />
	<link>http://adamdicarlo.com</link>
	<description>Programming, Linux, music, woodworking....</description>
	<lastBuildDate>Thu, 12 Nov 2009 21:26:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing the PEAR/PECL uploadprogress extension for Drupal 7</title>
		<link>http://adamdicarlo.com/2009/09/16/installing-the-pearpecl-uploadprogress-extension-for-drupal-7/</link>
		<comments>http://adamdicarlo.com/2009/09/16/installing-the-pearpecl-uploadprogress-extension-for-drupal-7/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 06:43:06 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[pear]]></category>

		<guid isPermaLink="false">http://adamdicarlo.com/?p=152</guid>
		<description><![CDATA[Trying out the latest development snapshot of Drupal 7, I noticed it supports the uploadprogress PEAR/PECL extension, which apparently lets you see the actual progress (with some kind of Ajaxy widget) while uploading files. Sounds cool to me.
First, I installed PEAR (on my Ubuntu testing server):
$ sudo aptitude install php-pear
and then tried to use PEAR [...]]]></description>
			<content:encoded><![CDATA[<p>Trying out the latest development snapshot of Drupal 7, I noticed it supports the <a href="http://pecl.php.net/package/uploadprogress">uploadprogress</a> PEAR/PECL extension, which apparently lets you see the actual progress (with some kind of Ajaxy widget) while uploading files. Sounds cool to me.</p>
<p>First, I installed <a href="http://pear.php.net/">PEAR</a> (on my Ubuntu testing server):</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo aptitude install php-pear</div></div>
<p>and then tried to use PEAR to install uploadprogress:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo pear install pecl/uploadprogress<br />
downloading uploadprogress-1.0.1.tgz ...<br />
Starting to download uploadprogress-1.0.1.tgz (8,536 bytes)<br />
.....done: 8,536 bytes<br />
4 source files, building<br />
running: phpize<br />
sh: phpize: not found<br />
ERROR: `phpize' failed</div></div>
<p>PHPize? What&#8217;s that? There&#8217;s no phpize package; <strong>aptitude search phpize</strong> gives nothing.</p>
<p>A bit of digging and I found that PHPize is part of the <strong>php5-dev</strong> package! After installing that, pecl can install a module just fine:</p>
<h3>Solution</h3>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo apt-get install php5-dev<br />
$ sudo pear install pecl/uploadprogress</div></div>
<p>After lots of output, PEAR left a final clue:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">configuration option &quot;php_ini&quot; is not set to php.ini location<br />
You should add &quot;extension=uploadprogress.so&quot; to php.ini</div></div>
<p>So I created /etc/php/conf.d/uploadprogress.ini, containing just this line:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">extension=uploadprogress.so</div></div>
<p>I restarted Apache and now Drupal 7 reports &#8220;UPLOAD PROGRESS: Enabled&#8221;. Now to try it out&#8230;.!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamdicarlo.com/2009/09/16/installing-the-pearpecl-uploadprogress-extension-for-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
