So, opening https://your-hostname/webmail/ or https://your-hostname/phpmyadmin/ will work.
However, if you want to load /webmail/ and /phpmyadmin/ on your site (instead of your-hostname), do the following:
1) In myVesta hosting panel, Go to WEB -> EDIT (your domain)
2) Set hosting-webmail-phpmyadmin or hosting-legacy or force-https-legacy nginx proxy template
3) Edit /etc/php/X.X/fpm/pool.d/your-domain.com.conf
(where X.X is the PHP version of your domain)
find
Code: Select all
group = yourusername
and change that line to:
Code: Select all
group = www-data
Code: Select all
systemctl restart phpX.X-fpm
Remember that you should put (on that domain) the PHP version that is the default for your Debian version.
If you can not switch PHP versions, simply create a new subdomain—let's say webmail.your-domain.com—put the PHP version that is the default for your Debian version there, and apply the instructions from this tutorial.