Article ID: 124812, created on Mar 11, 2015, last review on Mar 11, 2015

  • Applies to:
  • Plesk Automation 11.5

Symptoms

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.

The directory '/var/www/vhosts/example.com/logs/' has incorrect permissions and ownership.

Cause

Incorrect vhost permissions.

Resolution

Fix the permissions as follows:

# chmod 700 /var/www/vhosts/example.com/logs/
# chown .root /var/www/vhosts/example.com/logs/

Search Words

Cannot relink logs

No such file or directoryWarning: mkdir: cannot create directory

System error 2: No such file or directory

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF