Webmail and phpmyadmin are not working on my site

Post Reply
User avatar
myVesta
Site Admin
Posts: 936
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

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

Code: Select all

group = yourusername
(probably line 9)
and change that line to:

Code: Select all

group = www-data
After that, restart php-fpm:

Code: Select all

systemctl restart phpX.X-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.

Tags:
hassaan
Posts: 1
Joined: Sun Feb 12, 2023 7:54 pm

I followed this tutorial but I am getting infinite redirection issue on Debian 11.6 and Debian 10.13


tried with Proxy Template:
hosting-legacy
hosting-webmail-phpmyadmin



Access logs
124.29.122.0 - - [12/Feb/2023:19:10:53 +0000] "GET /webmail/ HTTP/1.0" 302 504 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"
124.29.122.0 - - [12/Feb/2023:19:10:54 +0000] "GET /webmail/ HTTP/1.0" 302 504 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"
124.29.122.0 - - [12/Feb/2023:19:10:54 +0000] "GET /webmail/ HTTP/1.0" 302 504 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"
124.29.122.0 - - [12/Feb/2023:19:10:55 +0000] "GET /webmail/ HTTP/1.0" 302 504 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"
124.29.122.0 - - [12/Feb/2023:19:10:55 +0000] "GET /webmail/ HTTP/1.0" 302 504 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"
124.29.122.0 - - [12/Feb/2023:19:10:55 +0000] "GET /webmail/ HTTP/1.0" 302 504 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"
Last edited by hassaan on Sun Feb 12, 2023 8:14 pm, edited 1 time in total.
User avatar
myVesta
Site Admin
Posts: 936
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Probably something other makes these redirection loops.
Can be a lot of things.
If you can't find what's it, sorry :|
stefansweb
Posts: 3
Joined: Wed Sep 07, 2022 11:04 pm

For me roundcube CSS and JS won't still load and phpMyAdmin Is still white blank page can someone help me out?

https://ibb.co/J7XsfwG
thunder1
Posts: 3
Joined: Sat Jun 29, 2024 10:07 am

stefansweb wrote: Wed Feb 07, 2024 5:43 pm For me roundcube CSS and JS won't still load and phpMyAdmin Is still white blank page can someone help me out?

https://ibb.co/J7XsfwG
Hi, I have exectly the same issue. Did you find any solutions to it? Thanks.
Post Reply