Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Maybe I'm just retarded, but I've searched the issue queue and the PECL site and still can't figure out how to install the extensions. Is there any documentation?
Comments
Comment #1
quicksketchYeah it took me a while to figure it out also. I'm considering adding a handbook page, but it's really not Drupal documentation. Worse yet, there are several ways to install PECL extensions, and not all of them work on all servers. :P
Here's a basic resource: http://www.jellyandcustard.com/2006/01/19/installing-pecl-modules/
Of course that's just the first hit in http://www.google.com/search?q=install+pecl+extension :P
You need SSH (and probably root) access on your server to install pecl extensions.
Basically, run:
pecl install uploadprogress
, make sure the generated uploadprogress.so file is in the same place as the rest of your PHP extensions, then addextension=uploadprogress.so
to your php.ini file. If you don't have SSH access or the ability to modify your php.ini file, you'll need assistance from your hosting company.Comment #2
jdlind38 CreditAttribution: jdlind38 commentedhmm... thanks for the resources. I'll go give it a try...
Comment #3
psynaptic CreditAttribution: psynaptic commentedI just wrote a blog post about this: Installing PECL uploadprogress Extension for Drupal FileField 3.0 Module.
Comment #4
jdlind38 CreditAttribution: jdlind38 commentedThanks psynaptic! This made it a lot easier to understand...
Comment #5
IrishGringo CreditAttribution: IrishGringo commentedis this going to be an issue if using FUPLOAD or any of those modules that show upload status anyway? especially the FLASH based stuff?
Comment #6
quicksketchImage FUpload (or other Flash-based solutions) do not need the PECL library at all. Flash definitely is another way to solve the problem, but has limitations on the browser side. The user must have both JavaScript and Flash, and as far as I know, currently doesn't work on Opera or any Linux machines at all. The server-side solution is a little nicer in that it works on all platforms and doesn't require Flash and won't be broken by various ad-blocking software.
Comment #7
alexkb CreditAttribution: alexkb commentedHey people, I'm having a hard time getting the test script from the uploadprogress PECL extension working. I know i need to get this working before Drupal's is going to work.
I have it working on one web server, which is an XAMPP installation, but not working on another which is a CPanel server. I can see the PECL information in a phpinfo() report for both, so I know its loading ok.
Does anyone have any advice with regards to preparing CPanel servers for the PECL module. I've been told by a colleague, that the PECL module will only work properly when the php library is built into apache statically, rather then as a dynamically loaded library. The problem is, when i do a httpd -l (which lists compiled in modules), php doesn't show up for both, suggesting its loaded dynamically in both - so I'm a little stumped here.
Is there any special logging that might occur somewhere that might reveal the cause of the issues during the attempted use of the uploadprogress PECL test scripts?
Any advice anyone can give would be extremely helpful, cheers!
- Alex
Comment #8
antiorario CreditAttribution: antiorario commentedsubscribing
Comment #9
alexkb CreditAttribution: alexkb commentedJust an update on this: it seems that the issue I was having, was caused by the mod_security apache extension. It has been discussed here: http://pecl.php.net/bugs/bug.php?id=16954
Comment #10
FrancewhoaI wrote a how-to handbook for Ubuntu at http://drupal.org/node/793262
Other OS at http://drupal.org/node/793264
Comment #11
rootworkI've expanded the page that Francewhoa created (if someone with Documentation team privileges wants to replace that link to an image with the actual image, be my guest!)
I'm sure there's more that can be added as well -- can we consider building out this page and adding a link to it (instead of the PECL uploadprogress page itself on php.net) from the module's status message?
For instance, many people run Drupal in shared hosting environments. Given that installing this extension requires root access, it's useful to be told right away that if you don't have that, you probably can't install it. People following the link to the extension's page on php.net aren't going to realize that.
A possible feature request (I'll see how people react before creating a separate issue) would be to include some verbiage in the status message saying that these libraries require root access, and including a "dismiss this message" link, so that those in shared hosting environments can read it, realize there's nothing they can do about it, and not be bothered by it again. Thoughts?
Comment #12
rootworkOops -- meant to include the link to the handbook page that Francewhoa created -- it's here:
Install PECL uploadprogress
http://drupal.org/node/793264
Comment #13
quicksketchThis could be a good suggestion rootwork. I want to point out that in the 3.3 version of FileField, I downgraded the message from a "warning" to simply a "notice", even if you already have APC installed. This way it will no longer alert admins in any way or indicate that there is something wrong with their installation, since having the progress bar is clearly not a requirement for using FileField.
Comment #14
FrancewhoaThanks rootwork for updating the doc page. I have replaced the link with an image http://drupal.org/node/793264
Comment #15
quicksketchThanks rootwork and Francewhoa.