Adding PECL Uploadprogress to 1&1 shared hosting for Drupal FileField

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 package. You will need a hosting package with ssh support currently the Business and Developer packages do.

  • Download PECL uploadaccess to your 1&1 account
  • Extract the package
    tar xvzf uploadprogress-1.0.0.tgz
  • Go into the directory
    cd uploadprogress-1.0.0
  • Run phpize5
    phpize5
  • Change php-config to php-config5 in configure script
    sed -i 's/=php-config/=php-config5/g' configure
  • Change include directives in Makefile
    sed -i 's#-I/usr/local/include/php#-I/usr/include/php5#g' Makefile
  • Run make and make test
    make
    make test
  • Make new extensions folder for new extension to go in
    mkdir ~/extensions
  • Copy uploadprogress extension to new folder
    cp .libs/uploadprogress.so ~/extensions/
  • Create new php.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
    extension_dir=/kunden/homepages/6/d87663654/htdocs/extensions/
    extension=uploadprogress.so

That should be it. You should now be able to see the “Upload progress Enabled (PECL uploadprogress)” on the admin/reports/status page in Drupal.

Links that helped with the above :

Related posts:
Tags: , , , , , ,

The Shack – Book Review

300k Miles!

Why do I use linux? Top 5 Reasons.

P90X: Take 3

Aliza on the Swings

All the good ideas are taken. Lost item locator.

Related posts:
Tags: , ,

My Wife Thinks I’m Stealing My Blog Posts!!

When is Daylight Savings? and 10 Things To Do With that Extra Hour

Leveraging Online Social Networks to Increase Business




Enter your email address:

Delivered by FeedBurner


What am I doing?
  • RT @ijustine: I think if someone @'s you, you should be allowed to send them at least 1 direct message If they aren't following you. 25 mins ago
  • More updates...

Powered by Twitter Tools.

TwitterCounter for @jeremyheslop Page Rank Check
Skribit: Social Suggestions

mozy


Use OpenDNS

www.flickr.com
This is a Flickr badge showing public photos from jeremy.heslop. Make your own badge here.


Facebook me!











SEO Powered by Platinum SEO from Techblissonline