UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Webmaster Discussion

Reply
 
Thread Tools Rate Thread Display Modes
Old 28th November 2006, 01:17 PM   #1 (permalink)
scoopdbc
Junior Member
 
Join Date: Jul 2004
Location: Cardiff
Posts: 17
how to unzip a tar.gz file

Hi

I have uploaded a tar.gz file to my site via the control panel not an FTP program

I need to extract it.

the instruction manual says
Quote:
If your server is UNIX-based and you can access it via FTP and use the terminal mode:
Does anyone know how I can extract this file. I have searched about and found references to using another program called putty, but isn't there a direct way I can unzip it via the control panel?

D
scoopdbc is offline   Reply With Quote
Old 28th November 2006, 02:23 PM   #2 (permalink)
TygerTyger
Lumberjack and OK
 
Join Date: Aug 2004
Posts: 817
http://www.linuxhelp.net/newbies/#unzip

You can use putty, but you need to use it's command line after logging into your server. Remember, # in the login name, not @.
TygerTyger is offline   Reply With Quote
Old 28th November 2006, 02:31 PM   #3 (permalink)
Samizdata
Virtual Dilettante
 
Join Date: Nov 2006
Location: Planet Earth
Posts: 172
Quote:
Originally Posted by scoopdbc
I have uploaded a tar.gz file...I need to extract it.
The normal method is to use SSH - there is a UH tutorial on this (6.7)

On Mac OSX you would connect using Terminal then enter this command:

Code:
tar xzf whatever.tar.gz
If you are on Windows you can either read the UH tutorial, Google the instructions or phone Microsoft support and ask for Bill...
Samizdata is offline   Reply With Quote
Old 28th November 2006, 02:33 PM   #4 (permalink)
scoopdbc
Junior Member
 
Join Date: Jul 2004
Location: Cardiff
Posts: 17
thanks TygerTyger

I have just come across this!

I logged in fine but can't seem to point it at the directory files

Just had a look at the info you directed me to and listed the directories

the file I need is in mainwebsite_html the directory is shop and i need to unzip a file in it

excuse my ignorance but do i just need to type in

mainwebsite_html /shop/ tar -zxvf litecommerce.tar.gz

D
scoopdbc is offline   Reply With Quote
Old 28th November 2006, 02:44 PM   #5 (permalink)
rsawchuk
Registered User
 
Join Date: Jun 2003
Location: Alberta, Canada
Posts: 86
The way I do it is:

cd mainwebsite_html/shop {to change directory}
ls {list to check my file is in this directory}
tar -zxvf litecommerce.tar.gz

Russ
rsawchuk is offline   Reply With Quote
Old 28th November 2006, 03:08 PM   #6 (permalink)
scoopdbc
Junior Member
 
Join Date: Jul 2004
Location: Cardiff
Posts: 17
Quote:
Originally Posted by rsawchuk
The way I do it is:

cd mainwebsite_html/shop {to change directory}
ls {list to check my file is in this directory}
tar -zxvf litecommerce.tar.gz

Russ
Awesome Russ, its just unzipped it, many thanks.

(I am going to lie down now, my brain hurts !)
scoopdbc is offline   Reply With Quote
Old 28th November 2006, 05:00 PM   #7 (permalink)
TygerTyger
Lumberjack and OK
 
Join Date: Aug 2004
Posts: 817
Yes, intuitive is not a word I would use to describe command lines.
TygerTyger is offline   Reply With Quote
Old 28th November 2006, 05:19 PM   #8 (permalink)
jmc
Registered User
 
Join Date: Jan 2004
Location: Hartlepool, UK
Posts: 155
I use a prog called WINSCP3 for ssh access, ftp and unzipping of tar.gz files directly on the server. It's a Win Explorer-type environment, which I find very easy and straightforward to use.
Just wondered whether putty et al were "better" to use? Or is it simply down to users preferences/command line knowledge???
John Mc
jmc is offline   Reply With Quote
Old 29th November 2006, 08:10 AM   #9 (permalink)
tonywebdesign
Registered User
 
tonywebdesign's Avatar
 
Join Date: Feb 2004
Location: Manchester, UK
Posts: 285
Send a message via MSN to tonywebdesign
On a side note: You may run into problems if you FTP then unzip files on the server - I am fairly certain that if the server unzips the file then the server "owns" the files and you will have a hard time editing them or replacing them via FTP (which logs in as a user).
I have seen this happen in the past on other servers but I am not 100% sure how it works with UH & Ensim?
tonywebdesign is offline   Reply With Quote
Old 29th November 2006, 10:09 AM   #10 (permalink)
TygerTyger
Lumberjack and OK
 
Join Date: Aug 2004
Posts: 817
I don't recall having had any trouble uploading via FTP then unzipping via SSH.
TygerTyger is offline   Reply With Quote
Old 29th November 2006, 10:55 AM   #11 (permalink)
Adam
mmmm I LOVE Apples ;)
 
Adam's Avatar
 
Join Date: Nov 2005
Location: My House
Posts: 1,462
Send a message via AIM to Adam Send a message via MSN to Adam Send a message via Yahoo to Adam
Quote:
Originally Posted by TygerTyger
I don't recall having had any trouble uploading via FTP then unzipping via SSH.
never had a problem with it!!
Adam is offline   Reply With Quote
Old 29th November 2006, 05:50 PM   #12 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
Servers here won`t have a problem with permissions becuase your acocunt admin user has super privileges over all files and this is what you typically use for ftp and ssh

As for the server process reading it this can also read any file under you file structure.

The problem only occurs when apache is configured as an un privilged user for security reasons on insecure systems. UH use a CHROOT system for its security and this is by far the best and easiest to use. Not sure how easy it is to configure though.

Simon
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Old 3rd June 2008, 02:00 PM   #13 (permalink)
AndyRoberts
Registered User
 
Join Date: Jun 2008
Posts: 4
Reviving an old thread whilst looking for a simple way to upload and unpack lots of WordPress plugins.

I'm hoping to find a Control Panel File Manager that lets me upload and unpack through a gui. Is there such a thing at this hosting service please?
AndyRoberts is offline   Reply With Quote
Old 3rd June 2008, 02:24 PM   #14 (permalink)
TygerTyger
Lumberjack and OK
 
Join Date: Aug 2004
Posts: 817
You could use something like 7-zip or Peazip to unpack them before uploading.
TygerTyger is offline   Reply With Quote
Old 3rd June 2008, 02:34 PM   #15 (permalink)
AndyRoberts
Registered User
 
Join Date: Jun 2008
Posts: 4
Quote:
Originally Posted by TygerTyger View Post
You could use something like 7-zip or Peazip to unpack them before uploading.
Back to the days of uploading via FTP then is it.
AndyRoberts is offline   Reply With Quote
Old 3rd June 2008, 04:23 PM   #16 (permalink)
UH-Tony
Senior Server Administrator
 
UH-Tony's Avatar
 
Join Date: Mar 2006
Location: Houston, TX USA
Posts: 489
An easy alternative if you need something unzipped after uploading it to your site would be to simply send in a support request telling us the site and where the zip (or .tar.gz) is located and ask us to extract it for you.

We'll be happy to do the grunt work via SSH to save you some trouble.
__________________
.
Tony
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Tony is offline   Reply With Quote
Old 3rd June 2008, 08:09 PM   #17 (permalink)
percepts
Senile Member
 
percepts's Avatar
 
Join Date: Mar 2005
Posts: 966
in php you can unzip a .gz file simply with the command

exec("gzip -d myfile.gz");

so I suspect, although I haven't tried it, you can do the same with tar files using:

exec("tar -zxvf myfile.tar.gz");


give it a whirl and see what happens....
__________________
An old dog learning new tricks
percepts is offline   Reply With Quote
Old 3rd June 2008, 08:22 PM   #18 (permalink)
UH-Tony
Senior Server Administrator
 
UH-Tony's Avatar
 
Join Date: Mar 2006
Location: Houston, TX USA
Posts: 489
Yes percepts you are correct that setting up a small PHP script like this would work perfectly well.

Unfortunately, doing this may seem a bit advanced for some users who would seek a solution outside of SSH. For those users, I would still suggest requesting assistance from our support desk.

ps. Thanks percepts though for providing a nice trick for the large amount of users who would not find your suggestion daunting however!
__________________
.
Tony
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Tony is offline   Reply With Quote
Old 3rd June 2008, 11:08 PM   #19 (permalink)
percepts
Senile Member
 
percepts's Avatar
 
Join Date: Mar 2005
Posts: 966
I tried it and it works like a charm. Very simple and much easier than pratting about with SSH. (Well it is for a non NIX person). Very fast too.
__________________
An old dog learning new tricks
percepts is offline   Reply With Quote
Old 3rd June 2008, 11:40 PM   #20 (permalink)
desquinn
Senior Member
 
Join Date: Dec 2005
Location: Paisley
Posts: 317
other option is to use winscp and let it do the coy and then right click on the file and extract it on the server

WinSCP :: Free SFTP and FTP client for Windows
desquinn is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 02:02 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309