By beckyjohnson on
I am making a site for a client on Blue Host and drupal says I can user PECL but I don't understand how to install it. I searched drupal but didn't find anything useful.
Can someone explain to me how to do this? I have some unix stills but am not an expert so please be really clear.
Thank you
Becky
Comments
_
It's not a drupal specific thing which is why you didn't find anything useful searching d.o. Try google:
http://www.google.com/search?q=pecl+uploadprogress
Present on status report
It may not be Drupal Specific, but it is present on the status report (
admin/reports/status) for Drupal 7:Consequently, it should be addressed in one way or another in Drupal 7
_
drupal has nothing to do with pecl packages or apc-- those are server configuration items to which drupal has no access. What else can be done except inform the user that this option is available?
What else can be done is
What else can be done is obviously to provide up to date installation instructions on d.o. for at least OSX and the current flavours of Ubuntu and CentOS. The single most difficult task about setting up Drupal is not setting up Drupal but setting up the requirements. Pear, Pecl and APC are all requirements for either core or contrib. I remember encountering conflicts while trying to apt-get pecl on Ubuntu 9.04. As a newbie you may not be looking to get up to speed with linux, just get Drupal running. This is why the acquia drupal package is so popular. I think that the information in this thread should be part of the documentation, even if it isn't strictly about Drupal.
_
There's nothing stopping that documentation from being written and contributed. EVERY registered user on drupal.org has the permissions to edit and add documentation. Unfortunately, it would seem people prefer to spend their time complaining in the forums rather than contributing documentation to the handbooks. This thread is a perfect example.
Bad attitude
Thank you so much for being brave enough to highlight one of the biggest failings in this forum method of support.
A beginner using Drupal for their first website design has to grapple with dozens of problems that start with Drupal installation on a development PC (e.g. Wamp on my Windows computer). Some of the basic questions we ask are met with nothing but a loud SNEER from the "experts" who have been there before and perhaps think we should spend another six months learning every aspect of configuration from scratch until we have earned the right to ask anything at all.
Luckily for us, if we wait a little while (and put up with a few more similar posts), some really helpful person comes along and answers our question simply and to the point or links us to the relevant stuff outside Drupal.
Why such a bad attitude?
there is now documentation on installing PECL
Just wanted to share that there is now documentation on installing PECL which includes a lot of information from this thread:
http://drupal.org/node/793264
I found the answer on the
I found the answer on the Freestyle Systems site, and it solved my problem... hope it works for you. Big ups to the guy(s) at Freestyle for the information, and I hope they don't mind me sharing it here.
http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extensi...
The guts of it follows:
Installation on Unix/Mac:
You should now have the PECL uploadprogress extension installed.
Thanks for the instructions.
Thanks for the instructions. That was very nice of you. Worked like a charm. I think i ended up using and finding the same link you posted here.
Becky
I tried in XAMPP Environment
Hi All and TQ kiwi_steve for sharing.
I am running production in XAMPP.
I followed the related blogpost(s) and below were the steps I took:
1. I copied the uploadprogress.dll file into the path set for extension_dir which is "C:\xampp\php\ext\" in my case.
2. I added "extension=uploadprogress.dll" to php.ini which is basically a line just below ";extension=php_zlib_filter.dll".
3. I remove the semi-colon BTW.
3. I restarted Apache and ran ran cron in my drupal.
The notification msg still remains.
Anyting amissed?
~not a techie~
A bit late, but in case
A bit late, but in case anyone has this issue, the reason why it's not working is because the file is php_uploadprogress.dll. The article writer missed out on the php_
So to fix the issue replace extension=uploadprogress.dll with extension=php_uploadprogress.dll
thank you
It works.
My Status Reports now says:
Upload progress Enabled (PECL uploadprogress)
it shouldn't matter as long
it shouldn't matter as long as the extension name in the php.ini matches the extension name in the extension folder.
I followed these steps but
I followed these steps but unfortunately still does not seem to work. I had better luck with APC that seems to come bundled with XAMP.
Ok, upgraded to Quickstart
Ok, upgraded to Quickstart now. Works a treat.
I'm running Windows 2008....
I installed the Acquia version of Drupal:
I'm normally a .Net framework developer, but how do I get to the apache prompt (isn't this were I'm Terminal is) to compile to file?
The link to the pecl4win server is not available.
Thanks for your help!...
it worked :)
Thanks a lot, it worked for me. My server is a vps fedora 7 moonshine.
i had to install php-devel to run phpize and "Development Tools" to run "./configure"
Run phpize from terminal -- install php5-dev
Run the command below in terminal to get phpize
apt-get install php5-dev.
It works for me!
Thank you very much! It works for me! I am using VertrigoServ. What I did was just
1. downloaded the .dll file
2. uploaded it to PHP/ext folder
3. went to the servers Settings->Extension settings and enabled/check the php_uploadprogress.dll
4. restarted the server
5. refreshed the status report page and Upload progress is already enabled!
Great help! Thanks!
Thanks, worked like a charm.
Thanks, worked like a charm. :)
Multiple PHP installation
After following most recipes and failing miserably, I finally found the solution!
A lot of people seem to run into the same issue, they have several versions of PHP installed , such as 5.2 & 5.3 , and doing the following doesn't work because the extension is not compiled by the version they're using, resulting in a warning that the module cannot be loaded.
A comment left on this page saved the day.
Thanks kiwi_steve
thanks kiwi_steve
Worked by me.
Install PECL uploadprogress library on OS X 10.5 Leopard
If you're on Leopard, try to follow these instructions:
http://greenash.net.au/posts/thoughts/installing-the-uploadprogress-pecl...
Also, if you are using the Entropy version of PHP, make sure you use the right version of phpize.
These are the commands which worked for me:
PECL
Hi Becky,
I noticed that you had a problem installing the PECL uploadprogress bar. I didn't understand the solution. I'm not a programmer by trade, and am trying to learn in my spare time. Could you explain the steps in a more simple manner?
Thanks,
Jose
I found this link quite
I found this link quite helpful: http://us2.php.net/manual/en/install.pecl.php
Bluehost
I also am using Bluehost to host my site. I asked them about it, and they will be installing the uploadprogress library for me.
-JV
That's interesting. They told
That's interesting. They told me their policy was not install it. They said it could cause problems with other domains and wasn't required by Drupal.
HostGator.com support did it for me too.
I am on a shared HostGator plan. It took me less than 10 minutes on Live Chat to have the latest uploadprogress library installed. It is among the items they do for you, if you ask.
My Status report looks so-o-o good now.
:)
If You're Using WAMP
I'm on WAMP 2.0, don't know if this works for earlier versions
1. Click the WAMPSERVER icon in your taskbar to bring up the UI
2. Roll over the PHP folder, which will bring up a submenu
3. Roll over PHP Extensions, which will bring up a long list of extensions, some with checkmarks next to them
4. Find php_uploadprogress and select it
WAMPSERVER will automatically restart. After it does, refresh your Drupal status update page, and you should see that your uploadprogress alert has gone away.
(Obviously, this means that php_uploadprogress was already installed, but not yet enabled - which may be true for you, too.)
Genius : ) Thanks for that :
Genius : ) Thanks for that : ) So simple on a localhost wamp setup. Cheers
Thanks!
Thanks mate, your instructions were so simple and worked like a charm! :-)
If you're using EasyPHP
NO NEED TO DOWNLOAD ANYTHING.
Check you have php.ini in your EasyPHP\conf_files directory. If not, I took a copy from the \Apache directory (which was correctly configured). Open php.ini with wordpad or similar and remove the ';' from the line as follows
from
;extension=php_uploadprogress.dll
to
extension=php_uploadprogress.dll
Restart EasyPHP and its all go.
pecl4win is down
pecl4win is down for ages, so you can get PECL DLLs at http://www.sfr-fresh.com/windows/www/php-5.3.6-src.zip/
Founder, Software Engineer | www.drevops.com
PECL (uploadprogress) for Windows PHP 5.3, 5.4, and 5.5
Just incase there are still PC people looking for this I have posted the link and upload the PHP 5.4 dll over here...
https://drupal.org/node/1184588#comment-7839115
Josh Utley, President & CEO
Intrepid Network Inc. | Multimedia Services & Business Solutions
"Our mission is to provide a more personable multimedia service along with the highest quality business solutions."
"not enabled" after installation
i am still seeing the "not enabled" status on /admin/reports/status for upload progress even though i just installed PECL uploadprogress. is there something i need to do after installing it?
gotta add it to the php.ini file too
I outlined it here - http://drupal.org/node/606780#comment-2176280
PECL UploadProgress Extension/Module Installation (LAMPP)
01. Make sure to install PHP5-DEV……. run “apt-get install php5-dev” from the command line, if not already installed.
02. Installed the PECL Dynamic extension for uploadprogress…..”pecl install uploadprogress-1.0.1” from the command line. This
will place the unix/linux based dynamic extension file "*.so" in the /usr/lib/php5/20060613+lfs directory or at least that's where
it put mine.
03. You will then have to copy the uploadprogress.so file the the extension directory that is configured in you php.ini file - mine
was here "/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613 (I think this is because I used LAMPP)
04. You have to modify the php.ini file adding "extension="uploadprogress.so" (keep the quotes they go along with the modification)
05. I restarted lampp (Apache) needed restarted.....on the restart PHP loaded the extension.
06. Download the uploadprogress module and install.
07. NO ERRORS! MODULE INSTALLED!!
08. http://us2.php.net/manual/en/install.pecl.pear.php (Here is where I began)
Installing PECL UploadProgress on a server
Many thanks for Your excellent help. It sent me in the right direction for the info on installation of the uploadprogress.
This comment may not help everybody in this thread since the commands described here are submitted on a command line in a terminal window.
It may document how easy it is to install this on a Debian (in fact Ubuntu flavour) system in case You are running Your own webserver.
sudo apt-get install make php5-devsudo pecl install uploadprogress-1.0.1After a few seconds the result should be:
Assuming that You already have a running Drupal system, it is easy to see
the php configuration at /admin/reports/status/php
Then it is easy to see which php.ini file should be edited.
In order to keep the php configuration modular, I ended up doing this:
echo -e "extension=uploadprogress.so" > /etc/php5/apache2/conf.d/uploadprogress.iniNow reload the webserver configuration:
sudo /etc/init.d/apache2 reloadalternatively:
sudo service apache2 reloadThe Drupal status page promptly displays:
Any pro server admin would proudly do it this way.
Best whishes ...
Excellent instructions
Easy to follow and good detail ... worked great on Ubuntu 10.04 Apache2
PECL Uploadprogress Installation ... Done!
Thanks ... Paul
Thanks Anna
This one here works for Ubuntu 10.10
Thanks
Thanks, so simple on Linux :-)
DT
And if it is a shared hosting?
So it seems that i must have system access to acomplish the instalation of the pecl library. But the fact is that i'm in a shared hosting and have absolutely no authorization to upload or compile libraries, and have access only to the cgi version of the php.ini file. What can i do?
_
You can ask the host to install it for your use, some do some refuse. If they refuse there's nothing you can do except change hosts.
PECL uploadprogress on shared hosting
Like you I am on a shared host, but with shell access (DreamHost). I managed to compile the uploadprogress extension as follows. Note: these instructions are (most probably) only for DreamHost users
make a temporary directory for compiled gnu binaries, unpack, compile and install the following source packages:
- m4 (from http://ftp.gnu.org/gnu/m4/m4-latest.tar.gz)
- autoconf (from http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz)
- automake (from http://ftp.gnu.org/gnu/automake/automake-latest.tar.gz)
also, download the source PECL uploadprogress library (from http://pecl.php.net/get/uploadprogress-1.0.1.tgz)
First prepare an environment variable and create a temp path
Then
Now do the same trick for autoconf and automake (except the export PATH line)
Then, unpack the uploadprogress package somewhere and..
... resulting in a freshly compiled uploadprogress.so
Most likely, since you're on a shared server, you don't have access to the webserver's "extension_dir". For that reason you're advised to create a CGI-wrapper for your php installation and use a custom php.ini where you will be including the uploadprogress extension:
1) create the wrapper: see http://wiki.dreamhost.com/PHP.ini
2) add the following line to your custom php.ini and make sure extension_dir points to the directory where your uploadprogress.so is located
3) kill all fastcgi processes: see http://wiki.dreamhost.com/FastCGI
4) reload your browser and check whether your status_report tells you the following: Upload progress: Enabled (PECL uploadprogress). You can also use some php-script calling phpinfo();
Good luck
This worked like a charm for
This worked like a charm for me to get it working. I had tried to do it before but failed miserably but your info helped me out.
The only thing that through me for a bit was finding the uploadprogress.so file, I hadn't realized it it was in the module folder after making it. I overlooked some info on the screen but caught on fast enough.
And I couldn't figure out how to kill the fastcgi processes but the pecl uploadprogress.so appears to be running. Perhaps I did it without knowing what I was doing or stumbled upon the right thing. Either way, it's working according to the status report page.
Thanks for the info!
Make sure you run this
Make sure you run this command in the end after you update your php.ini in the terminal in your /home/username/domain.tld/cgi-bin
touch ./dispatch.fcgiThank you for this...
This worked well. I greatly appreciate recipe-style directions. Thank you.
PECLE uploadprogress is now enabled.
another poster suggested using 'touch ./dispatch.fcgi' from shell in the cgi-bin folder, but I did not have to for it to show up in the status report. I didn't see the need for it. Could someone explain?
Shared Host
Can I use a precompiled uploadprogress.so ? None seem to be available to download though...
I am stuck on the ./configure m4 line because I have no access to gcc/cc/cl.exe.
Can I get any precompiled of those to move forward?
I have SSH and can install Perl Modules and PHP Pear Modules via Cpanel, but not PECL modules.
Anyone with another work around, or precompiled binaries please assist.
Thanks in advance!
Where would the the path to
Where would the the path to my uploadprogress.so be?
Dreamhost / FastCGI
Hi
I'm also using Dreamhost, but I can't get this working... I've followed your instructions and I've got a working uploadprogress.so file - at least, working in as far as it shows up in phpinfo()
However, because my Dreamhost shared server is running on FastCGI/CGI PHP, it doesn't seem to want to work properly.
After some hoofing around, I found that it's not a drupal issue per-se, but that 'uploadprogress_get_info' returns NULL all the time.
Did you need to do anything else to get it working correctly on your Dreamhost account?
Thanks
Kieran
Automake Hiccuop
Just a note to others. I set this up for Dreamhost and had a little hiccup with Automake getting an error and incessantly saying it needed Autoconf 2.1a or better. It did have Autoconf 2.8 but it still gave the error. So i just decided to proceed anyway with uploadprogress directions and it worked fine.
Stuck on ./configure uploadprogress
Stuck on
./configure -prefix=$HOME/gnu -with-php-config=$PHP_PREFIX/php-configwith error./configure: No such file or directory. There is a files calledconfigure.in, but running the scripting pointing at that returns./configure.in: Permission deniedand sudo returns./configure.in: command not foundNeed some help
Following along like a newbie...step by step on Dreamhost shared server with SSH access.
Got to this part:
wget http://ftp.gnu.org/gnu/automake/automake-latest.tar.gz
Got this error:
Seems there is not automake-latest.tar.gz, so I found the latest version and did a wget on that:
wget http://ftp.gnu.org/gnu/automake/automake-1.11.3.tar.gz
So then I started with this:
tar -xzf automake-1.11.3.tar.gz
cd automake-1.11.3
./configure -prefix=$HOME/gnu
and got this result and error:
It should be noted that the current Autoconf I created is autoconf-2.68, so not sure why I go the notice that autoconf in not recent enough.
I tried a make anyway and got this error:
make: *** No targets specified and no makefile found. Stop.So I am stuck here until someone that knows what they are doing can help.
It should also be noted that I followed the autoconf section without errors, but autoconf --version show I am still on Autoconf 2.61
Not sure why that is, since my directory folder shows autoconf-2.68 and its .version file shows 2.68
Centos Install
1. I did not have pear installed.. verify with "pear help"
yum install php-pear
2. Install Uploadprogress
pecl install uploadprogress
last line of output from install:
You should add "extension=uploadprogress.so" to php.ini
3. Figure out where your php.ini file is
php --ini
4. Edit the php.ini file
Add this line:
extension=uploadprogress.so
to the section labeled "Dynamic Extensions"
5. Restart Apache
service httpd restart
6. Run phpinfo() to verify
create a php script in your web root folder and browse to it:
-- Towards the bottom you should see the uploadprogress section
7. Also verify with Drupal status screen
at admin/reports/status
You will see:
Upload progress Enabled (PECL uploadprogress)
phpize not found
i followed your instructions, have centos5, but in my case pecl install uploadprogress resulted in "phpize not found".
had to run this first to install phpize:
yum install php-devel
my php.ini was in /etc/php.ini
everything else worked. thanks!
Fantastic!
The best instructions so far!
The only things I would add is you might first need to add GCC, MAKE etc for the compilation.
All of which is a cinch with yum - yum gcc etc - all one line commands available on the net.
Finally, the .so file might not get installed in the default php/modules folder
And you can't change extensions_dir like it says in freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module because then none of the other extensions work including mysql.
I found that moving the uploadprogress.so file to the default extensions folder in php.ini works just as well.
One simple change
This worked great for me on my minimal FC13 install after adding gcc, make, and php-devel as the other people said.
You don't have to restart apache, just reload: /etc/init.d/httpd reload OR service httpd reload
:)
I struggled for a long time with this, but the above worked perfectly; thanks!
PECL installation with some nice screenshots
hi there! I had some problems with the installation so blogged the solution in the hope it helps others.
http://www.badzilla.co.uk/Installing-PHP-PECL-uploadprogress-Extension-o...
How to enable PECL uploadprogress extention in MAMP
I'm running MAMP on Snow Leopard (Mac OS X), and I'm not familiar with the command line Terminal interface. After doing some searching and trial/error, I discovered the following solution to be incredibly easy, fast, and simple:
http://duvien.com/web-development/development-tools/installing-uploadpro...
I didn't read the whole thread but...
Here's a script that I found for making a custom php.ini on a DreamHost shared server. http://sxi.sabrextreme.com/forum/viewtopic.php?id=2
I made a mistake along the way and was having trouble figuring it out. This fixed it for me in a hurry. Highly recommended. :)
One more how to on how to
One more how to on how to compile PECL extension under MAMP Leopard and Snow Leopard. The article also provide precompiled drop versions of uploadprogress to be used on OS 10.5 and 10.6. http://smbjorklund.no/how-enable-pecl-uploadprogress-extention-mamp
@steinmb
@steinmb
1&1 shared hosting or managed server
this article helped me a lot:
http://jheslop.com/2009/05/27/adding-pecl-uploadprogress-to-11-shared-ho...
here is my working solution:
extension_dir = /kunden/homepages/foo/foo/htdocs/extensions
extension = uploadprogress.so
osx 10.6
Was looking for this too, if you have macports installed and apache2/php5 then the following seems to work fine
sudo port install php5-uploadprogress
remember to restart your apache
thanks
luke
Multi-site: one indicates UploadProgress, other does not
I have a multi-site setup with 2 sites (so far) upgraded from D6 -> D7.25.
Both share the same Apache installation, and same PHP (php.ini, etc).
One status report indicated UploadProgress was enabled, the other did not.
The obvious solution, which took more time than it ought to have to find: module "File" was only enabled on one of the sites. Enabling on both gave PECL UploadProgress on both.
Maybe someone can learn from my experience...
No Shell
I would like to install PECL on my hosted site. But I do not have shell access to it.
Is there any way to installmit via FTP?
=-=
before you attempt anything like that you should check with the host. If they don't allow it, it won't matter how you get it up on the site, it won't work. Many shared hosts don't support PECL extensions or one sort or another. However, those that do are likely to allow installation from cpanel/hosting panel.
PECL on Hosting Priveer via FTP
I already spoke with them.
They don't provide it. But I am welcome to install it.