Unable to rename a file: Unable to rename. filemng failed: Error occurred during /bin/mv command

Created:

2017-06-20 06:19:45 UTC

Modified:

2017-08-08 13:18:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to rename a file: Unable to rename. filemng failed: Error occurred during /bin/mv command

Symptoms

Unable to rename a file:

Unable to rename /httpdocs/wp-cache-config.php: filemng failed: filemng: Error occurred during /bin/mv command

The following error appears in /var/log/plesk/panel.log:

ERR [1] '/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 under domain's httpdocs 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

Cause

Incorrect permissions for files under domain's httpdocs directory: they should belong to a system user

Resolution

Change permissions as follows:

# chown -R user /var/www/vhosts/example.com/httpdocs/
Have more questions? Submit a request
Please sign in to leave a comment.