Moved to another server, permissions problem

aprcy

New member
Joined
Nov 24, 2008
Messages
2
Hi,

My server had a HD failure and i extracted the /home files from the crashed HD and moved them to a backup folder of a new installation of DA on a new HD. I add the domains one by one on the new DA and then copy the old public_html of that site to the new one but i have problem with permissions.

Despite the folders that have their permissions messed up, what should UID and GID be? Currently there are some folders with 1031 apache , some with apache apache and some with root apache and most files if not all have 644 permissions.

Any help appreciated,

Thanks
 
Just run:

cd /usr/local/directadmin/scripts
./set_permissions.sh all
 
ok, before i dot that heres a newbie question : is there any way i can run this on a specific domain at first?
 
set_permissions.sh doesn't set any permissions in your public_html at all. Why?
the public_html and cgi-bins should really be left untouched in case of any custom permission like being owned by apache, or 777 etc.

You need to do that by yourself.
Code:
chown -R [B]user[/B]:[B]user[/B] /home/[B]user[/B]/domains/[B]domain.com[/B]/public_html/
 
Back
Top