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 extension to called uploadprogress. Here is the process I used to get it working on a 1and1.com package. You will need a package with ssh support currently the Business and Developer packages do.

  • Download PECL uploadaccess to your 1&1 account
  • Extract the package
    tar xvzf -1.0.0.tgz
  • Go into the directory
    cd -1.0.0
  • Run phpize5
    phpize5
  • Change -config to -config5 in configure script
    sed -i 's/=-config/=-config5/g' configure
  • Change include directives in Makefile
    sed -i 's#-I/usr/local/include/#-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 extension to new folder
    cp .libs/.so ~/extensions/
  • Create new .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=.so

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

Links that helped me with the above info:

17 Responses to “Adding PECL Uploadprogress to 1&1 shared hosting for Drupal FileField”


  1. 1 Neil Bennett from Golf Balls Jun 8th, 2009 at 9:12 am

    This is a great post. Thanks for the useful pointers.

  2. 2 mark from saeco incanto sirius Jun 8th, 2009 at 2:20 pm

    I have heard about using Drupal 6.x to build a website so this is actually great to have the resources because I want to work on building more affiliate sites under my umbrella.

  3. 3 Daniel from bad credit loans Jun 10th, 2009 at 12:57 am

    Drupal is a step above WordPress, it’s a beast. If you need CMS with all the bells and whistles this is it.

    Daniels last blog post..Auto Financing for Bad Credit

  4. 4 Simon Brown Jun 18th, 2009 at 10:23 am

    I’m not a Christian but dude – God bless you! :)

    I have been tearing my hair out with 1&1 as I didn’t know how to get PECL extensions to work in their shared hosting with SSH package. We’ve hosted with 1&1 for nearly 3 years, I recommended them to my boss because they had such a good write up, I have regretted it ever since because PECL and PEAR couldn’t work with it. My boss refused to let us move because it’s such a hassle and everything mostly works.

    And now your tip here enables me to install all the PECL extensions I need – yay for you – and obviously Jesus as well if you’re that way inclined :)

    Hang on – I’ll let you know if it all works the way it should…

  5. 5 Simon Brown Jun 18th, 2009 at 10:44 am

    mmm… didn’t work for geoip. ERROR: Cannot run tests without CLI sapi.

    and no .so file… so never mind I build without geoip…

  6. 6 auto loan calculator Jun 30th, 2009 at 3:29 am

    hi, building link to our site is very necessary to get traffic and to become top link of SERP. Keyword luv is very helpful in link building.
    .-= auto loan calculator´s last blog ..Rebate Protection From a Car Loan Calculator =-.

  7. 7 Juergen Jul 11th, 2009 at 5:53 pm

    Up to now I do not have any experience with Drupal – nevertheless I here very ofteh a lot of good things about it. Maybe I should give Drupat a try.

  8. 8 keith Aug 20th, 2009 at 11:50 am

    Jeremy,

    thanks for publishing this. I have created a few Drupal empoered sites most of which have been hosted with 1and1 and those hosting options already had this installed.

    I have however now opted for a 1and1 managed linux server and this extension no longer exists so I can follow your instructions and install it myself.

    My starting point though is where exactly do I download the tar to, which folder ? I’m noew with linux, relying on my unix memory from 20 years ago to fumble my way around lol.

    Anyway, any pointers greatly apperciated.

    Thanks,
    Keith

  9. 9 jeremy Aug 21st, 2009 at 1:58 pm

    Keith,

    It doesn’t matter where you upload the tar file. Just as long as the uploadprogress.so file is where it needs to be for the php.ini file to pick it up.

    Jeremy

  10. 10 Epic_Tank Oct 22nd, 2009 at 6:48 pm

    Nice :)

    This helped quite a bit; I keep forgetting that 1and1 defaults to php4 >.>

    Anyway, I had to do things slightly differently, which isn’t had for someone familiar with makefiles to figure out, but perhaps this will help someone who isn’t:

    *Don’t bother changing php-config to php-config5, just run ./configure like normal
    *Your include directives line should look like this:
    INCLUDES = -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend
    , instead of ‘-I/usr/local/include/php#-I/usr/include/php5′, as the original post says
    *make test didn’t work for me
    *Your .so and .la files end up in ./modules, so you’ll need to execute this:
    cp uploadprogress.so ~/extensions/
    , instead of ‘cp .libs/uploadprogress.so ~/extensions/’

    As I said, these are things I had to do differently….not saying the original post is wrong, things may have just changed, or the account I’m working on may just be weird XD

  11. 11 Bill from Iron Man Shirt Dec 9th, 2009 at 4:31 pm

    thanks, i really like being able to see progress, i get frustrated when i can’t tell if something has caught a snag.

  12. 12 SEO Services Dec 30th, 2009 at 9:09 am

    Good post….thanks for sharing.. very useful for me i will bookmark this for my future needed. thanks for a great source.

  13. 13 SEO Services Dec 31st, 2009 at 3:59 am

    Thanks for the tips.

  14. 14 PPC Management Services Jan 5th, 2010 at 4:43 am

    Drupal is a excellent platform to build great websites…Thanks for the tips

  1. 1 Best Rated Web Hosting - Best Web Hosting 2009 | Adding PECL Uploadprogress to 1&1 shared hosting for Drupal … Pingback on May 27th, 2009 at 6:28 pm
  2. 2 Adding PECL Uploadprogress to 1&1 shared hosting for Drupal … | webhost-reviewer.com Pingback on May 27th, 2009 at 7:54 pm
  3. 3 Adding PECL Uploadprogress to 1&1 shared hosting for Drupal … | hostingrefugee.com Pingback on May 27th, 2009 at 9:04 pm

Leave a Reply

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.





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