Philipp's Computing Blog

Success is about speed and efficiency

Install the PECL Upload Progress Library for Drupal 7 on Debian squeeze

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:

su
# 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.

resources