As user mtcs posted below, this one-liner will grab the necessary packages without grabbing non-Fedora/RedHat packages (which my previous instructions did, causing needless headaches):

> yum install ftp://linuxsoft.cern.ch/cern/updates/slc6X/${ARCH}/RPMS/php-pecl-uploadprogress-1.0.1-1.slc6.${ARCH}.rpm

Next, restart Apache / httpd to have PHP load the UploadProgress extension:

> service httpd restart

Finally, test by going to /admin/reports/status on your site to see if UploadProgress is reported to be working.

OpenVZ VPS / PHP 5.4.11

if you indeed use the latest PHP version from remi repository and install uploadprogress rpm you may end up with incompatible PHP/uploadprogress API versions. If you run a CentOS 6 openVZ VPS you should install first the relevant kernel headers from openvz.org, then install php-devel 5.4.11 and php-pear from remi repository, and finally build/install uploadprogress via pecl:

> uname -rm  (e.g.: 2.6.32-042stab065.3 x86_64 )
> wget http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab065.3/vzkernel-headers-2.6.32-042stab065.3.x86_64.rpm
> yum --nogpgcheck localinstall vzkernel-headers-2.6.32-042stab065.3.x86_64.rpm
> yum install gcc-c++  php-devel  php-pear
> pecl install uploadprogress
> echo "extension=uploadprogress.so" >> /etc/php.ini
> service httpd restart

Comments

hostnix’s picture

address for second step is inaccurate.

location of php.d is inaccurate

Don't know where to find them but however these don't work for me.

Using Centos 6 32bit

sveldkamp’s picture

Try ftp://ftp.osuosl.org/pub/fedora-epel/6/i386/epel-release-6-7.noarch.rpm.

Also, since the version is now 6.7 the step after will be:
rpm -Uvh epel-release-6-7.noarch.rpm

mtcs’s picture

yum install ftp://linuxsoft.cern.ch/cern/updates/slc6X/${ARCH}/RPMS/php-pecl-uploadprogress-1.0.1-1.slc6.${ARCH}.rpm

youlikeicecream’s picture

You sir, are a Genius! That worked in under a minute. Just had to restart apache afterwards :D

youlikeicecream’s picture

It would have been nice if you had mentioned that adding the Remi repo would update all my PHP libs, mysql server binaries and libs, my cyrus-sasl and other important process with ones that are in my opinion "untrusted"

Adding the following message to the instructions above would be very useful :

"WARNING : This MySQL RPM is not an official Fedora / Red Hat build and it
overrides the official one. Don't file bugs on Fedora Project nor Red Hat.
Use dedicated forums http://forums.famillecollet.com/" and also point out that it replaces many other important binaries and libraries.

I'm now going to go and unpick the mess this has created.

mattwmc’s picture

I get:

Cannot open: ftp://linuxsoft.cern.ch/cern/updates/slc6X//RPMS/php-pecl-uploadprogress-1.0.1-1.slc6..rpm. Skipping.
treksler’s picture

ARCH is not defined, set it to i386 or x86_64 based on your system
Eg ARCH=x86_64

Weaver’s picture

sealionking’s picture

I followed the instruction and installed the library and has the uploadprogress.ini in php.d directory, but it still alert that "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 (preferred) or to install APC."

How can I make it work with drupal?

coozila’s picture

#yum install php-pear php-devel
#pecl install uploadprogress

add new file: uploadprogress.ini file in etc/php.d

and just add this line

extension=uploadprogress.so

#service php-fpm restart
#service nginx restart

Maffoo’s picture

This method worked perfectly for me on Centos 7 (ignore the last couple of steps unless they apply to you, of course)

trumpetmercenary’s picture

I only needed to follow lines 1, 2, and 5 for this to work
Sad that this comment's instructions work and the OP's don't

hetalsagar’s picture

Above solution worked for drupal 7.92 and amazon linux.

You have to install yum groupinstall "Developme Tools"

sbillis’s picture

yum install http://linuxsoft.cern.ch/cern/updates/slc6X/x86_64/RPMS/php-pecl-uploadprogress-1.0.1-1.slc6.x86_64.rpm

nightrider’s picture

For everyone looking to install the library on CentOS 7.x, the simplest way I found is to download the related RPM from:

https://www.rpmfind.net/linux/RPM/remi/enterprise/7/x86_64/php-pecl-uplo...

ftp://fr2.rpmfind.net/linux/remi/enterprise/7/remi/x86_64/php-pecl-uploa...

Install it with yum install php-pecl-uploadprogress-1.0.3.1-4.el7.remi.5.4.x86_64.rpm

And then restart apache.