PECL UploadProgress Installation and troubleshooting

Having trouble installing PECL uploadprogress?

Posted on December 9, 2011

Having trouble installing PECL uploadprogress? I was...I followed every bit advice to the letter and nothing seemed to help. The installation appeared to install correctly and without any errors. Yet uploadprogress would not show up on any php_info() commands. Also, under Reports in Drupal 7, it didn't say it was enabled and kept recommending to install it. Even upon a re-install, PECL said it was already installed thus it failed. I finally found a solution, and might I say; it was simple.

If you are using LAMP try this:

  1. Install php5-dev: apt-get install php5-dev

  2. Configuration, compilation and installation is done completely automatically with the command:

    pecl install uploadprogress

    After a few seconds the result should look like:

    Build process completed successfully
    Installing '/usr/lib/php5/20060613/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
  3. Add the following line to your php.ini: extension="uploadprogress.so" Every other guide will give you this same formula above. Sometimes in more detail with a full make, and sometimes fewer details. At this point this should be working for you. It wasn't for me. The key ingredient was this:

  4. Create a file at the following location:

    etc/php5/apache2/conf.d/uploadprogress.ini

    Add the lines and save the file:

    ; Configuration of uploadprogress
    extension=uploadprogress.so
  5. Restart apache:

    service apache2 reload

Hope this helps. Let me know!


← Return