To administer your WestHost account, please enter your
Domain Name or Server Manager Username.

WestHost: Professional Website Hosting Company








Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    4

    Default gunzip command does not work on my server, please help

    Hello

    I am a new westhost user working on Win2K system. In order to upload a large number of html files I compress these files into file.tar using 7-Zip, then use Win-GZ to gzip into file.tar.gz.

    However, When I use PuTTY with SSH commands:
    gunzip /var/www/html/file.tar.gz
    I get a server reply:
    gunzip: /var/www/html/file.tar.gz: not in gzip format

    What am I doing wrong? How can I tar these files on a Win2K system that can be decompressed by westhost server? I can not figure out, please help me solve this problem. Many thanks for your help.

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    The land of the nerds
    Posts
    102

    Default

    Try this command:

    tar -zxvf /var/www/html/file.tar.gz
    I am just a customer of WestHost trying to help others. I own Wikinerds.org and you can also see my personal homepage and my blog!

  3. #3
    Senior Member jalal's Avatar
    Join Date
    May 2003
    Location
    Germany
    Posts
    1,377

    Default

    nsc: that command will just call gunzip to do the unzipping and give the same error.

    erik: it seems that file.tar.gz is not in gzip format. I can't say anymore than that because I don't know where it came from. But if you are coming from Windows you can (I think, don't have Windows here) use a WinZip format to pack your files and then use unzip to unpack them:
    $ unzip files.zip

  4. #4
    Junior Member
    Join Date
    Feb 2005
    Posts
    4

    Default

    Thanks for your kind reply.

    nsc: Yes, still get the same error. I think it's not in gzip format. Following with the instruction of gzip.org I use free software(7-Zip and Win-GZ) to make this file.tar.gz. don't know where is wrong.

    jalal: I have used WinZip to pack the html files, then use the command:
    $ unzip test.zip
    Under PuTTY I get the information below:
    Archive /var/www/html/test.zip
    inflating: file1.html
    inflating: file2.html
    inflating: index.html

    However, nothing exist on server side. I also check the FTP and there is not any html file. Should I need type other commands to have these files really exist on server.

  5. #5
    Senior Member jalal's Avatar
    Join Date
    May 2003
    Location
    Germany
    Posts
    1,377

    Default

    No, you have done it, the files are unpacked from test.zip and now located at /var/www/html/

    As to why you don't see them... I'm not sure why that would be. Are you sure? Go on, check again, I'll wait here...

  6. #6
    Junior Member
    Join Date
    Feb 2005
    Posts
    4

    Default

    Still can't see these files, only a test.zip located at /var/www/html/

    Maybe unzip command doesnot work under SSH. I think I should open a ticket to verify. Thanks again jalal

  7. #7
    Senior Member jalal's Avatar
    Join Date
    May 2003
    Location
    Germany
    Posts
    1,377

    Default

    OK, if you find out anything that may help others, be sure to let us know here on the forums.

  8. #8
    Junior Member
    Join Date
    Feb 2005
    Posts
    4

    Default

    Finally the issue has been resolved. Thanks for westhost administrators. Your support is really good

    The information below is some ideas I want to share with you.

    First: for windows users who want to creat tar.gz files successfully I will recommend that you visit http://www.psychology.nottingham.ac....ff/cr1/gz.html . ezGZ works great on windows system that can compress tar.gz files without any problem.

    Second: If you want to uncompress tar.gz files through ssh, use the command: tar xvfz. However, you should firstly go to the directory that you want to unpact these files. Type cd /var/www/html/yourdirectory
    Then: tar xvfz yourtarfile.tar.gz
    You should find all files located at that directory. works great.

    Thanks

Similar Threads

  1. primary name server broken?
    By aberg in forum Domain names & DNS
    Replies: 2
    Last Post: 05-23-2007, 01:03 PM
  2. Manually installing webmail on Westhost
    By marysmithdesign in forum E-mail / FTP Management
    Replies: 10
    Last Post: 03-06-2007, 04:28 PM
  3. httpd.conf
    By Barbara Moore in forum Account Maintenance
    Replies: 5
    Last Post: 12-19-2006, 05:34 AM
  4. Replies: 2
    Last Post: 09-21-2006, 11:00 AM
  5. Replies: 0
    Last Post: 07-20-2006, 06:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •