Portal Home > Knowledgebase > Articles Database > Cannot download file: Forbidden

Cannot download file: Forbidden

Posted by NationHosts, 07-24-2008, 03:29 PM
I am having a large problem moving my sites over to another server. WHM is timing out transferring some large sites that are 4-16 gigs in size, so I tried to manually pkgacct and was able to get one of the accounts setup as root, moved it over to public_html so I could wget from the 2nd server. No luck, permission denied. I tried to change permissions in FTP and found out I couldn't change them so I chmodded the file as root, no luck. From there I set chown and changed it to the user of the FTP account and was able to modify the file from FTP. I'm still getting a forbidden message when I try wget or download from browser. Forbidden You don't have permission to access /backup/cpmove-azcorp.tar.gz on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. At this point I'm clueless, I chmodded the file to 777 so what else could be causing this?

Posted by Darvil, 07-24-2008, 05:41 PM
Here's the way to do it. Use SCP and root from the old server to new scp /directory/file root@newserverIP:/locationAtNewServer

Posted by hbhb, 07-25-2008, 06:02 AM
your file is too big for wget use ftp to download your files and restore it manually

Posted by HardLayers, 07-25-2008, 07:22 AM
Yes you can do this from the new server: wait until it finishes then do this hope that helps

Posted by NationHosts, 07-25-2008, 01:35 PM
I appreciate it, will try this.

Posted by NationHosts, 07-26-2008, 10:27 PM
There is something wrong, when I tarred up the filed with pkgacct, it's only showing a 4 gig file, that can't be right unless tar has some magical way of super compressing. One site I am transferring is about 16 gigs.

Posted by hbhb, 07-27-2008, 01:56 PM
i've seen a 8GB account being compressed to only 300mb...if i'm not wrong! anyway, in my first reply just now, it is not wget limit but apache limit. apache simply won't load a very big file. but i believe we can edit it inside httpd.conf (i don't know how)

Posted by chaosuk, 07-27-2008, 05:03 PM
if yu have decided to move the files/sites manually then tar it up but split it into archieves of say 300mb per archive part. Then use ftp or sftp as the user and get * from the directory where the files are tarred. Once done unzip them. If you do all this as root the permissions will be screwed when you try to load the sites and simply /scripts/fixhome as root may not do the trick. You dont need root to do this, if you have created the account manually in cpanel then use the user account you have created to do it since it will have the same permissions as the original server itself.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read