Ok so, ive been running virtualmin for a few years and know enough to run a few websites. Normally when I have a problem i’ll search the forums for somone with a similar problem and its always helped, however… I don’t think anyone has done something as dumb as me before as I can’t find any help.
In a nutshell, I broke the server completely and didn’t take a backup before starting my changes (it was late and i was tired and fustrated… i know, i know!). I then restored a backup that I did have BUT two of my websites were created after the backup.
I have the website files and the databases are still there but its not showing in the sites available dropdown box and the websites are returning a 503 error. I’ve looked at the networking and the bind DNS config and added the websites where needed but the problem still persists. Apache sites available and sites enabled are showing [all] the websites and the ones that were present when i took the configuration backup are working properly.
any suggestions on where to look next? luckily these two websites are my own and my customers are working properly so it’s not urgent but I had put a shed load of work into them and I’ll be devastated if I cant get them back.
all help and suggestions will be appreciated! thanks
I am not an expert (newbie alert) but some options:
get pro license and see if the VM team can help
backup the files and DB, and run Virtualmin → system settings → Re-Check Configuration
Virtualmin → System Settings → import virtual server
This form can be used to bring an existing domain on your system under the control of Virtualmin.
Backup all of the db and files and get them working on another installation. delete the home directory on the live server, recreate and then populate with all of the files and db you have saved.
Thanks! I’ve tried the recheck config before to no avail but great suggestion doing the import server! It all looked successful until I tried to visit the website, still getting the same error!
I will try the final option tomorrow when I get paid so I can rent another VPS.
I have noticed that my php8 service isnt running and won’t start so im going to work on getting that sorted and see if it helps.
So, importing virtual server bought the site back into virtualmin but the site still didn’t load. I rolled back to the backup I made before that step and tried again (paying more attention to the “show what is to be imported” page) and noticed the bind value was missing.
I went to etc/bind/named.conf.local and copied one of the working sites entries, changing the domain name where it apeared:
zone “MY_DOMAIN.TLD” {
type master;
file “/var/lib/bind/MY_DOMAIN.TLD.hosts”;
allow-transfer {
127.0.0.1;
localnets;
};
};