Article ID: 129658, created on Oct 23, 2016, last review on Oct 23, 2016

  • Applies to:
  • Operations Automation

Symptoms

Task Preparing document root and website structure for domain service with ID XXXX (id=YYYY) fails with the error:

Destination host 'hewsl001' (#123), IP '192.168.10.100' : Internal error: /bin/mkdir /bin/mkdir -p /var/www/vhosts/12/123456/webspace/httpdocs/domain.tld failed with code 1 saying: STDOUT: '' STDERR '/bin/mkdir: cannot create directory `/var/www/vhosts/12/123456/webspace/httpdocs': Permission denied '.

Cause

Permissions on httpdocs folder are incorrect - 450 instead of 750:

# ll /var/www/vhosts/12/123456/webspace/

total 36
drwxr-x--- 2 root    root   4096 Jul  7 15:11 certs
drwxr-x--- 2 p107707 pemsrv 4096 Jul  7 15:11 cgi-bin
drwxr-x--- 2 root    root   4096 Jul  7 15:11 conf
drwxr-xr-x 2 root    pemsrv 4096 Jul  7 15:11 error_docs
dr--r-x--- 4 p107707 pemsrv 4096 Jul  9 14:34 httpdocs
drwxr-x--- 2 root    pemsrv 4096 Jul  7 15:11 pd
dr-x--x--- 2 p107707 pemsrv 4096 Jul  7 15:11 siteapps
drwxr-x--- 2 root    pemsrv 4096 Jul 12 00:11 webstat
drwxr-x--- 2 root    pemsrv 4096 Jul  7 15:11 webstatssl

Most likely they were changed manually.

Resolution

Assign correct permissions to the folder:

# chmod 750 /var/www/vhosts/12/123456/webspace/httpdocs/

and rerun the task.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF