Jump to content

Recommended Posts

Posted

i know gzip is installed, but is regular zip installed? im on server 12, and I can't unzip a zip archive. there also isn't a man page for it.

 

the script im trying to install isn't provided with a gz archive, just a zip.

 

don't know if this is in the right topic either....

 

thanks,

chuck

Posted

Chucky,

 

Unzip the file on your local machine and then upload the contents. Or, if you have a Zip utility app that will create a gzip, then unzip the contents then rezip them into a gzip and upload.

Posted

GZIP & TAR are basic UNIX/LINUX utilities and formats for backing up and compressing files. TCH servers run LINUX as the operating system.

 

ZIP is a PC (Windows) based ZIP format. As such, there is no built in support for ZIP formats, or for unzipping zip files!

 

As Lianna says, unzip your files on your computer, then upload using either an FTP program or cPanels's File Manager.

 

-kw

Posted

Wow -- someone should slap my hand and tell me to check my advice first, before giving it. I had no clue that support for Windows ZIP format was included in versions of Unix/Linux. When I work with Unix, I only think of GZ.

 

(Note to myself: get your head out of your old 1970 vintage AT&T System V Unix book and learn more about Linux and RedHat and other flavors!)

 

;)

-kw

Posted

Just a little clearing: there's no such thing as "Windows ZIP" or "UNIX/Linux Zip".

ZIP is a compressed file format, it doesn't care what operating system you use as long as you have a program that knows how to read/write the ZIP format.

GZIP (GnuZIP) has builtin support for both GZIP (of course) and ZIP files - I'm not absolutely sure about this but I believe there are some differences between the two formats.

 

What's the meaning of all this? It means that it doesn't matter where the file was created as long as you have a program that knows how to read/write it. If you compressed it on Windows, you can decompress it on UNIX/Linux and vice-versa, as long as you have software that understands the format of the file you want to open or write to.

 

And this applies to every file format there is. There's no such thing as an operating system-specific file format, a file format that can only be opened under one Operating System.

To give you another example: MS Office files - people get really surprised when they hand me over some Word or Excel files and then see that I'm using Linux but open the files anyway. Some people have even asked me "What's that version of windows you're running?" and I explain them that it's not Windows. Then they ask me "Then if it's not Windows, how can you open those files?" and... well, I give them this explanation I'm writing here... :)

 

I hope this cleared things up a bit :)

 

BTW, the program I use to open MS Office files under Linux is OpenOffice.org -> http://openoffice.org

Which, by the way, I recommend to everyone, even Windows users who'd prefer to have something a little lighter than MS Office - OpenOffice.org full download weighs a little under 72 MB while MS Office... well, I don't think that anyone would even consider downloading it from the internet... :P ;)

Posted

borfast, good information, but I don't think anybody was confused about that. The answer was that you can't unzip .zip files in CPanel, because well of the above reasons given. Solution solved! Now everybody have a nice day..

 

;)

Posted

I'm on server 5. I zipped a single file on my PC (using WinZip 8.1), and FTP'd the file to my server, and could not 'show' or 'extract' contents of zip file. Message I got was:

 

File Type: Zip archive data, at least v2.0 to extract

 

-kw

Posted

bash-2.05a$ cd /usr/bin

bash-2.05a$ ls *zip*

bunzip2 bzip2 bzip2recover gunzip gzip

bash-2.05a$

 

 

bash-2.05a$ which unzip

/usr/bin/which: no unzip in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin)

bash-2.05a$

 

 

not there.. that's probally why :D

Posted

right....

 

which is why i asked if we could have it installed???

 

this thread is going in circles!

 

chuck

 

(BTW- my work around is to unzip it on my old webhost, which i have been to lazy to cancel, and then gzip it.......)

Posted

:D

Hey, if you still can't unzip on your server, please drop in a helpdesk ticket. Thanks.

 

(Chucky, are you getting dizzy yet from walking in circles? :( )

Posted

lianna-

 

still can't unzip command line nor can i extract via cpanel.

 

i opened a help desk ticket.

 

BTW, i completely forgot what i was trying to unzip!!!

 

chuck

Posted

So, in order to keep Chucky (and others) from going in circles ... let me summarize, and someone tell me if I'm wrong:

 

1. We should be able to "unzip" files (created by PKZip or WinZip) via cPanel's File Manager

2. If we are not able to get the unzip to work, we should submit a help ticket.

 

Correct?

-kw

Posted

Sorry for taking so long to resolve this issue, this thread has only just been brought to my attention via a support ticket.

 

After looking on our Linux servers, unzip and zip are not standard utilities that are installed when the operating system is installed. The reason probably being zip is a Windows format compression utility... and we know Windows and Linux don't like each other.

 

Anyway, FSUchucky3 did open a support ticket and I have satisified his request by manually installing unzip and zip programs onto server12. It also works correctly in the Cpanel file manager. I think another user in this thread has said it doesn't work on server5, well it should do now, I've just installed the same on server5 too.

 

If anyone else is needing to unzip a file, just open a support ticket and either myself or anothe tech will resolve it.

Posted
now can you help me remember what i was trying to unzip?

Lol, your wallet to get the credit card out? :D

 

No problem on the fast response... remember to open a ticket as that is always the fastest way to get something resolved.

Posted
I think another user in this thread has said it doesn't work on server5, well it should do now, I've just installed the same on server5 too.
I think it was KW.

I had tried it before and no good.

 

I just tried it on server 5,

and it works now, thanks

TCH Rocks

Posted

I've had the problem a few minutes ago (couldn't descompress .zip or gzipped files with cpanel), and the solution is to compress with gzip, WITH EXTENSION .gz (if not have this extension, is impossible in my case, it only shows the name of the contents)

  • 2 weeks later...
Posted

I've added zip to server 10 (since I've wanted it on my sites) and on server 26 at a user's request. As Alan mentioned, let us know if you need it on your server and we can get it working.

Posted (edited)

All servers now have the zip and unzip functions active through the cPanel. Might as well have it there when you need it. :)

Edited by Rickvz

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...