SYSTEM INFORMATION | |
---|---|
OS type and version | AlmaLinux 9.5 |
Webmin version | 2.301 |
Virtualmin version | 7.30.4.gpl |
Webserver version | Apache/2.4.62 (AlmaLinux) |
I set up a new server with Webmin/Virtualmin, and it initially worked as expected. I installed a test domain (e.g., test.domain1. com), configured it, and then used Webmin’s rename function to change it to domain1.com and updated the username (e.g., from testuser to user1). The rename seemed to work, and the site was accessible. I then added two more domains: domain2. com and sub.domain2. com.
Later, logging into xx.xx.xx.xx:10000 as root, I found Webmin missing—only the Virtualmin dashboard appeared. The domain dropdown only shows domain1. com, with no trace of domain2. com or sub.domain2. com.
Observations:
- CLI lists all three domains:
virtualmin list-domains
Domain Username Description
domain1 .com user1 Description1
domain2. com user2
sub.domain2. com user2 Subserver Description
- Config files are in /etc/webmin/virtual-server/domains (not /etc/virtualmin):
ls /etc/webmin/virtual-server/domains
173834587238967 17399820243106977 17399824853111400
- I assume these correspond to the three domains, but I’m unsure how to confirm the IDs.
- Websites work (domain1. com, etc.), but validation shows issues:
virtualmin validate-domains --all-domains --all-features
domain1.com
Apache website : An IPv6 DNS record www.domain1. com with address 2606:4700:20::681a:379 exists, but this virtual server does not have IPv6 enabled
Apache SSL website : The SSL certificate does not match domain1.com or www.domain1.com. Instead, it matches the old test domain (e.g., test.domain1. com)
Webmin login : Webmin user user1 does not exist
sub.domain2.com
All features are good
domain2. com
Apache website : An IPv6 DNS record www. domain2. com with address 2606:4700:3030::6815:6052 exists, but this virtual server does not have IPv6 enabled
Troubleshooting Attempts:
-
Reinstall: Reinstalled Webmin (dnf install --reinstall webmin) and Virtualmin (sh install.sh), but the UI still only shows domain1. com, and Webmin doesn’t load.
-
Config Changes: Set defaultmodule=webmin in /etc/webmin/miniserv.conf, cleared cache (rm -rf /var/webmin/cache/*), and restarted Webmin—Virtualmin still loads. Tried preload=webmin and noload=virtual-server, but no effect despite a heavy Virtualmin preload line.
-
Theme Switch: Changed to “Framed Theme” via /webmin, which brought back Webmin tabs (possibly incomplete), but Virtualmin UI remained limited to domain1.com.
-
Ownership/Permissions: Ran virtualmin modify-domain --domain --user root for all domains and virtualmin fix-domain-permissions --all-domains—no UI improvement.
-
SSL: Attempted SSL updates via UI for domain1. com, but openssl x509 -in /etc/ssl/virtualmin/173834587238967/ssl.cert -noout -subject shows the old test domain, while live site shows domain1. com.
I suspect the rename from the test domain/user to the final domain/user caused a session or permissions issue. Webmin users (cat /etc/webmin/miniserv.users) might still reference the old user, though recent checks were inconsistent.
Questions:
-
How can I force Webmin to load at xx.xx.xx.xx:10000 instead of Virtualmin?
-
Why does the Virtualmin UI only show domain1. com, and how do I restore all domains?
-
How can I fix the SSL and Webmin user validation errors without full UI access?
Any ideas to resolve this? I’ve been troubleshooting extensively and could use fresh eyes.
Thanks