The log directory is not created at the creation of the subdomain. The following error is shown:
System error 2: No such file or directoryWarning: mkdir: cannot create directory `./example.com/logs': File exists ERROR: Cannot relink logs. Target directory '/var/www/vhosts/example.com/logs' is in invalid state.
'/var/www/vhosts/example.com/logs/' has incorrect permissions and ownership.
Incorrect vhost permissions.
Fix the permissions as follows:
# chmod 700 /var/www/vhosts/example.com/logs/ # chown .root /var/www/vhosts/example.com/logs/