- Plesk for Linux
Unable to create/update a file or execute a script when logged in to the server under system user example of a domain example.com:
CONFIG_TEXT: Permission denied
Files and folders in directory
/var/www/vhosts/example.com/httpdocs/have root:root permissions:
# ls -l /var/www/vhosts/example.com/httpdocs/
drwxr-xr-x 2 root root 4096 Mar 9 22:19 css
-rw-r--r-- 1 root root 113459 Mar 9 22:19 favicon.ico
drwxr-xr-x 2 root root 4096 Mar 9 22:19 img
-rw-r--r-- 1 root root 5531 Mar 9 22:19 index.html
drwxr-xr-x 7 root root 4096 Mar 9 22:19 test
Changing permission to correct ones (for example, example:psacln) resolves the issue.
However, after execution of a Magento script for the domain under the system user permissions are changed back to root:root.
Contact Magento support.
As a workaround after each execution of Magento scripts, change permissions to the correct ones:
Connect to the server via SSH
Execute the following command
# chown -R system_user:psacln /var/www/vhosts/example.com/httpdocs/