Install PECL uploadprogress Extension

1. Go to the directory /usr/local/src.

cd /usr/local/src

2. Download PECL uploadprogress extension.

wget http://pecl.php.net/get/uploadprogress-1.0.1.tgz

3. Extract the package.

tar zxvf uploadprogress-1.0.1.tgz

4. Go to the directory ‘uploadprogress-1.0.1?

cd uploadprogress-1.0.1

5. Execute the following commands.

phpize
./configure
make
make install

6. Add the extension ‘uploadprogress.so’ in PHP configuration file.

Note: You can find php.ini file using the command “php -i | grep php.ini”.

echo “extension=uploadprogress.so” >> /usr/local/lib/php.ini

7. Restart Apache service.

service httpd restart

8. Verify the installation using the command “php -m | grep -i upload”.

0 comments:

Post a Comment