Webmail and phpmyadmin are not working on my site
Posted: Sat Jul 25, 2020 4:44 pm
By default, only the hostname is configured correctly to run /webmail/ and /phpmyadmin/, so opening https://your-hostname/webmail/ or https://your-hostname/phpmyadmin/ will work.
(unless you accidentally change the PHP-FPM-XX template for hostname)
However, if you want to load /webmail/ and /phpmyadmin/ on your site (instead of your-hostname), or webmail/phpmyadmin stopped working on 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) Select PHP-FPM-XX for the PHP version that is the default for your Debian version.
4) In SSH, as root, run:
Then, in the open file, find
(probably line 9)
and change that line to:
Press F2 to save the file, and ESC to escape from the editor.
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.
(unless you accidentally change the PHP-FPM-XX template for hostname)
However, if you want to load /webmail/ and /phpmyadmin/ on your site (instead of your-hostname), or webmail/phpmyadmin stopped working on 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) Select PHP-FPM-XX for the PHP version that is the default for your Debian version.
4) In SSH, as root, run:
Code: Select all
v-edit-domain-php-ini yourdomain.com
Code: Select all
group = yourusername
and change that line to:
Code: Select all
group = www-data
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.