When I try to re-check the Configuration, an error pops up:
.. your system is not ready for use by Virtualmin : The feature Virus filtering cannot be disabled, as it is used by the following virtual servers : ???.com
I stopped the Spamassassin process and tried re-checking the configuration again.
But no luck, same virus filtering error pops up.
Does anyone have any suggestions for me to correct this error?
After disabling virus filtering on the only virtual server on the new server, I restored the Virtualmin configuration. Then Re-check Configuration was able to start.
But only to stop with error on Postfix configuration. It had the old server’s hostname in there.
—> I changed the Postfix config to the new server hostname
—> Re-check Configuration was able to complete. Ready for Virtualmin!
And I notice that BIND has the old hostname in there now also.
How to restore and not have the old hostnames get transferred over? Or is it meant that the new server has the same hostname as the old server?
Where can I change the default primary DNS server? Re-check configuration shows the old ns1:
BIND DNS server is installed, however, the default primary DNS server ns1.???.com resolves to IP address ??? which does not resolve to an IP address of a network interface on this system.
First I restored only parts of it, email and templates - worked better, eventually noticed another issue so last server I created a few days ago I didn’t use it at all. I did have notes on most of the changes so I could do them manually.
Another problem: error when trying to change the PHP resource limits for the migrated virtual server (haven’t updated the domain registrar to point to the new server, if that matters):
Failed to save resource limits : Don’t know which file to add to
You can change php limits system wide:
Webmin, Tools, PHP Configuration, then on the right the greyed out (part of the new funky button design) Manage is actually a working button, then Resource Limits.
I don’t know why, but Webmin > Tools > PHP-Configuration doesn’t show /etc/php/8.x/fpm/php.ini
That’s why I went the Virtualmin route to adjust the PHP Resource Limits.
In any case, due to the previous misalignments when I migrated the old virtualmin configuration to the new server, I think the mistake that I’m making is that:
the hostname of the new server must be the same as the old server ???
I don’t know if that’s the case, or whether I’m simply not following the instructions correctly.
I think that I will try:
reinstall the OS
use the new server to create the to-be-migrated-virtual-server
only use the 2nd virtualmin migrate command on the new server to migrate the data over
virtualmin restore-domain --source /root/backups/ --all-domains --all-features
#backup of the old server
mkdir /root/backups
virtualmin backup-domain --dest /root/backups/ --all-domains --all-features --newformat --all-virtualmin
#Send the backup to the new server
scp -r /root/backups root@new-server.com:/root/
#restore in the new server
virtualmin restore-domain --source /root/backups/virtualmin.tar.gz --all-virtualmin
virtualmin restore-domain --source /root/backups/ --all-domains --all-features
Did the new server have a different hostname than the previous server? Did you have any problems like I’m having, with old references being retained on the new server?
I’ve been getting that on new servers lately, no relation to the restore, its before any restore.
I just disable the virus scanner in Features and Plugins.
Did you run re-check config first?
Yes, thanks. Your solution was the solution that I needed to get the Re-check configuration to complete after migration.
Before migration, the Re-check configuration completed successfully.
I seem to have a working migrated system after creating the virtual server on the new server (did not run the backup of the Virtualmin settings) and restoring the data.
On the new server, just had to remove old IPV6 DNS records (next time, I guess that I’d better setup the new IPV6 address on the new system before migrating over the old data).