- Plesk for Linux
It is not possible to access File Manager on the migrated subscription:
PLESK_INFO: Unable to find the directory /var/www/vhosts/example.com/: filemng failed: filemng: opendir failed: Permission denied System error 13: Permission denied
The website returns 500 error:
CONFIG_TEXT: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
If FastCGI is used similar errors can be found in
CONFIG_TEXT: uid: (10011/exampleuser) gid: (1003/1003) cmd: cgi_wrapper
cannot get docroot information (10011)
The user specified in Plesk database does not own the subscription's directory:
# plesk db -Ne "SELECT s.login FROM domains d LEFT JOIN hosting h ON d.id = h.dom_id LEFT JOIN sys_users s ON h.sys_user_id = s.id WHERE d.name = 'example.com'"
# ls -ld /var/www/vhosts/example.com/
drwx--x--- 21 anotheruser psaserv 4096 Oct 4 2017 /var/www/vhosts/example.com/
These users have different user ID's:
# getent passwd exampleuser
# getent passwd anotheruser
Unclear: after migration subscription's files were not assigned to the correct user and web server does not have permissions to access them.
Connect to the server via SSH
Execute the following command to change ownership to the correct user:
# chown -chR --from=anotheruser exampleuser /var/www/vhosts/example.com/
Note: The user names can be found in the fourth symptom of this article.