Total n00b Zip Download help

nefarious

Joined: 2005-09-29
Posts: 23
Posted: Thu, 2005-09-29 22:47

I dled the zip package from http://www.info-zip.org/pub/infozip/Zip.html and unpacked it. The only thing is that I dont have any of the programs they mention in order to compile the package. Im running windows XP. I tried to dl cywgin (I dont think I spelled it right) and it didnt dl and intall. I do know that we do have to upload the dir with the compiled files to the webroot but does it matter where I upload them to? Now, when we activate the zip download module thru the gallery, do we put the path we uploaded the files to there? Also, if anyone can get me the compiled packages, that would be great. Thanks.

Victor
Gallery version (not just "2"): The latest available on this site.
PHP version (e.g. 4.3.11): 4.3.11
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Linux/apache
Database (e.g. MySql 4.0.11): same
Activated toolkits (e.g. NetPbm, GD): imagemagic
Operating system (e.g. Linux): linux
Browser (e.g. Firefox 1.0): IE
--
For migration issues:
G2 URL (optional): http://www.hbunnyclan.com/modules.php?name=gallery2
G2 version:
G1 URL (optional):
G1 version:
G1 character set:
PHP memory limit:
[/size]

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2005-09-30 04:01

Does your Linux server not already have the zip and unzip binaries on it?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
peter_k

Joined: 2005-09-15
Posts: 134
Posted: Fri, 2005-09-30 11:24

2 steps: config archive module and upload zipfile:

(1) The path you put in the config of the "zip archive" module is the path of the unzip binary on your server. Often it is: /usr/bin/unzip. If you click "test settings", and it fails, you should ask the path to your hosting provider (or check on the machine yourself, if you've access). If it passes, the module is active.

(2) This path is *not* the directory where you have to put the actual zip files you want to upload. For this you use the same upload method as for a normal image file (you choose one of the three methods that suits you best), and G2 will recognize the zip extension, and unzip and add the contents to your album (I read on the forum that it's better not to use a directory structure in the zip files; just a plain zip is best).

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Sat, 2005-10-01 14:53

Thanks for the response.

nivekiam, I am not sure if the linux server has the zip binaries on it. I just emailed my hosting providers and asked them that question. I am using godaddy.com.

peter_k, I tried using /usr/bin/unzip but that folder doesnt exist. I already sent an email to my hosting provider (godaddy.com) to find out the full path. As far as step 2, im not trying to upload zip files to be displayed on my gallery. What im trying to do, is allowing users to download albums in zip format. When they choose album/image they like, the add it to the cart then it gives them the album/file in a zip file. With that said, do I still need to upload any sort of zip files to my hosting account? Thanks in advance.

 
peter_k

Joined: 2005-09-15
Posts: 134
Posted: Mon, 2005-10-03 08:17

nefarious, I only know something about the zip upload module. Never tried the zip cart download module.

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Tue, 2005-10-04 21:27

Thanks peter. nivekiam, I contacted godaddy and they say they dont support zip binary exceutables so they didnt want to give me the path. Is there anyway I can install it on my hosting account and then call if from gallery2?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2005-10-05 02:41

Maybe try the pre-built binaries: http://www.info-zip.org/pub/infozip/UnZip.html#Binaries

Put them into your account somewhere Apache can access them and chmod them to 755. I dunno, never needed to install zip binaries on a Linux box.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Fri, 2005-10-07 23:16

I dled the prebuilt biaries and uploaded them to the server in the webroot path. Chmoded them to 755. put the path in the zipcart module as /zip/ then as home/v/j/g/vjg2000/zip and no luck with either. Im assuming I dont have to do anything to the prebuilt binaries but upload them. There is another guy that got the zip path to work on the godaddy account but he hasnt been on since last year (ive read all the forums pertaining to zip cart and to godaddy hosting). I dont want to have to get another hosting account since I already prepaid for this one. Dont know what else to do. Can we maybe contact each other via aim or yahoo. My aim name is sanchotcg and my msn/yahoo are vjg2000. Any other info would be greatly appreciated.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2005-10-08 02:23

Sorry, I don't do support outside these forums. I also don't host with nor will I ever host with Godaddy. I use them as a registrar and that's it. I don't agree with their hosting TOS and they don't offer SSH so I'll never host with them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Sat, 2005-10-08 03:04

SSH = Shell access? This may be a stupid question (and when they start with that title, they usually are) but I read that you had to compile the ready to run binaries (which doesnt seem like they are really ready to run). Is there anyway I can compile those, or the none "ready to run" binaries with cywgin? Thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2005-10-08 03:33

If it's already a binary then there's no compiling needed. You'd need the source to compile. I don't know if there's a way to compile via cywgin.

I've never had to worry about zip binaries as my host has them freely available.

I tried a little php script:
<?php
echo exec('whereis zip');
?>

But all it retuned on my host is zip: I'm not a PHP expert so I don't know how to handle the full output from whereis as it should've been something like zip: /usr/...../zip
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Sat, 2005-10-08 04:02

I tried /usr/bin/zip but zip isnt availble in the bin directory. It isnt even a option. I guess my best bet is to either call them and speak to the directly or to upgrade to a virtual dedicated server (which Im planning on doing anyway). IM going to call them before I do that cuz I dont want to upgrade if that option isnt available. What do you think?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2005-10-08 06:31

I already gave my opinion, I won't use GoDaddy for hosting for my own reasons. You do what you want :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2005-10-08 07:40

You should be just fine uploading zip and unzip to your hosting account, just like you uploaded the netpbm and/or IM binaries right? Typically, I create a "bin" directory one below the document root, inside this "bin" directory I put the netpbm, zip, unzip, jhead and various other binaries. In *YOUR* example, both of the paths are wrong. "/zip/" is obviously not a full system path" and "home/v/j/g/vjg2000/zip" is much closer but still obviously wrong. I would *GUESS* that "/home/v/j/g/vjg2000/zip/zip" or "/home/v/j/g/vjg2000/zip/unzip" is more likely to be the right path, assuming you've gotten it close.

GoDaddy sucks, find a host that is known to work well with G1/G2. For interesting reading, search the forums for "GoDaddy" to see some of the many G1/G2 issues they have. I use G2 just fine on a $8/mo dreamhost account, so there isn't any reason you need a "virtual dedicated" or "virtual private" server unless you are doing some virtual-hoss webhosting. Real hoss would require a real server.

Signature: Like Gallery? Appreciate my help? Think I'm an asshole? Make your point by donating to the Gallery project! Or maybe just visit my website.

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Sat, 2005-10-08 17:00

fryfrog, whats the diff between home/v/j/g/vjg2000/zip and /home/v/j/g/vjg2000/zip/zip ? are you saying I should create an additional zip folder with in the zip folder I already created and place the binaries in there? I did that and I get the same error "path you enetered is not valid or is not excecutable. I know its valid. Why isnt it executable? Any help would be great.

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Sun, 2005-10-09 06:32

fryfog, it stopped giving me the errors "the path you entered is not valid or is not excecutable" and is giving me another error (which may be progress). This is the error it gives me now: Unable to create a zip file from this binary

Debug output:

copy(/home/content/v/j/g/vjg2000/html/modules/gallery2/modules/zipcart/ZipCartAdmin.inc,
/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/zip_pdlIYF)
Executing: ( "/home/content/v/j/g/vjg2000/html/bin/zip/zip.exe"
"/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/zip_pdlIYF.zip"
"/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/zip_pdlIYF"
)
2>/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbgZvhHFZ
getParameter exec.expectedStatus for core plugin
file_exists(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbgZvhHFZ)
filesize(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbgZvhHFZ)
fopen(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbgZvhHFZ,
r, 0)
feof(Resource id #77)
fgets(Resource id #77, 4096)
feof(Resource id #77)
fgets(Resource id #77, 4096)
feof(Resource id #77)
fclose(Resource id #77)
unlink(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbgZvhHFZ)
Regular Output:
Error Output:
sh: /home/content/v/j/g/vjg2000/html/bin/zip/zip.exe: /lib/ld-linux.so.1:
bad ELF interpreter: No such file or directory
Status: 126 (expected 0)

This error is produced by using zip package zip23x-libc5

but if I use package zip231xN, I get the following error.

copy(/home/content/v/j/g/vjg2000/html/modules/gallery2/modules/zipcart/ZipCartAdmin.inc,
/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/zip_A6JFLY)
Executing: ( "/home/content/v/j/g/vjg2000/html/bin/zip/zip.exe"
"/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/zip_A6JFLY.zip"
"/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/zip_A6JFLY"
)
2>/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbg0QN3Ow
getParameter exec.expectedStatus for core plugin
file_exists(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbg0QN3Ow)
filesize(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbg0QN3Ow)
fopen(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbg0QN3Ow,
r, 0)
feof(Resource id #77)
fgets(Resource id #77, 4096)
feof(Resource id #77)
fgets(Resource id #77, 4096)
feof(Resource id #77)
fclose(Resource id #77)
unlink(/home/content/v/j/g/vjg2000/html/modules/gallery2/g2data/tmp/g2dbg0QN3Ow)
Regular Output:
Error Output:
sh: line 1: /home/content/v/j/g/vjg2000/html/bin/zip/zip.exe: cannot
execute binary file
Status: 126 (expected 0)

Which one is closer to the solution/right path and what do I need to do from here?

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Mon, 2005-10-10 04:04

Solved the issue. Me in my n00bness was putting .exe at the end of the zip file as you can see above. I tried it without the zip files (I was sure it was going to fail but did it anyway cuz I was frustrated) and voila. It worked. That is so awesome. Thans for all your help guys.

 
nefarious

Joined: 2005-09-29
Posts: 23
Posted: Mon, 2005-10-10 16:17

Well the path worked. the zip option is availble in the add to cart. When you add to cart, on the quantity, it shows 2 (even after I empty the cart and try again). And when you click "go" to download, it goes to a page where it says the "your cart is empty" but it doesnt download anything. Any thoughts on this?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2005-10-10 19:35

I don't think that problem is related. Try clearing all the cache (web browser and in G2) and your browsers cookies.

If that doesn't work create a new topic.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here