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.

A Problem in wget command...

Discussion in 'Apache' started by ARMK, Jul 14, 2010.

  1. #1
    Hello , I'm new in SSH commands.

    I'm trying to transfer my website using SSH.

    I've created afull backup via cPanel (backup.tar.gz)

    And I used this command ( wget ) to move the backup to my new account

    wget http://old-domain.com/backup.tar.gz 
    Code (markup):
    But I got this error :

    
    HTTP request sent, awaiting response... 406 Not Acceptable
    11:31:06 ERROR 406: Not Acceptable
    
    Code (markup):
    What should I do to make the backup acceptable ?

    Thanks in advance
     
    ARMK, Jul 14, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Make sure that you have moved the created backup on your old domain to a web accessible area, under the public_html folder, otherwise, it is not available to download via wget.
     
    RHS-Chris, Jul 14, 2010 IP
  3. ARMK

    ARMK Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Thanks for replying.

    The backup in this path '/public_hml/backup.tar.gz'

    And I'm still unable to download via wget neither via browser.
     
    ARMK, Jul 15, 2010 IP
  4. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #4
    By default cPanel set permission of the backup file as 600 which is the reason why you cannot download/wget it. From cPanel >> File Manager, set the permission of the 'backup.tar.gz' to 644 and you should be able to download the file immediately.
     
    madaboutlinux, Jul 15, 2010 IP
  5. ARMK

    ARMK Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    Yes, it was 600 and I already did it but nothing happend.

    Check out the attached files please.
     

    Attached Files:

    ARMK, Jul 15, 2010 IP
  6. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #6
    hmm.. "406: Not Acceptable" is the message received when Mod_Security is blocking the access. It is only your hosting company can help you out by disabling the specific rule for your account OR server wide for sometime till you download the file. You cannot do anything from your account.
     
    madaboutlinux, Jul 15, 2010 IP
  7. ARMK

    ARMK Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #7
    @ madaboutlinux, Thanks alot!

    Contacting them , hope they reply me :(

    Can I do it in .htaccsess file ?

    Thanks again :)
     
    ARMK, Jul 15, 2010 IP
  8. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #8
    Yes, if it's Mod security 1.x. Mod_Security 2.x can be disabled in the VirtualHost of the account and you need root access for it.

    However, follow the step 1 to disable/turn off Mod Security in .htaccess file.
     
    madaboutlinux, Jul 15, 2010 IP
  9. ARMK

    ARMK Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #9
    Ummm the problem was from my new hoster, he prevents me to use that commands

    So I have to download my files, adn reupload them manually :(

    Thanks for all
     
    ARMK, Jul 16, 2010 IP