files not showing in File Manager after copying via SSH from another server
Hi,
I have just purchased a dedicated server from a UK hosting company and I have root access
I am using scp to copy a huge (> 2tb) website from another hosting company (1&1 IONOS using Plesk not that it should make any difference)
The files are copying over .. using SSH I can use the "ls" command to list all the files that I've copied over
However, when I use the File Manager option via cPanel interface, I can see the first folder name on the left hand side (i.e. public_html/my-copied-site) but on the right hand window it shows the directory as empty
If I use the "ls" command, I can see the files & folders
if I try an access any of the files directly via a web browser then I get a 403 Forbidden message
What have I done wrong?
-
Worked out the answer! The answer to this problem is the ownership of the folder Using scp over SSH meant that I was logged in as "root" and therefore the owner of the folders was also "root" Changing the owner of the folder (using "chown" command) to the account's name resolved the problem Hope this helps someone out 0 -
Hi Dan, First - next time I would recommend using rsync instead of fx scp. It's much more flexible and reliable - especially when copying huge websites. Next.. your issue... it's probably because you haven't set the right permissions/owners after your transfer completed ;-) Remember to do a chown account:account on the files. 0 -
Worked out the answer! The answer to this problem is the ownership of the folder Using scp over SSH meant that I was logged in as "root" and therefore the owner of the folders was also "root" Changing the owner of the folder (using "chown" command) to the account's name resolved the problem Hope this helps someone out
Glad to see you were able to resolve this issue and thanks for updating here what the problem was.0
Please sign in to leave a comment.
Comments
3 comments