I installed Virtualmin on Centos8.
Some problems occurred but I found some workarounds on this and other websites.
After a clean install of Centos8, log in with ssh:
Perl problem
First install perl. then install virtualmin
dnf install perl -y
wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo /bin/sh install.sh =>Y
Postfix problem:
Add the following text in Postfix
Webmin > Servers > Postfix Mail Server > Virtual Domains >Domain mapping lookup tables = hash:/etc/postfix/virtual
MYSQL problem with root password
service mysqld stop
mysqld_safe --skip-grant-tables &
Mysql
At the mysql> prompt, reset the password. To do this, type the following command, replacing new-password with the new root password:
UPDATE mysql.user SET Password=PASSWORD(‘NEW PASSWORD’) WHERE User=‘root’;
At the mysql> prompt, type the following commands:
FLUSH PRIVILEGES;
exit;
Stop the MySQL server using the following command. You will be prompted to enter the new MySQL root password before the MySQL server shuts down:
mysqladmin -u root -p shutdown
For CentOS and Fedora, type:
service mysqld start
Webmin/Virtualmin is now fully working
However, I’ don’t succeed in adding letsencrypt certificates.
I use the providers DNS so need website verification
I was able to add a letsencrypt certificate in Webmin for the main server.
The virtual servers always returns errors (Forbidden). I asked to get a certificate at installation of the virtual server.
After that failed, I tried to add a letsencrypt certificate with Server configuration/ssl configuration/letsencrypt. I flushed all redirections and made sure that the website was accessible. I even tried to set permissions on 777=> No success
Any idea’s how to solve?
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for e-farma.be
Using the webroot path /home/e-farma/public_html for all unmatched domains.
Waiting for verification…
Challenge failed for domain e-farma.be
http-01 challenge for e-farma.be
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: e-farma.be
Type: unauthorized
Detail: Invalid response from
http://e-farma.be/.well-known/acme-challenge/vf5y02SCULsGZwzCDO3fwE5E_uHvZfVeWmiQqpUZI9o
[62.171.165.232]: “\n\n403
Forbidden\n\nForbidden
\n<p”To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.