|
28th November 2006, 01:17 PM
|
#1 (permalink)
| | 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 |
| |
28th November 2006, 02:23 PM
|
#2 (permalink)
| | 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 @. |
| |
28th November 2006, 02:31 PM
|
#3 (permalink)
| | 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... |
| |
28th November 2006, 02:33 PM
|
#4 (permalink)
| | 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 |
| |
28th November 2006, 02:44 PM
|
#5 (permalink)
| | 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 |
| |
28th November 2006, 03:08 PM
|
#6 (permalink)
| | 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 !)  |
| |
28th November 2006, 05:00 PM
|
#7 (permalink)
| | Lumberjack and OK
Join Date: Aug 2004
Posts: 817
| Yes, intuitive is not a word I would use to describe command lines. |
| |
28th November 2006, 05:19 PM
|
#8 (permalink)
| | 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 |
| |
29th November 2006, 08:10 AM
|
#9 (permalink)
| | Registered User
Join Date: Feb 2004 Location: Manchester, UK
Posts: 285
| 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? |
| |
29th November 2006, 10:09 AM
|
#10 (permalink)
| | Lumberjack and OK
Join Date: Aug 2004
Posts: 817
| I don't recall having had any trouble uploading via FTP then unzipping via SSH. |
| |
29th November 2006, 10:55 AM
|
#11 (permalink)
| | mmmm I LOVE Apples ;)
Join Date: Nov 2005 Location: My House
Posts: 1,462
| 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!! |
| |
29th November 2006, 05:50 PM
|
#12 (permalink)
| | Dedicated to life!
Join Date: Jul 2005 Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
| 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 |
| |
3rd June 2008, 02:00 PM
|
#13 (permalink)
| | 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? |
| |
3rd June 2008, 02:24 PM
|
#14 (permalink)
| | Lumberjack and OK
Join Date: Aug 2004
Posts: 817
| You could use something like 7-zip or Peazip to unpack them before uploading. |
| |
3rd June 2008, 02:34 PM
|
#15 (permalink)
| | Registered User
Join Date: Jun 2008
Posts: 4
| Quote:
Originally Posted by TygerTyger 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. |
| |
3rd June 2008, 04:23 PM
|
#16 (permalink)
| | Senior Server Administrator
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. |
| |
3rd June 2008, 08:09 PM
|
#17 (permalink)
| | Senile Member
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
|
| |
3rd June 2008, 08:22 PM
|
#18 (permalink)
| | Senior Server Administrator
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. |
| |
3rd June 2008, 11:08 PM
|
#19 (permalink)
| | Senile Member
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
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |