Articles in this section

Unable to create domain or change hosting type in Plesk: Error: hosting update is failed

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk is installed on a server with CloudLinux operating system.
  • Creating a new domain or changing domain's hosting type fails:

    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'

  • The following error is found in the log file /var/log/plesk/panel.log:

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

Cause

Plesk user psaadm is prevented to create symlinks. Refer to the CloudLinux Documentation for more details.

Resolution

  1. Connect to the server using SSH.
  2. Open the file /etc/sysctl.conf for editing and disable the options fs.protected_symlinks_create and fs.enforce_symlinksifowner:

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

  3. Apply the changes:

    # sysctl -p

Was this article helpful?

Comments

1 comment
Date Votes
  • Made the changes suggested:

    # sysctl -p
    fs.file-max = 1048576
    vm.max_map_count = 1048576
    sysctl: cannot stat /proc/sys/fs/protected_symlinks_create: No such file or directory
    sysctl: cannot stat /proc/sys/fs/enforce_symlinksifowner: No such file or directory

    0

Please sign in to leave a comment.