Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: to install the PECL uploadprogress library

  1. #1
    Join Date
    May 2009
    Beans
    1

    to install the PECL uploadprogress library

    In the page of report of my drupal site, the upload progress module gives me an error. The error is the following:

    "Upload progress Not trained
    Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (prefered) or to install APC."

    I have tried to install the PECL uploadprogress library, but I have not succeeded there. There is someone who is able to point out whether to find the instructions for a correct installation of such bookstores. On my server Ubuntu 8.10 turns.

  2. #2
    Join Date
    Jun 2009
    Beans
    1

    Re: to install the PECL uploadprogress library

    Install the PHP developer package for the version of PHP you're using. For example, in case of php5 run:
    $ sudo apt-get install php5-dev

    Install the PECL uploadprogress library:
    $ sudo pecl install uploadprogress

    Open php.ini :
    $ sudo gedit /etc/php5/apache2/php.ini
    Add the line "extension=uploadprogress.so" to php.ini

    Restart apache:
    $ sudo /etc/init.d/apache2 restart

  3. #3
    Join Date
    Jan 2006
    Beans
    23
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: to install the PECL uploadprogress library

    I also needed php-pear, so my command was:

    Code:
    sudo apt-get install php5-dev php-pear
    Otherwise the

    Code:
    sudo pecl install uploadprogress
    didn't work for me...

  4. #4
    Join Date
    Oct 2008
    Beans
    Hidden!

    Re: to install the PECL uploadprogress library

    Quote Originally Posted by zargh View Post
    Install the PHP developer package for the version of PHP you're using. For example, in case of php5 run:
    $ sudo apt-get install php5-dev

    Install the PECL uploadprogress library:
    $ sudo pecl install uploadprogress

    Open php.ini :
    $ sudo gedit /etc/php5/apache2/php.ini
    Add the line "extension=uploadprogress.so" to php.ini

    Restart apache:
    $ sudo /etc/init.d/apache2 restart
    this was really useful. Sorry for the bump.. i wanted really badly to say

    THANKS

  5. #5
    Join Date
    Dec 2006
    Location
    Cheltenham, UK
    Beans
    58
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: to install the PECL uploadprogress library

    Just to add: the Debian (and therefore Ubuntu) way to add the module to php is to add a file like /etc/php5/apache2/conf.d/uploadprogress.ini containing extension=uploadprogress.so which will be picked up by php.ini. This means that php can be upgraded without having to re-edit the default php.ini file.
    "Answers satisfy the mind, mysteries capture the heart." -- David Gate

  6. #6
    Join Date
    Jul 2007
    Location
    London, UK
    Beans
    74
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: to install the PECL uploadprogress library

    Thanks zargh and clarkburbidge, those instructions worked a charm. Just to add that when I installed uploadprogress, at the end I got this:
    "configuration option "php_ini" is not set to php.ini location"
    But everything still worked anyway... is this anything to be worried about?

    Cheers
    Ubooboo: Ubuntu fixes for newbs
    http://www.ubooboo.net/

  7. #7
    Join Date
    Nov 2008
    Location
    Powell River, BC, Canada
    Beans
    208

    Re: to install the PECL uploadprogress library

    Thanks all

    I wrote a how-to handbook for Ubuntu at http://drupal.org/node/793262

  8. #8
    Join Date
    Jul 2007
    Location
    London, UK
    Beans
    74
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: to install the PECL uploadprogress library

    Note: Upgrade to Lucid broke this. The fix was to re-install uploadprogress with pecl i.e.

    sudo pecl uninstall uploadprogress
    sudo pecl install uploadprogress

    Then re-add the line in php.ini if it was removed, and restart apache.
    Ubooboo: Ubuntu fixes for newbs
    http://www.ubooboo.net/

  9. #9
    Join Date
    May 2005
    Location
    Sweden
    Beans
    91
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: to install the PECL uploadprogress library

    Quote Originally Posted by spikyjt View Post
    Just to add: the Debian (and therefore Ubuntu) way to add the module to php is to add a file like /etc/php5/apache2/conf.d/uploadprogress.ini containing extension=uploadprogress.so which will be picked up by php.ini. This means that php can be upgraded without having to re-edit the default php.ini file.
    Right you are and also just to mention it, the "right" way to add it also works for suphp and possibly for other variants without any further adding in other files.
    If I have ever made any valuable discoveries, it has been owing more to patient attention, than to any other talent.
    Isaac Newton

  10. #10
    Join Date
    Feb 2011
    Beans
    3

    Re: to install the PECL uploadprogress library

    In my case, I had to put uploadprogress.so in

    /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/

    and edited php.ini in

    /opt/lampp/etc/

    Then

    /opt/lampp/lampp restart

    That's all.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •