Zip Download Module/pgTheme - Not working - Is it exec issue?

Kevin Logan
Kevin Logan's picture

Joined: 2006-07-06
Posts: 51
Posted: Sun, 2008-03-23 18:20

Trying to get the Zip Download module working, been trying all day. Have path correct to my binaries, have correct binaries (Unix/linux). What I consistently get is "Unable to create a zip file from this binary".
Have read tons of posts on this module, but no joy yet.
I checked my error log and got this:
PHP Warning: exec() has been disabled for security reasons in /home/*****/public_html/gallery2/modules/core/classes/GalleryPlatform/UnixPlatform.class on line 86
A bit confused about one thing (actually many). G2 Sys info is reporting my server is running PHP 4.4.7 cgi, while my Zencart server info (same server) reports PHP Version: 5.2.5 (Zend: 2.2.0). But my Zencart server info also says that shell_exec & exec are disabled. Is this my problem?
If I need access to shell_exec and/or exec for Zip Download to work, is there a workaround, say an .htaccess edit?

New Question: Zip Download Admin, as I slowly type the path (e.g. /usr/bin/zip), are the drop down "paths" that G2 displays an indicator of stuff that actually EXISTS on my server, or is the drop down list merely a list of paths that it HOPES exists? This could help me communicate with my server company, because as I type the path /usr/bin/, ZIP is displayed in the drop-down list, which IF the drop down list is actually displaying stuff that is THERE, then it may just be a permissions issue, i.e. 755
Thanks again,
Kevin

Thanks for reading,
Kevin

Update: All dressed up & nowhere to go, work so far: http://kevinlogan.com/gallery2/v/bits/bball/
What I am working towards is utilizing the cart/zip module for only a download module. I myself use the ZenCart module developed now by Dayo & Chuck Redman (originally Torrance?). In my site, most, almost all of my photos are for sale, and I love the flexibility of ZenCart. That said I do often shoot events, parties etc. for friends, etc., and I have always "posted" the photos for download as a means of sharing. However, it's a pain in the butt to right-click & save each photo, hence my desire to utilize the zip download module/cart mod. Well, I have it all done, pretty straight forward stuff, various edits, but I still can't get the zip-download mod to work :(
FWIW, if anyone else wants to do the same, i.e. use the cart for downloads only, I edited (best I can remember anyway, dang I wish I kept notes):
1. navigatorTop.tpl of my PGtheme (for the alt texts of the cart icons, everywhere it said item(s) in cart, changed to photo(s) in basket)
2. modules/cart/modules.inc for several word phrase changes (cart to basket, lines 146,149). I think it's important to note here that I keep all actions off that create a drop down menu above/below the photo, and remove (album/edit album/permissions) the zencart permissions from these "download" galleries, and add the cart permission on the download galleries.
3. modules/cart/templates/ViewCart.tpl for the copy actually in the cart, the headline, etc.. Also here I changed the dropdown "actions" menu next to the GO button.
4. My ZenCart "cart icon" is determined & named in my Theme stylesheet. I WAS using the standard cart icon from the colorpack, but I created a unique zencart.gif cart icon, and then edited the add_cart.gif, add_carton.gif, view_cart.gif & view_carton.gif icons. I figured this was easier than finding all the code, but 6 or 1/2 dozen the other I suppose. Also I made sure that the icons were active in Theme settings. I don't know if this is all possible across other themes, but again, I am using PGtheme.
Anyway, I think that's it. If I remember anything else, I'll update. Any questions, feel free to get in touch.
All the best,
Kevin


Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.7 cgi
Webserver = Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_ssl/2.8.30 OpenSSL/0.9.8b PHP-CGI/0.1b
Database = mysqlt 4.1.22-standard, lock.system=flock
Toolkits = Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux halo.estarr-7.com 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686
Default theme = PGtheme
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Rows in GalleryAccessMap table = 12
Rows in GalleryAccessSubscriberMap table = 98
Rows in GalleryUser table = 2
Rows in GalleryItem table = 96
Rows in GalleryAlbumItem table = 7
Rows in GalleryCacheMap table = 0

Kevin