SSL issues when restoring backup to new server

Hi,

I’m currently in the process of moving my sites to a new VPS. I’ve backed them up on my old server and uploaded and restored them to the new one.

Both are running Ubuntu 16.04 64 bit, all the software versions are the same, and no errors are brought up during the restore.

When I look at the SSL cert details for each virtual server they look fine, and letsencrypt allows me to update the certs if I want to, again no errors.

However, when I load the sites they all try to load with the self-certificate of the first site, and not their own letsencrypt cert.

All the virtual hosts are showing the correct IP addresses and ports in Apache’s Existing Virtual Hosts page, however there is one Default Server (Automatic) that says Any for IP and port.

How can I get each site to load the correct cert? I feel like i’m missing something basic…

Thanks in advance

Sorry to double post, but I tried restarting the server to see if that would help, and now Apache won’t run, with this error:

AH00526: Syntax error on line 37 of /etc/apache2/sites-enabled/0-.conf: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration

I installed the php7.0 extension for Apache, restarted the server and at least it runs, but it now serves a download of application/x-httpd-php instead of the pages.

I’m really struggling here, is backup and restore broken? I followed the instructions here to the letter:

https://www.virtualmin.com/documentation/system/migrate