Last night I installed the latest updates for webmin/virtualmin on my server and restarted. Webmin would not start, nor would httpd, postfix or dovecot. Trying to start the webmin service resulted in the following error:
Failed to Open SSL Key /home/user/ssl.key at /usr/libexec/webmin/miniserv.pl
For some reason that file no longer existed. I restored a backup and that got webmin to start, but httpd and the other services wouldn't.
systemctl status httpd.service and
journalctl -xn were pretty unhelpful here, but running
apachectl configtestlisted errors with suexec.
I followed a tip about disabling SSL on all virtual sites and this got apache and the other services to start again. I re-enabled SSL on my default site and this worked but I am not able to re-enable SSL on any of my other sites. I get the following error:
certificate authority file is not valid : Data does not start with line -----BEGIN CERTIFICATE-----
So now my default site loads, but doesn't work. It complains about permission errors which suggest apache is maybe being run as a different user? I notice that in Webmin -> Servers -> Apache Webserver -> Users and Groups both user and group are set to run as "apache". Tried switching this to default and apache fails to boot again.
I'm pretty stumped at this point. It appears something knocked out my ssl certificate with the initial update, and this has had some knock on effects with apache? Where do i go from here?