How do I install PECL uploadprogress library

beckyjohnson - May 7, 2009 - 19:22

I am making a site for a client on Blue Host and drupal says I can user PECL but I don't understand how to install it. I searched drupal but didn't find anything useful.

Can someone explain to me how to do this? I have some unix stills but am not an expert so please be really clear.

Thank you

Becky

_

WorldFallz - May 7, 2009 - 20:42

It's not a drupal specific thing which is why you didn't find anything useful searching d.o. Try google:

http://www.google.com/search?q=pecl+uploadprogress

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

I found the answer on the

kiwi_steve - May 20, 2009 - 02:27

I found the answer on the Freestyle Systems site, and it solved my problem... hope it works for you. Big ups to the guy(s) at Freestyle for the information, and I hope they don't mind me sharing it here.
http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extensi...

The guts of it follows:

Installation on Unix/Mac:

  • 1. Download the PECL uploadprogress extension
  • 2. Extract the uploadprogress-1.0.0.tgz archive, cd into the extracted folder and run these commands in Terminal:
  •       $ phpize            # prepares the PHP extension for compiling
          $ ./configure
          $ make
          $ sudo make install

  • 3. Check that the directory for the extensions is correct. The last line of the output returned from the $ make install command (on my system) is Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/. Open php.ini and edit the extension_dir directive, replacing it with this path.
  • 4. Add the extension to php.ini by adding this line extension=uploadprogress.so
  • 5. Restart apache
  • You should now have the PECL uploadprogress extension installed.

    --There are no personal problems that cannot be overcome with the liberal application of high explosives--

    Thanks for the instructions.

    beckyjohnson - May 21, 2009 - 20:08

    Thanks for the instructions. That was very nice of you. Worked like a charm. I think i ended up using and finding the same link you posted here.

    Becky

    I tried in XAMPP Environment

    rafiqcmnet - June 19, 2009 - 07:24

    Hi All and TQ kiwi_steve for sharing.

    I am running production in XAMPP.

    I followed the related blogpost(s) and below were the steps I took:

    1. I copied the uploadprogress.dll file into the path set for extension_dir which is "C:\xampp\php\ext\" in my case.
    2. I added "extension=uploadprogress.dll" to php.ini which is basically a line just below ";extension=php_zlib_filter.dll".
    3. I remove the semi-colon BTW.
    3. I restarted Apache and ran ran cron in my drupal.

    The notification msg still remains.

    Anyting amissed?

    ~not a techie~

    A bit late, but in case

    NRaf - August 27, 2009 - 04:10

    A bit late, but in case anyone has this issue, the reason why it's not working is because the file is php_uploadprogress.dll. The article writer missed out on the php_

    So to fix the issue replace extension=uploadprogress.dll with extension=php_uploadprogress.dll

    thank you

    rafiqcmnet - August 27, 2009 - 08:13

    It works.

    My Status Reports now says:

    Upload progress Enabled (PECL uploadprogress)

    I'm running Windows 2008....

    Vc Developer - July 22, 2009 - 03:40

    I installed the Acquia version of Drupal:
    I'm normally a .Net framework developer, but how do I get to the apache prompt (isn't this were I'm Terminal is) to compile to file?

    The link to the pecl4win server is not available.

    Thanks for your help!...

    Coding is like a box of chocolates!...

    Install PECL uploadprogress library on OS X 10.5 Leopard

    postrational - July 11, 2009 - 09:31

    If you're on Leopard, try to follow these instructions:

    http://greenash.net.au/posts/thoughts/installing-the-uploadprogress-pecl...

    Also, if you are using the Entropy version of PHP, make sure you use the right version of phpize.

    These are the commands which worked for me:

    tar -xzf uploadprogress-1.0.1.tgz
    cd uploadprogress-1.0.1
    /usr/local/php5/bin/phpize
    MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" ./configure
    sudo make
    sudo make test
    sudo make install
    sudo cp modules/uploadprogress.so /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/
    php -m
    sudo apachectl graceful

    PECL

    josejotero - July 15, 2009 - 01:13

    Hi Becky,
    I noticed that you had a problem installing the PECL uploadprogress bar. I didn't understand the solution. I'm not a programmer by trade, and am trying to learn in my spare time. Could you explain the steps in a more simple manner?
    Thanks,
    Jose

    I found this link quite

    BravoGolf - August 24, 2009 - 12:41

    I found this link quite helpful: http://us2.php.net/manual/en/install.pecl.php

    Bluehost

    jvinci - September 6, 2009 - 12:36

    I also am using Bluehost to host my site. I asked them about it, and they will be installing the uploadprogress library for me.

    -JV

    That's interesting. They told

    ericprk - October 12, 2009 - 01:27

    That's interesting. They told me their policy was not install it. They said it could cause problems with other domains and wasn't required by Drupal.

    If You're Using WAMP

    dalehgeist - September 18, 2009 - 17:06

    I'm on WAMP 2.0, don't know if this works for earlier versions

    1. Click the WAMPSERVER icon in your taskbar to bring up the UI
    2. Roll over the PHP folder, which will bring up a submenu
    3. Roll over PHP Extensions, which will bring up a long list of extensions, some with checkmarks next to them
    4. Find php_uploadprogress and select it

    WAMPSERVER will automatically restart. After it does, refresh your Drupal status update page, and you should see that your uploadprogress alert has gone away.

    (Obviously, this means that php_uploadprogress was already installed, but not yet enabled - which may be true for you, too.)

    "not enabled" after installation

    peggys mouse - September 20, 2009 - 04:47

    i am still seeing the "not enabled" status on /admin/reports/status for upload progress even though i just installed PECL uploadprogress. is there something i need to do after installing it?

     
     

    Drupal is a registered trademark of Dries Buytaert.