No folder for subdomain in Plesk

Refers to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:50:09 UTC

Modified:

2017-02-17 11:05:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

No folder for subdomain in Plesk

Symptoms

Webspace directory for subdomain is not created when adding a subdomain in Plesk admin Panel;

There are no any error or warning in Plesk interface.

Cause

Incorrect permissions are set for the subdomains webspace directory.

Resolution

  1. Correct the permissions the following way:

    chown user:psaserv /var/www/vhosts/domain.tld/subdomains

where user is an operating system user for managing files and folders within the webspace (you can find the correct system user under Websites & Domains > Web Hosting Access )

Example:

# chown user:psaserv /var/www/vhosts/domain.com/subdomains
# ls -ld /var/www/vhosts/domain.com/subdomains
drwxr-xr-x 16 user psaserv 4096 Oct 31 19:48 /var/www/vhosts/domain.com/subdomains
  1. If you want to correct permissions of subdomains directories of all subscriptions, you can run the following command (provided the permissions of the parent directories i.e. the vhost directories of the domains are correct) :
    # ll /var/www/vhosts/*/ -d | awk '{printf("chown %s %ssubdomains/ \

    ", $3,$9)}'

Have more questions? Submit a request
Please sign in to leave a comment.