Installing PECL UploadProgress for Drupal 7

Posted by Lyemium Editorial on Mar 02, 2011

If you are running your own server, you may encounter a disabled notice relating to Upload Progress. Here is how to correct it

This brief guide will help you install "PECL uploadprogress" on a Debian system.

1. Install make and the development files for php5:
sudo apt-get install make php5-dev

2. Configuration, compilation and installation is done completely automatically with the command:
sudo pecl install uploadprogress-1.0.1

After a few seconds the result should be:

Build process completed successfully
Installing '/usr/lib/php5/20090626+lfs/uploadprogress.so'
install ok: channel://pecl.php.net/uploadprogress-1.0.1
configuration option "php_ini" is not set to php.ini location
You should add "extension=uploadprogress.so" to php.ini

In order to keep the php configuration enter:
echo -e "extension=uploadprogress.so" > /etc/php5/apache2/conf.d/uploadprogress.ini

Now reload the Apache configuration with:
sudo /etc/init.d/apache2 reload

The Drupal status page now displays:
Upload progress Enabled (PECL uploadprogress)