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.
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
(probably line 9)
and change that line to:
After that, restart php-fpm:
(where X.X is the PHP version of your domain)
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.
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.