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 me with the above info:
This is a great post. Thanks for the useful pointers.
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.
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
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…
mmm… didn’t work for geoip. ERROR: Cannot run tests without CLI sapi.
and no .so file… so never mind I build without geoip…
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 =-.
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.
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
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
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
thanks, i really like being able to see progress, i get frustrated when i can’t tell if something has caught a snag.
Good post….thanks for sharing.. very useful for me i will bookmark this for my future needed. thanks for a great source.
Thanks for the tips.
Drupal is a excellent platform to build great websites…Thanks for the tips
Thanks for the helpful tip! I’ve been Googling for this kind of plugin for quite some time. I’ll be sure to use it in future Drupal projects.