SOLVED files not showing in File Manager after copying via SSH from another server

Dan Golding

Registered
Sep 1, 2020
2
1
3
UK
cPanel Access Level
Root Administrator
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?
 

Dan Golding

Registered
Sep 1, 2020
2
1
3
UK
cPanel Access Level
Root Administrator
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
 
  • Like
Reactions: cPanelLauren

cPAdminsMichael

Well-Known Member
Dec 19, 2016
161
56
103
Denmark
cPanel Access Level
Root Administrator
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.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,262
313
Houston
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.