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
- Connect to the server using SSH.
-
Open the file /etc/sysctl.conf for editing and disable the options
fs.protected_symlinks_createandfs.enforce_symlinksifowner:# vi /etc/sysctl.conf
.....
fs.protected_symlinks_create = 0
fs.enforce_symlinksifowner = 0 -
Apply the changes:
# sysctl -p
Comments
Made the changes suggested:
# sysctl -pfs.file-max = 1048576vm.max_map_count = 1048576sysctl: cannot stat /proc/sys/fs/protected_symlinks_create: No such file or directorysysctl: cannot stat /proc/sys/fs/enforce_symlinksifowner: No such file or directoryPlease sign in to leave a comment.