zip binary problem

paullv

Joined: 2005-02-24
Posts: 22
Posted: Wed, 2005-03-09 16:45

I have download zip and unzip dlls from info-zip, i place it in a folder, and do config at g2 admin, enter path in zip download setting, it comes "Unable to create a zip file from this binary", where can i download usable zip/unzip dlls for G2 in windows?

----

Gallery URL (optional):
Gallery version:G2 - gallery2_03-07-2005
Webserver (with version):Apache 2
Datatabase (with version):Mysql 4.1
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:win 2k
Web browser/version:firefox 1.0
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-03-09 16:48

try using zip from a command prompt and make sure it works.

 
crux

Joined: 2002-12-06
Posts: 61
Posted: Wed, 2005-03-09 19:34

take a look at my post:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27184

use the manual command listed in the post. If the error is like the one I got, I included the solution. If it's not, past whatever error you get in this topic.

 
paullv

Joined: 2005-02-24
Posts: 22
Posted: Sat, 2005-03-12 09:04

I try the DOS version and 98/NT version of zip and unzip, all fail!

I also try using it at command prompt and zip file was created.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sat, 2005-03-12 11:40

did you allow ISuser to "execute" it?

 
ClimbingMonkey

Joined: 2005-03-18
Posts: 62
Posted: Fri, 2005-03-18 21:59

I am also having this same problem. I'm running 2003 Server, IIS 6, Php 4.3.10, and MySQL 4.1.10. I have a totally stock install of Gallery2 that I grabbed from CVS.

I have also downloaded the necessary zip and unzip exe's and placed them in my "data" directory. (as per another post) I have given "Everyone" full permissions on this dir and the exe's, and they work perfect from the command line. I have also tried giving the various IIS accounts full perms as well with no luck.

When I put the full path (E:\Inetpub\Gallery\data\zip\zip.exe) I get the "Unable to create a zip file from this binary" message. Is this a issue with Windows platforms maybe? I'm at a loss and would appreciate any guidance.

Thanks, and this is my first post to these boards... :)

 
jrandall

Joined: 2005-03-15
Posts: 5
Posted: Sat, 2005-03-19 03:17

maybe its an issue with the zip exe, i downloaded one earlier that didnt work correctly.

see this post and look at the bottom for which file i used.

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27606

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-03-19 22:03

I just committed some code that will show you the debug output when it tries to test the zip binary. Get the next nightly and try again, then cut/paste the debug output you see in here and we'll figure it out.

 
ClimbingMonkey

Joined: 2005-03-18
Posts: 62
Posted: Sat, 2005-03-19 23:59

jrandall - I do have the 132kb exe... I saw that post as well :)

bharat - Okay, I'll grab the latest from CVS tonight and post the results here. Oh and normally I would have tried to check the logs etc but I play in the shallow end of the pool when it comes to php and MySQL. Thanks, and I will follow up on this tonight or Monday.

 
ClimbingMonkey

Joined: 2005-03-18
Posts: 62
Posted: Mon, 2005-03-21 20:28

Here's my debug...

Executing: cmd /c " "E:\Inetpub\Gallery\data\zip\zip.exe"
"e:\inetpub\Gallery\data\tmp\zip17A.tmp.zip"
"e:\inetpub\wwwroot\gallery\modules\zipcart\Admin.inc" 2>
"e:\inetpub\Gallery\data\tmp\g2d17B.tmp" "
file_exists(e:\inetpub\Gallery\data\tmp\g2d17B.tmp)
filesize(e:\inetpub\Gallery\data\tmp\g2d17B.tmp)
unlink(e:\inetpub\Gallery\data\tmp\g2d17B.tmp)
Regular Output:
Error Output:
Status: -1 (expected 0)

Looks to me to be a perm issue on the tmp dir... I bet the IIS user needs exe privs on the tmp folder. I will apply necessary perms and update this post.

Update: no dice on the permissions change. the tmp folder is essentially created by the iis user for gallery2. and hence full perms. a 777 in *nux land. I also moved the exe's to the tmp dir with no luck, and allowed script s AND executables in my IIS setup. no luck ther either...

-m

 
holziusa

Joined: 2004-02-09
Posts: 1
Posted: Mon, 2005-03-28 16:29

zip/unzip issue
what is the version number i am to use with winxp, looking here
http://www.info-zip.org/pub/infozip/UnZip.html
there are many different versions and no one is referring to the one that works
by name
creating a unzip and zipinfo directory what are the files to be located
in each folder by excact name and version?

specs are
winxp
g2