Cybernet Web Design - Web Design & Linux Server Administration
Installing PHP PECL Upload Progress Library on CentOS 6.x - Printable Version

+- Cybernet Web Design - Web Design & Linux Server Administration (https://www.cybernetwebdesign.com)
+-- Forum: Web Design (https://www.cybernetwebdesign.com/Forum-Web-Design)
+--- Forum: Tips and Trick (https://www.cybernetwebdesign.com/Forum-Tips-and-Trick)
+--- Thread: Installing PHP PECL Upload Progress Library on CentOS 6.x (/Thread-Installing-PHP-PECL-Upload-Progress-Library-on-CentOS-6-x)



Installing PHP PECL Upload Progress Library on CentOS 6.x - cybernetwebdesign - 09-06-2016

1. Download the latest PECL upload progress library stable extension from here or use wget or curl from the command line
2. Then login via SSH and run these commands:
 
Code:
wget http://pecl.php.net/get/uploadprogress-1.0.3.1.tgz
 
Code:
tar -xvf uploadprogress-1.0.3.1.tgz 
 
Code:
cd uploadprogress-1.0.3.1
 
Code:
phpize
 
Code:
./configure
 
Code:
make
 
Code:
sudo make install

The last lines of the output from "sudo make install" depending on what version of PHP you are in, should read 
 
Code:
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/ or /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ or /usr/local/lib/php/extensions/no-debug-non-zts-20100525/

If so, you need to add the recently added extension to php.ini open the php.ini file:
 
Code:
vi /usr/local/lib/php.ini

Search for extensions by using the '/' search functions and 'extensions' as the search string which should bring you  to the right place then add the line below to the loadable extension list
 
Code:
extension=uploadprogress.so
 
Save "wq" and quit
Restart Apache
 
Code:
apachectl restart

OR
 
Code:
service httpd restart


Done! Cool