Unable to upload file in Plesk : Error occurred during /bin/cp command

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:49:14 UTC

Modified:

2017-01-16 09:37:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to upload file in Plesk : Error occurred during /bin/cp command

Symptoms

Unable to upload files under Plesk -> Domains -> example.com -> Files , the following error is shown:

Error: Unable to upload file.test to /httpdocs/myfolder/: filemng: Error occurred during /bin/cp command.

The following error can be found in /var/log/sw-cp-server/error_log :

stdout:
cp: cannot create regular file `/var/www/vhosts/example.com/httpdocs/myfolder/file.test': Permission denied
filemng: Error occurred during /bin/cp command.

Cause

Incorrect permissions or ownership set on /var/www/vhosts/example.com/httpdocs/myfolder directory.

Resolution

  1. Set correct ownership on /var/www/vhosts/example.com/httpdocs/myfolder directory:

    # chown -R <subscription_system_user>:psacln /var/www/vhosts/example.com/httpdocs/myfolder

    where subscription_system_user is the system user of example.com subscription.

  2. Set correct permissions on /var/www/vhosts/example.com/httpdocs/myfolder directory:

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