Creating domain with hosting fails with error: hosting update is failed

Created:

2016-11-16 13:08:12 UTC

Modified:

2017-08-17 12:05:14 UTC

6

Was this article helpful?


Have more questions?

Submit a request

Creating domain with hosting fails with error: hosting update is failed

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

  1. Plesk shows error when creating a new domain or changing domain's hosting type:

    PLESK_ERROR: Error: hosting update is failed: vhostmng-content failed: failed to copy file '/var/www/vhosts/.skel/0' to '/usr/local/psa/tmp/agent137acd1c2205108da51330c6267b94e9/0'

  2. Plesk log /var/log/plesk/panel.log contains the following:

    CONFIG_TEXT: ERR [1] Exception: PHP Warning : symlink(): Permission denied; File: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Put.php, Line: 25

  3. OS version is CloudLinux 6 (kernel 2.6.32-604.16.2.lve1.3.45) and greater:

    # cat /var/log/yum.log | grep kernel-2.6.32-604
    Installed: kernel-2.6.32-604.30.3.lve1.3.63.el6.x86_64

Cause

User psaadm is prevented to create symlinks after the installation a new kernel. Refer to CloudLinux Documentation for more details. CloudLinux symlink protection features are not supported by Plesk.

Resolution

  1. Connect to the server using SSH.
  2. Disable fs.protected_symlinks_create and fs.enforce_symlinksifowner options:

    # vi /etc/sysctl.conf
    .....
    fs.protected_symlinks_create = 0
    fs.enforce_symlinksifowner = 0

  3. Apply the changes:

    # sysctl -p

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    N8Solutions

    I am using CloudLinux 7 with Plesk Onyx v17.0 and this solved my issue.

  • 0
    Avatar
    iamkingsleyf

    mine is when migrating sites to the new server but once i update cagefs i am able to add domain /sub domain

    Edited by iamkingsleyf
Please sign in to leave a comment.