Last updated February 9, 2013. Created by sveldkamp on May 15, 2012.
Edited by skizzo. Log in to edit this page.
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}.rpmNext, restart Apache / httpd to have PHP load the UploadProgress extension:
> service httpd restartFinally, 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
address for second step is
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
Address for epel 32bit
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
one liner
yum install ftp://linuxsoft.cern.ch/cern/updates/slc6X/${ARCH}/RPMS/php-pecl-uploadprogress-1.0.1-1.slc6.${ARCH}.rpm
SOLVED!
You sir, are a Genius! That worked in under a minute. Just had to restart apache afterwards :D
REMI repo
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.
I get: Cannot open:
I get:
Cannot open: ftp://linuxsoft.cern.ch/cern/updates/slc6X//RPMS/php-pecl-uploadprogress.... Skipping.ARCH is not defined, set it
ARCH is not defined, set it to i386 or x86_64 based on your system
Eg ARCH=x86_64
Broken Link
This is the url for 32bit centos 6.
ftp://linuxsoft.cern.ch/cern/updates/slc6X/i386/RPMS/php-pecl-uploadprog...