Apr 042011

If you take a look at the status report page of a Drupal 7 installation on Debian squeeze you might notice that the PECL Upload Progress Library is reported to be missing. Here is how to get it installed:

# pecl is contained in the package php-pear and needs php5-dev:
apt-get install make php5-dev php-pear
# Install uploadprogress-1.0.1 <http://pecl.php.net/package/uploadprogress>:
pecl install uploadprogress
# You should add "extension=uploadprogress.so" to php.ini
# or put it in php's conf.d folder:
echo -e "extension=uploadprogress.so" > /etc/php5/conf.d/uploadprogress.ini
/etc/init.d/apache2 reload

That’s it.

I had a problem with my WordPress installation afterwards. It turned out that the problem was the installation of php-pear. Afterwards WordPress automatically wanted to load /usr/share/php/PEAR.php so I had to add /usr/share/php/ to the open_basedir directive in my site specific php.ini configuration file.


VN:F [1.9.22_1171]
Rating: 8.5/10 (4 votes cast)
Install the PECL Upload Progress Library for Drupal 7 on Debian squeeze, 8.5 out of 10 based on 4 ratings

Related Posts:

  5 Responses to “Install the PECL Upload Progress Library for Drupal 7 on Debian squeeze”

  1. What if it is a shared host and they do not allow php.ini configuration?

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • Well, in this case you can ask your hosting provider to install PECL and the PECL upload progress library for you or just don’t use it and accept the warning on your drupal status page.

      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  2. Thank you very much! it worked like a charm!

    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  3. No longer valid, since php does not seem to load modules from /etc/php5/conf.d. Instead, the last two lines may be changed to:

    echo -e "extension=uploadprogress.so" > /etc/php5/mods-available/uploadprogress.ini
    php5enmod uploadprogress
    service apache2 reload
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>