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
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.
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.
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.
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, Thanks alot! Contacting them , hope they reply me Can I do it in .htaccsess file ? Thanks again
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.
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