Error Occurred During /bin/cp Command. Plesk
Sep 5, 2013. JeffreyZ Basic Pleskian 0 Messages: 71 Likes Received: 2 Trophy Points: 0 Location: Seattle, WA I have a client who is unable to use File Manager to edit files. I am able filemng error occurred during bin cp command to view the file but when I try to make a change I get the error occurred during bin rm command following error: Error: Unable to edit file /subdomains/das/httpdocs/dsched.html: filemng: Error occurred during /bin/cp command. I saw two threads related to this issue. It seems for Plesk 11, one possible solutions is to run recover_plesk_directories which I did. I'm still getting the same error message. I assume I can run that command from any folder within parallels? Other client's user privileges seem to be ok -- tested a few. How can I reset the user privileges or at least fix this one user privilege as a work-around? JeffreyZ, Sep 5, 2013 #1 Faris Raouf Silver Pleskian 23 Messages: 662 Likes Received: 15 Trophy Points: 392 It depends on which user owns the files in question. If they are owned by apache.apache then the site is running in mod_php mode and the files were created by the PHP user, which in that case is apache. FileManage runs as the FTP username, and can't edit files owned by apache. The solution is to use PHP in Fast CGI mode, where PHP runs as the FTP user and files created are owned by the ftp user. However, the drawback here is that you'd need to recursively chown all files and directories in httpdocs to the-ftp-username.psacln and doing so has the potential to cause unwanted side-effects. It is not something to do without testing and some thought. The other solution is just to change those files the user specifically needs to edit to the ftpuser.psacln but the php script in question may later have problems with those files. It all depends on the script and what it needs to do with those files (i.e. if it only needs to read them then it should be fine). DO NOT be tempted to chomd 777 which is another option that would solve the problem. All of the above only applies if the files in question are owned by apache.apache. If it is something else then the problem is not what I think it is and my suggestions do not apply. Faris Raouf, Sep 5, 2013 #2 JeffreyZ Basic Pleskian 0 Messages: 71 Likes Received: 2 Trophy Points: 0 Location: Seattle, WA Thanks for your help. I see the ownership of
Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... Parallels Forums Home Forums > General Discussion https://forum.parallels.com/threads/cannot-add-new-directory-plesk-10-3.208653/ > Parallels Website and Forum > Cannot 'Add New Directory' Plesk 10.3 Discussion in 'Parallels Website and Forum' started by MicheleM, Nov 15, 2011. MicheleM Messages: 2 I am logged in as root/admin and has set up a domain but I can't 'Add New Directory' this is the error I get; Error: Unable to create directory //myfoldername: filemng failed: error occurred mkdir: cannot create directory `/var/www/vhosts/mydomain.com//myfoldername': Permission denied filemng: Error occurred during /bin/mkdir command. Can someone please tell me why I can't create a folder even though I'm the server admin? Thanks Michele MicheleM, Nov 15, 2011 #1 MicheleM Messages: 2 Is there a Plesk moderator available to answer my question? Is there a Plesk moderator available to answer my error occurred during question? MicheleM said: ↑ I am logged in as root/admin and has set up a domain but I can't 'Add New Directory' this is the error I get; Error: Unable to create directory //myfoldername: filemng failed: mkdir: cannot create directory `/var/www/vhosts/mydomain.com//myfoldername': Permission denied filemng: Error occurred during /bin/mkdir command. Can someone please tell me why I can't create a folder even though I'm the server admin? Thanks MicheleClick to expand... MicheleM, Nov 22, 2011 #2 NorbertC Messages: 1 I found how to solve this problem, it's really easy, but it was really hard to find what's the problem chown -R "username to the plesk"saserv httpdocs/ NorbertC, Dec 21, 2011 #3 (You must log in or sign up to reply here.) Show Ignored Content Share This Page Tweet Your name or email address: Do you already have an account? No, create an account now. Yes, my password is: Forgot your password? Stay logged in Parallels Forums Home Forums > General Discussion > Parallels Website and Forum > Contact Us Help Home Top RSS Terms and Rules