Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Dec 19, 2024, 06:28 AM

Title: Unable to access any domain options in Plesk UI when additional FTP users
Post by: mahesh on Dec 19, 2024, 06:28 AM
Question
Unable to access any domain options in Plesk UI when additional FTP users are created: /var/www/vhosts/example.com/httpdocs is out of webspace
Symptoms

Internal 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

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:


#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.