<?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>Jeremy Heslop &#187; drupal</title>
	<atom:link href="http://jheslop.com/category/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://jheslop.com</link>
	<description>Christian, Husband, Father, Geek, Entrepreneur, Photographer</description>
	<lastBuildDate>Wed, 11 Nov 2009 21:14:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Adding PECL Uploadprogress to 1&amp;1 shared hosting for Drupal FileField</title>
		<link>http://jheslop.com/2009/05/27/adding-pecl-uploadprogress-to-11-shared-hosting-for-drupal-filefield/</link>
		<comments>http://jheslop.com/2009/05/27/adding-pecl-uploadprogress-to-11-shared-hosting-for-drupal-filefield/#comments</comments>
		<pubDate>Wed, 27 May 2009 20:25:46 +0000</pubDate>
		<dc:creator>jeremy</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[1&1]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[PECL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shared hosting]]></category>
		<category><![CDATA[uploadprogress]]></category>

		<guid isPermaLink="false">http://jheslop.com/?p=371</guid>
		<description><![CDATA[Drupal 6.x is the platform we use to build great websites. There are modules FileField and ImageField 3.0 that allow the ability to update a progress meter when uploading a file. This requires installing a PECL extension to PHP called uploadprogress. Here is the process I used to get it working on a 1and1.com hosting [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://drupal.org">Drupal</a> 6.x is the platform we use to build great websites. There are modules <a href="http://drupal.org/project/filefield">FileField</a> and <a href="http://drupal.org/project/imagefield">ImageField</a> 3.0 that allow the ability to update a progress meter when uploading a file. This requires installing a <a href="http://jheslop.com/tag/pecl/" class="st_tag internal_tag" rel="tag" title="Posts tagged with PECL">PECL</a> extension to <a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> called <a href="http://pecl.php.net/package/uploadprogress">uploadprogress</a>. Here is the process I used to get it working on a <a href="http://www.1and1.com/?k_id=6447276">1and1.com</a> <a href="http://jheslop.com/tag/hosting/" class="st_tag internal_tag" rel="tag" title="Posts tagged with hosting">hosting</a> package. You will need a <a href="http://jheslop.com/tag/hosting/" class="st_tag internal_tag" rel="tag" title="Posts tagged with hosting">hosting</a> package with ssh support currently the Business and Developer packages do.</p>
<ul>
<li>Download <a href="http://pecl.php.net/package/uploadprogress">PECL uploadaccess</a> to your 1&#038;1 account
</li>
<li>Extract the package<br />
<code>tar xvzf <a href="http://jheslop.com/tag/uploadprogress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with uploadprogress">uploadprogress</a>-1.0.0.tgz</code>
</li>
<li>Go into the directory<br />
<code>cd <a href="http://jheslop.com/tag/uploadprogress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with uploadprogress">uploadprogress</a>-1.0.0</code>
</li>
<li>Run phpize5<br />
<code>phpize5</code>
</li>
<li>Change <a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>-config to <a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>-config5 in configure script<br />
<code>sed -i 's/=<a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>-config/=<a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>-config5/g' configure</code>
</li>
<li>Change include directives in Makefile<br />
<code>sed -i 's#-I/usr/local/include/<a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>#-I/usr/include/php5#g' Makefile</code>
</li>
<li>Run make and make test<br />
<code>make<br />
make test</code>
</li>
<li>Make new extensions folder for new extension to go in<br />
<code>mkdir ~/extensions</code>
</li>
<li>Copy <a href="http://jheslop.com/tag/uploadprogress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with uploadprogress">uploadprogress</a> extension to new folder<br />
<code>cp .libs/<a href="http://jheslop.com/tag/uploadprogress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with uploadprogress">uploadprogress</a>.so ~/extensions/</code>
</li>
<li>Create new <a href="http://jheslop.com/tag/php/" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>.ini under your main folder (or under a single subfolder for just that application) to add new extension_dir then add this code to the file<br />
<code>extension_dir=/kunden/homepages/6/d87663654/htdocs/extensions/<br />
extension=<a href="http://jheslop.com/tag/uploadprogress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with uploadprogress">uploadprogress</a>.so</code>
</li>
</ul>
<p>That should be it. You should now be able to see the &#8220;Upload progress	Enabled (<a href="http://jheslop.com/tag/pecl/" class="st_tag internal_tag" rel="tag" title="Posts tagged with PECL">PECL</a> <a href="http://jheslop.com/tag/uploadprogress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with uploadprogress">uploadprogress</a>)&#8221; on the admin/reports/status page in <a href="http://jheslop.com/tag/drupal/" class="st_tag internal_tag" rel="tag" title="Posts tagged with drupal">Drupal</a>.</p>
<p>Links that helped me with the above info:</p>
<ul>
<li><a href="http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module">http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module</a>
</li>
<li><a href="http://www.outofcontrol.ca/2008/12/16/install-custom-pear-packages-on-1and1/">http://www.outofcontrol.ca/2008/12/16/install-custom-pear-packages-on-1and1/</a>
</li>
<li><a href="http://faq.1and1.com/scripting_languages_supported/php/14.html">http://faq.1and1.com/scripting_languages_supported/php/14.html</a>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jheslop.com/2009/05/27/adding-pecl-uploadprogress-to-11-shared-hosting-for-drupal-filefield/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
