• 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

Using vhostmng to fix permission

asfik

New Pleskian
Hello

I have followed http://kb.odin.com/en/6572 instruction that apply only for Plesk 8.x/9.x so I get this error:

vhostmng: Miss parameter 'www-root' or previos parameter empty.
vhostmng: Miss parameter 'www-root' or previos parameter empty.

It seems that the command need --www-root argument as well. Please let me know the what is the correct value for --www-root? Is it httpdocs or the full path of the httpdocs or else

Thank you.

Regards,
Asfihani
 
--www-root=<www_root> is root directory for vhost. For example /var/www/vhosts/domain.com/httpdocs/
 
Dear IgorG,

Thank you for prompt reply. We also wrongly change owner and permission on fs and fs-password directory as well. Can you help me what is the correct permissions and owner of that directory. Probably giving out the output of ls -laR ?

Thank you.

Regards,
Asfihani
 
# ls -laR /var/www/vhosts/testdomain.tld/
/var/www/vhosts/testdomain.tld/:
total 48
drwxr-xr-x 12 root root 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 15 23:37 ..
drwxr-x--- 5 test2 psaserv 4096 Aug 9 13:59 anon_ftp
drwxr-x--- 3 test2 psaserv 4096 Aug 9 13:59 cgi-bin
drwxr-x--- 2 root psaserv 4096 Aug 16 18:12 conf
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 error_docs
drwxr-x--- 7 test2 psaserv 4096 Aug 9 13:59 httpdocs
drwxr-x--- 2 root psaserv 4096 Aug 9 13:59 pd
drwx------ 2 test2 root 4096 Aug 9 13:59 private
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 statistics
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 subdomains
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 web_users

/var/www/vhosts/testdomain.tld/anon_ftp:
total 20
drwxr-x--- 5 test2 psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 conf
drwxrwxrwx 2 test2 psaserv 4096 Aug 9 13:59 incoming
drwxr-xr-x 2 test2 psaserv 4096 Aug 9 13:59 pub

/var/www/vhosts/testdomain.tld/anon_ftp/conf:
total 8
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 .
drwxr-x--- 5 test2 psaserv 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/anon_ftp/incoming:
total 8
drwxrwxrwx 2 test2 psaserv 4096 Aug 9 13:59 .
drwxr-x--- 5 test2 psaserv 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/anon_ftp/pub:
total 8
drwxr-xr-x 2 test2 psaserv 4096 Aug 9 13:59 .
drwxr-x--- 5 test2 psaserv 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/cgi-bin:
total 12
drwxr-x--- 3 test2 psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 test

/var/www/vhosts/testdomain.tld/cgi-bin/test:
total 12
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-x--- 3 test2 psaserv 4096 Aug 9 13:59 ..
-rwxr-xr-x 1 test2 psacln 662 Aug 9 13:59 test.cgi

/var/www/vhosts/testdomain.tld/conf:
total 56
drwxr-x--- 2 root psaserv 4096 Aug 16 18:12 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
.....
-rw-r----- 1 root apache 6751 Aug 16 18:12 13134931280.04098500_httpd.include

/var/www/vhosts/testdomain.tld/error_docs:
total 64
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
......
-rwxr-xr-x 1 test2 psaserv 1015 Aug 9 13:59 unsupported_media_type.html

/var/www/vhosts/testdomain.tld/httpdocs:
total 60
drwxr-x--- 7 test2 psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 css
-rwxr-xr-x 1 test2 psacln 17542 Aug 9 13:59 favicon.ico
drwxr-xr-x 6 test2 psacln 4096 Aug 9 13:59 img
-rwxr-xr-x 1 test2 psacln 10198 Aug 9 13:59 index.html
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 picture_library
drwxr-xr-x 2 root root 4096 Aug 9 13:59 plesk-stat
drwxr-xr-x 11 test2 psacln 4096 Aug 9 13:59 test

/var/www/vhosts/testdomain.tld/httpdocs/css:
total 20
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-x--- 7 test2 psaserv 4096 Aug 9 13:59 ..
-rwxr-xr-x 1 test2 psacln 7812 Aug 9 13:59 style.css
-rwxr-xr-x 1 test2 psacln 1088 Aug 9 13:59 tabs.css

/var/www/vhosts/testdomain.tld/httpdocs/img:
total 24
drwxr-xr-x 6 test2 psacln 4096 Aug 9 13:59 .
drwxr-x--- 7 test2 psaserv 4096 Aug 9 13:59 ..
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 apps
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 common
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 glyph
drwxr-xr-x 3 test2 psacln 4096 Aug 9 13:59 icons

/var/www/vhosts/testdomain.tld/httpdocs/img/apps:
total 56
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-xr-x 6 test2 psacln 4096 Aug 9 13:59 ..
.....
-rwxr-xr-x 1 test2 psacln 6222 Aug 9 13:59 server-box.gif

/var/www/vhosts/testdomain.tld/httpdocs/img/common:
total 48
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-xr-x 6 test2 psacln 4096 Aug 9 13:59 ..
....
-rwxr-xr-x 1 test2 psacln 1032 Aug 9 13:59 top_bg.png

/var/www/vhosts/testdomain.tld/httpdocs/img/glyph:
total 56
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-xr-x 6 test2 psacln 4096 Aug 9 13:59 ..
.....
-rwxr-xr-x 1 test2 psacln 1583 Aug 9 13:59 btn_ssi_bg.gif

/var/www/vhosts/testdomain.tld/httpdocs/img/icons:
total 20
drwxr-xr-x 3 test2 psacln 4096 Aug 9 13:59 .
drwxr-xr-x 6 test2 psacln 4096 Aug 9 13:59 ..
-rwxr-xr-x 1 test2 psacln 1057 Aug 9 13:59 fail.gif
-rwxr-xr-x 1 test2 psacln 1042 Aug 9 13:59 success.gif
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 tabs

/var/www/vhosts/testdomain.tld/httpdocs/img/icons/tabs:
total 12
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-xr-x 3 test2 psacln 4096 Aug 9 13:59 ..
-rwxr-xr-x 1 test2 psacln 2828 Aug 9 13:59 tabs-bg.png

/var/www/vhosts/testdomain.tld/httpdocs/picture_library:
total 8
drwxr-xr-x 2 test2 psacln 4096 Aug 9 13:59 .
drwxr-x--- 7 test2 psaserv 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/httpdocs/plesk-stat:
total 8
drwxr-xr-x 2 root root 4096 Aug 9 13:59 .
drwxr-x--- 7 test2 psaserv 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/pd:
total 8
drwxr-x--- 2 root psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/private:
total 12
drwx------ 2 test2 root 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
-rw------- 1 test2 psaserv 165 Aug 9 13:59 README.txt

/var/www/vhosts/testdomain.tld/statistics:
total 28
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
drwxr-xr-x 3 root root 4096 Aug 16 05:56 anon_ftpstat
drwxr-xr-x 3 root root 4096 Aug 16 05:57 ftpstat
drwxr-x--- 2 root psaserv 4096 Aug 10 05:52 logs
drwxr-xr-x 3 root root 4096 Aug 16 05:55 webstat
drwxr-xr-x 3 root root 4096 Aug 16 05:56 webstat-ssl

/var/www/vhosts/testdomain.tld/statistics/anon_ftpstat:
total 20
drwxr-xr-x 3 root root 4096 Aug 16 05:56 .
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 ..
drwxr-xr-x 2 root root 4096 Aug 16 05:57 2011-08
lrwxrwxrwx 1 root root 7 Aug 16 05:56 current -> 2011-08
-rwxr-xr-x 1 root psaserv 457 Aug 16 05:57 index.html
-rwxr-xr-x 1 root root 955 Aug 16 05:57 nav.html

/var/www/vhosts/testdomain.tld/statistics/anon_ftpstat/2011-08:
total 232
drwxr-xr-x 2 root root 4096 Aug 16 05:57 .
drwxr-xr-x 3 root root 4096 Aug 16 05:56 ..
.....
lrwxrwxrwx 1 root root 36 Aug 16 05:57 index.html -> awstats.testdomain.tld-anon_ftp.html

/var/www/vhosts/testdomain.tld/statistics/ftpstat:
total 20
drwxr-xr-x 3 root root 4096 Aug 16 05:57 .
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 ..
drwxr-xr-x 2 root root 4096 Aug 16 05:57 2011-08
lrwxrwxrwx 1 root root 7 Aug 16 05:57 current -> 2011-08
-rwxr-xr-x 1 root psaserv 457 Aug 16 05:57 index.html
-rwxr-xr-x 1 root root 955 Aug 16 05:57 nav.html

/var/www/vhosts/testdomain.tld/statistics/ftpstat/2011-08:
total 232
drwxr-xr-x 2 root root 4096 Aug 16 05:57 .
drwxr-xr-x 3 root root 4096 Aug 16 05:57 ..
.....
lrwxrwxrwx 1 root root 31 Aug 16 05:57 index.html -> awstats.testdomain.tld-ftp.html

/var/www/vhosts/testdomain.tld/statistics/logs:
total 16
drwxr-x--- 2 root psaserv 4096 Aug 10 05:52 .
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 ..
-rw-r--r-- 1 root root 0 Aug 9 13:59 access_log
-rw-r--r-- 1 root root 0 Aug 10 05:52 access_log.processed
-rw-r--r-- 1 root root 0 Aug 9 13:59 access_ssl_log
-rw-r--r-- 1 root root 0 Aug 10 05:52 access_ssl_log.processed
-rw-r--r-- 1 root root 6840 Aug 16 18:12 error_log

/var/www/vhosts/testdomain.tld/statistics/webstat:
total 20
drwxr-xr-x 3 root root 4096 Aug 16 05:55 .
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 ..
drwxr-xr-x 2 root root 4096 Aug 16 05:56 2011-08
lrwxrwxrwx 1 root root 7 Aug 16 05:55 current -> 2011-08
-rwxr-xr-x 1 root psaserv 457 Aug 16 05:56 index.html
-rwxr-xr-x 1 root root 955 Aug 16 05:56 nav.html

/var/www/vhosts/testdomain.tld/statistics/webstat/2011-08:
total 232
drwxr-xr-x 2 root root 4096 Aug 16 05:56 .
drwxr-xr-x 3 root root 4096 Aug 16 05:55 ..
.....
lrwxrwxrwx 1 root root 32 Aug 16 05:56 index.html -> awstats.testdomain.tld-http.html

/var/www/vhosts/testdomain.tld/statistics/webstat-ssl:
total 20
drwxr-xr-x 3 root root 4096 Aug 16 05:56 .
dr-xr-x--- 7 root psaserv 4096 Aug 9 13:59 ..
drwxr-xr-x 2 root root 4096 Aug 16 05:56 2011-08
lrwxrwxrwx 1 root root 7 Aug 16 05:56 current -> 2011-08
-rwxr-xr-x 1 root psaserv 457 Aug 16 05:56 index.html
-rwxr-xr-x 1 root root 955 Aug 16 05:56 nav.html

/var/www/vhosts/testdomain.tld/statistics/webstat-ssl/2011-08:
total 232
drwxr-xr-x 2 root root 4096 Aug 16 05:56 .
drwxr-xr-x 3 root root 4096 Aug 16 05:56 ..
.....
lrwxrwxrwx 1 root root 33 Aug 16 05:56 index.html -> awstats.testdomain.tld-https.html

/var/www/vhosts/testdomain.tld/subdomains:
total 8
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..

/var/www/vhosts/testdomain.tld/web_users:
total 8
drwxr-xr-x 2 root psaserv 4096 Aug 9 13:59 .
drwxr-xr-x 12 root root 4096 Aug 9 13:59 ..
 
Dear IgorG,

Thank you for prompt reply. I mean the permission for the directory fs and fs-passwd under directory /var/www/vhosts/. Please let me know the output of :

ls -laR /var/www/vhosts/fs
ls -laR /var/www/vhosts/fs-passwd

FYI, I use Plesk 10 SMB version if that helps. Thank you.

Regards,
Asfihani
 
# ls -laR /var/www/vhosts/fs
/var/www/vhosts/fs:
total 28
drwxr-xr-x 7 root root 4096 Jul 18 07:47 .
drwxr-xr-x 12 root root 4096 Aug 15 23:37 ..
drwx------ 2 apache root 4096 Jul 18 07:47 partner
d-wx------ 8 apache root 4096 Jul 18 07:47 private
drwx------ 2 apache root 4096 Jul 18 07:47 public
drwx------ 2 apache root 4096 Jul 18 07:47 shared
drwx------ 2 apache root 4096 Jul 18 07:47 unlisted

/var/www/vhosts/fs/partner:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
drwxr-xr-x 7 root root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/private:
total 32
d-wx------ 8 apache root 4096 Jul 18 07:47 .
drwxr-xr-x 7 root root 4096 Jul 18 07:47 ..
drwx------ 2 apache root 4096 Jul 18 07:47 25c0007146b68178531d30bdf6ec94e6
drwx------ 2 apache root 4096 Jul 18 07:47 4235f7dfac0809dad9b90f57d5c8ecb8
drwx------ 2 apache root 4096 Jul 18 07:47 5ac71fd8d7664abe4c7ef07a63eb9195
drwx------ 2 apache root 4096 Jul 18 07:47 5f43c16ce60b5a1bdaee437e5b988452
drwx------ 2 apache root 4096 Jul 18 07:47 7794928a8e9179c25c01de0e2d897df8
drwx------ 2 apache root 4096 Jul 18 07:47 915faffb20dca7d8425f15f66ef9f681

/var/www/vhosts/fs/private/25c0007146b68178531d30bdf6ec94e6:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
d-wx------ 8 apache root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/private/4235f7dfac0809dad9b90f57d5c8ecb8:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
d-wx------ 8 apache root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/private/5ac71fd8d7664abe4c7ef07a63eb9195:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
d-wx------ 8 apache root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/private/5f43c16ce60b5a1bdaee437e5b988452:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
d-wx------ 8 apache root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/private/7794928a8e9179c25c01de0e2d897df8:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
d-wx------ 8 apache root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/private/915faffb20dca7d8425f15f66ef9f681:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
d-wx------ 8 apache root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/public:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
drwxr-xr-x 7 root root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/shared:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
drwxr-xr-x 7 root root 4096 Jul 18 07:47 ..

/var/www/vhosts/fs/unlisted:
total 8
drwx------ 2 apache root 4096 Jul 18 07:47 .
drwxr-xr-x 7 root root 4096 Jul 18 07:47

# ls -laR /var/www/vhosts/fs-passwd
/var/www/vhosts/fs-passwd:
total 12
drwxr-xr-x 2 root root 4096 Jul 18 07:47 .
drwxr-xr-x 12 root root 4096 Aug 15 23:37 ..
-rw------- 1 apache root 420 Aug 9 13:59 dav.passwd
 
Thank you IgorG, I am forget to ask you regarding the permission and the owner the directory itself. Please let me know if you can paste the output of:

ls -ld /var/www/vhosts/fs
ls -ld /var/www/vhosts/fs-passwd

Thank you.
 
# ls -ld /var/www/vhosts/fs
drwxr-xr-x 7 root root 4096 Jul 18 07:47 /var/www/vhosts/fs

# ls -ld /var/www/vhosts/fs-passwd
drwxr-xr-x 2 root root 4096 Jul 18 07:47 /var/www/vhosts/fs-passwd
 
Back
Top