1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to extract .rar in cPanel?

Discussion in 'Site & Server Administration' started by zuly, Apr 18, 2009.

  1. #1
    hello, i have a .rar file that i want to extract but i can't, the extract popup shows up and just stays there, what can i do extract it?

    I wanna ask before i involve my host....
     
    zuly, Apr 18, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    By default its not possible if unrar is installed on the server i think u can do it through php or ssh commands.. Shared hosting i doubt its possible atleast rite now
     
    Bohra, Apr 18, 2009 IP
  3. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #3
    do you know the script that could do the extract?
     
    zuly, Apr 18, 2009 IP
  4. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #4
    google 7zip, its an extraction program you use on your computer.
     
    sawz, Apr 18, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    If u can ask ur host tell them too do this http://in2.php.net/rar then rar will work with php

    Once its done u can use codes like

    <?php
    
    $rar_file = rar_open('example.rar') or die("Failed to open Rar archive");
    
    $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("Failed to find such entry");
    
    $entry->extract('/dir/to'); // create /dir/to/Dir/file.txt
    $entry->extract(false, '/dir/to/new_name.txt'); // create /dir/to/new_name.txt
    
    ?>
    
    Code (markup):
     
    Bohra, Apr 18, 2009 IP
    zuly likes this.
  6. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #6
    thanks for your help, i will see if they will do it, but i doubt that they will, but thanks anyway it's good to know these things, rep added.
     
    zuly, Apr 18, 2009 IP
  7. saecreative

    saecreative Banned

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    @Bohra

    nice tips.
     
    saecreative, Apr 23, 2009 IP
  8. Atulya

    Atulya Guest

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I think it is not possible to extract the .rar file in c panel. But, if you have ssh access means from there you extract the .rar file.
     
    Atulya, Apr 24, 2009 IP
  9. JLPHOST

    JLPHOST Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #9
    Unzip it on PC and transfer the files in Filezilla
     
    JLPHOST, Aug 16, 2015 IP
  10. ebizzme932

    ebizzme932 Member

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #10
    why not u download to PC and unzip using 7zip?
     
    ebizzme932, Oct 1, 2015 IP
  11. newHOST

    newHOST Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #11
    If your shared hosting provider won't unrar the file, you can convert it to .tar.gz with 7zip.
    Also its a pretty useful free tool for archives of all kinds.
     
    newHOST, Oct 2, 2015 IP
  12. Abelo

    Abelo Active Member

    Messages:
    75
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    50
    #12
    If you need to upload or download files from your web hosting, one of the best programs out there is called: FileZilla. You need to login using your FTP details (the IP of your shared server, cPanel username, cPanel password), and it immediately gives you access to your web files. The program displays 2 screens: one of your computer, and one of your web server. This gives you an easy overview and functionality of being able to upload and/or download files.

    You can extract your .rar file inside a map on your computer and upload those files directly to your web server.
     
    Abelo, Oct 3, 2015 IP
  13. fawwad

    fawwad Active Member

    Messages:
    111
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #13
    upload .zip file not .rar in to the file manager (public_html) then extract it. it will extract. proven method. i have done many times. after extract you can move folder's files to any other folder. if you don't know how to convert folder to .zip then install winrar .. right click on folder -> add to archive -> select .zip format. its done. thanks
     
    Last edited: Oct 3, 2015
    fawwad, Oct 3, 2015 IP