How to clone a Mautic between VPS's but diff sudomain url?

I have a mautic installed on a Digital Ocean VPS.

I would like to clone it and create a new mautic on a new VPS. Digital Ocean makes this easy via snap shots.

I would need to be able to access mautic at the the new IP. I assume then I simply update the A record from the new mautic subdomain to point to the VPS IP?

That should give me access to the new mautic using the access credentials from the original mautic, right?

What files would need editing and what edits would be needed if any? Or do i make changes in the config section of Mautic. Update the mautic url etc?

Would there be any SSL issues? The source mautic install / domain has an SSL cert.

Hi,

I think you would need to do the following:

  • Add new A record
  • Update all references of your old domain in mautic/app/config/local.php
  • Issue SSL certificate for new domain (that is unless you are using wildcard certificate)
  • Update apache/nginx config
  • Clear cache

Give it a try, if I forgot anything let me know.

Cheers,

I’ll give that a go and report back.

Also found this.

pinged you on slack