Symptoms- Plesk is installed on a server with CloudLinux operating system.
- Creating a new domain or changing domain's hosting type fails:
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:
ERR [1] Exception: PHP Warning : symlink(): Permission denied; File:
/usr/local/psa/admin/plib/Service/Agent/Transport/Local/Put.php, Line: 25
CausePlesk user psaadm is prevented to create symlinks. Refer to the CloudLinux Documentation for more details.
CloudLinux symlink protection features are not supported by Plesk.
Resolution- Connect to the server using SSH.
- 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
- Apply the changes:
#sysctl -p