View Full Version : [ubuntu] to install the PECL uploadprogress library
lisssina
May 19th, 2009, 11:34 AM
In the page of report of my drupal site, the upload progress module gives me an error. The error is the following:
"Upload progress Not trained
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 (prefered) or to install APC."
I have tried to install the PECL uploadprogress library, but I have not succeeded there. There is someone who is able to point out whether to find the instructions for a correct installation of such bookstores. On my server Ubuntu 8.10 turns.
zargh
June 25th, 2009, 08:46 PM
Install the PHP developer package for the version of PHP you're using. For example, in case of php5 run:
$ sudo apt-get install php5-dev
Install the PECL uploadprogress library:
$ sudo pecl install uploadprogress
Open php.ini :
$ sudo gedit /etc/php5/apache2/php.ini
Add the line "extension=uploadprogress.so" to php.ini
Restart apache:
$ sudo /etc/init.d/apache2 restart
clarkburbidge
August 2nd, 2009, 08:14 PM
I also needed php-pear, so my command was:
sudo apt-get install php5-dev php-pear
Otherwise the
sudo pecl install uploadprogress
didn't work for me...
fduppa
December 28th, 2009, 05:56 PM
Install the PHP developer package for the version of PHP you're using. For example, in case of php5 run:
$ sudo apt-get install php5-dev
Install the PECL uploadprogress library:
$ sudo pecl install uploadprogress
Open php.ini :
$ sudo gedit /etc/php5/apache2/php.ini
Add the line "extension=uploadprogress.so" to php.ini
Restart apache:
$ sudo /etc/init.d/apache2 restart
this was really useful. Sorry for the bump.. i wanted really badly to say
THANKS
spikyjt
February 28th, 2010, 01:34 PM
Just to add: the Debian (and therefore Ubuntu) way to add the module to php is to add a file like /etc/php5/apache2/conf.d/uploadprogress.ini containing extension=uploadprogress.so which will be picked up by php.ini. This means that php can be upgraded without having to re-edit the default php.ini file.
1jackjack
April 29th, 2010, 03:51 PM
Thanks zargh and clarkburbidge, those instructions worked a charm. Just to add that when I installed uploadprogress, at the end I got this:
"configuration option "php_ini" is not set to php.ini location"
But everything still worked anyway... is this anything to be worried about?
Cheers
Francewhoa
May 8th, 2010, 05:17 AM
Thanks all :)
I wrote a how-to handbook for Ubuntu at http://drupal.org/node/793262
1jackjack
July 28th, 2010, 04:33 PM
Note: Upgrade to Lucid broke this. The fix was to re-install uploadprogress with pecl i.e.
sudo pecl uninstall uploadprogress
sudo pecl install uploadprogress
Then re-add the line in php.ini if it was removed, and restart apache.
jannol
August 10th, 2010, 10:13 AM
Just to add: the Debian (and therefore Ubuntu) way to add the module to php is to add a file like /etc/php5/apache2/conf.d/uploadprogress.ini containing extension=uploadprogress.so which will be picked up by php.ini. This means that php can be upgraded without having to re-edit the default php.ini file.
Right you are and also just to mention it, the "right" way to add it also works for suphp and possibly for other variants without any further adding in other files.
edsonmatos
February 3rd, 2011, 02:34 AM
In my case, I had to put uploadprogress.so in
/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/
and edited php.ini in
/opt/lampp/etc/
Then
/opt/lampp/lampp restart
That's all.):P
CJScully
March 17th, 2011, 09:52 PM
I get the following when running pecl install uploadprogress
downloading uploadprogress-1.0.1.tgz ...
Starting to download uploadprogress-1.0.1.tgz (8,536 bytes)
.....done: 8,536 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
/usr/bin/phpize: 209: /tmp/pear/temp/uploadprogress/build/shtool: Permission denied
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
The autoconf package is installed on the server. I'm stuck. Can't figure out what could be causing this.
HonoredMule
November 22nd, 2011, 06:29 PM
CJScully, you need to have php5-dev installed, not just autoconf.
snovak
January 1st, 2012, 05:03 PM
I wound up with a build error. Turns out you need build essentials too (in 11.10)
sudo apt-get install build-essential
progone
February 11th, 2012, 05:43 AM
Install the PHP developer package for the version of PHP you're using. For example, in case of php5 run:
$ sudo apt-get install php5-dev
Install the PECL uploadprogress library:
$ sudo pecl install uploadprogress
Open php.ini :
$ sudo gedit /etc/php5/apache2/php.ini
Add the line "extension=uploadprogress.so" to php.ini
Restart apache:
$ sudo /etc/init.d/apache2 restart
The above partially work with 11.10. After you complete the steps above. You can put the apc.rfc# in the apc.ini file instead of the php.ini
try this:
locate apc.ini
Results for me: /etc/php5/conf.d/apc.ini
gedit /etc/php5/conf.d/apc.ini
apc.ini opens, and add if its not there
extension=apc.so
apc.enabled=1
apc.shm_size=30
apc.rfc1867 = 1
Please NOTE: rfc1867 may be different upon your configuration. Please which ever rfc#### Drupal gives to you for line 4. You will get this RFC# from the status page.
Upon a successful completion your message will look like this on the status page:
Upload progress Enabled (APC RFC1867)
Your server is capable of displaying file upload progress using APC RFC1867.
Note that only one upload at a time is supported. It is recommended to use
the PECL uploadprogress library if possible.
ellenbo
May 22nd, 2012, 09:14 PM
Thank you all for the help. I also ended up having to use:
$ sudo apt-get install php5-dev php-pear
I added the line "extension=uploadprogress.so" to the very top of php.ini. Is this the right place to put it? It's working for now...
selwynpolit
January 29th, 2013, 12:41 AM
sudo pecl install uploadprogress
...
after trying the command above, I got:
config.status: executing libtool commands
running: make
sh: 1: make: not found
ERROR: `make' failed
so I had to run:
sudo apt-get install make
then I could run the
sudo pecl install uploadprogress
now for updating the ini correctly
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.