Issue :

Web Users for a domain added in plesk control panel can be accessed as ” ”  but adding a webuser for first time for a domain may throw an  error as ” File does not exist: /var/www/vhosts/ ”

Cause :

Plesk doesn’t make required entries related to a webuser automatically in the Apache configuration file.

Solution :
1) Add the following entry in the  Apache configuration file.
UserDir /var/www/vhosts/
(PS: Make sure that you are replacing only domain name with the exact domain in question. Don’t replace web_users with webuser name in Apache conf. file.
Avoid editing the original Apache conf. file for the domain (/var/www/vhosts/ Instead you may create vhost.conf file (/var/www/vhosts/ and add above entries in order to avoid any misconfiguration.)
2) Run the following  command in order to update the changes made above.
/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –
3) Restart Apache

After  carrying out the  above steps you should be able to access WebUser through a browser. Now if you are getting Permission Denied error then make sure that you have uploaded one index file for the web user through webuser’s FTP account. The document root for the webuser’s is  :
/var/www/vhosts/ .
While logging in through FTP , by default, webuser will be having  access to this directory only.

Contact Us On WhatsApp