- Plesk for Linux
Unable to rename a file in the Plesk File Manager:
PLESK_ERROR: Unable to rename /httpdocs/wp-cache-config.php: filemng failed: filemng: Error occurred during /bin/mv command
The following error messages appear in
CONFIG_TEXT: ERR  '/usr/local/psa/admin/bin/filemng' 'user' 'mv' '/var/www/vhosts/example.com/httpdocs/wp-cache-config.php' '/var/www/vhosts/example.com/httpdocs/wp-cache-config.php_old' failed with code 1.
stdout: mv: cannot move /var/www/vhosts/example.com/httpdocs/wp-content/wp-cache-config.php to /var/www/vhosts/example.com/httpdocs/wp-content/wp-cache-config.php_old: Permission denied
filemng: Error occurred during /bin/mv command.
stderr: filemng: Error occurred during /bin/mv command.
Files in domain's
httpdocsdirectory belong to a different subscription user:
# ls -la /var/www/vhosts/example.com/httpdocs/
drwxr-xr-x 9 user psaserv 4096 Jun 19 23:43 .
drwx--x--- 7 user psaserv 4096 May 16 20:58 ..
-rw-r--r-- 1 someotheruser psacln 5482 Nov 13 2016 wp-cache-config.php
-rw-r--r-- 1 someotheruser psacln 979 Jan 23 2014 install.php
-rw-r--r-- 1 someotheruser psacln 28 Jan 9 2012 index.php
Incorrect permissions for files under domain's
httpdocs directory: They should belong to a subscription system user
Connect to the Plesk server via SSH.
Run the repair utility for the domain and fix file permissions:
# plesk repair fs example.com