Symptoms
-
An error is displayed while accessing a domain option in Plesk or logging in to Plesk under user credentials:
external error: /var/www/vhosts/example.com/httpdocs is out of webspace
Message /var/www/vhosts/example.com/httpdocs is out of webspace
File Webspace.phpLine 378
Type PleskFatalException -
The home directory is different for system users of domain
select distinct d.id,d.webspace_id as webspace_id,d.name as domain,su.login,su.home,h.www_root from domains d join hosting h on h.dom_id=d.id left join ftp_users fu on fu.dom_id=d.id join sys_users su on (fu.sys_user_id=su.id or h.sys_user_id=su.id) where d.name='example.com' order by d.name;
+-----+-------------+------------+--------------+-----------------------------+--------------------------------------+
| id | webspace_id | domain | login | home | www_root |
+-----+-------------+------------+--------------+-----------------------------+--------------------------------------+
| 259 | 0 | example.com | user_login | /var/www/vhosts/example.com | /var/www/vhosts/example.com/httpdocs |
| 260 | 0 | example.com | user2_login | /var/www/vhosts/example2.com | /var/www/vhosts/example2.com/httpdocs |
+-----+-------------+------------+--------------+------------------------------+--------------------------------------+
Cause
An additional FTP user home directory is outside of the main system user home directory.
Resolution
Change the value of www_root for affected system user in Plesk database:
-
Connect to the server via SSH
-
Modify the record in the database
# plesk db "update sys_users set home='/var/www/vhosts/example.com/user_folder' where login='user2_login'"
Note: '/var/www/vhosts/example.com/user_folder' should exist on the file system.