• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk Vhosts directory permissions

M

mdnitehk

Guest
Hello all,

I had a big problem about a week ago, and had do a full backup on my server.

I reinstalled the OS (FC3) and uploaded all the psa data, databases, and vhosts data.

I then had to manually reassign permissions / group / owner on all domains, and I think this is where the problem is.

Everything seemed to work just fine until today when I was trying add a new domain, and I got some errors which has to do with Plesk's inability to create a new folder and copy over the skeleton data.

What I would like to know is could someone please tell me the permissions / group / owner on the following vhost folders:

/home/httpd/vhosts
/home/httpd/vhosts/domain.com
/home/httpd/vhosts/domain.com/tmp
/home/httpd/vhosts/domain.com/conf
/home/httpd/vhosts/domain.com/httpdocs
/home/httpd/vhosts/domain.com/httpsdocs
/home/httpd/vhosts/chroot
/home/httpd/vhosts/.skel
/home/httpd/vhosts/default

I don't know what they should be, they are all set to root:root at the moment

Thank you,
Jeff
 
As outlined in my /vhosts/.skel/0/httpdocs/ directory,
ls -al .....

drwxr-xr-x 3 root root 36 Sep 28 04:00 .
drwxr-xr-x 5 root root 54 Sep 28 02:53 ..
drwxr-xr-x 2 root root 29 Sep 28 04:00 images
-rw-r--r-- 1 root root 568 Dec 20 11:08 index.html


That should be what you needed.
 
I had to create the vhosts directory as root, and I'm more concerned what that and the actual chroot, .skel, and default directories should be set to for owner, group, and permissions.

I have a feeling Plesk isn't able to create a directory in the vhosts directory at the moment, for some reason. But I don't want to set it wrong, and make the system more vulnerable.

Thank you,
Jeff
 
Back
Top