GCP OLS Wordpress Reset Initial Setup Script

#1
Hi, firstly to preface I am completely new to this and have only ever used GCP to deploy ols wordpress instances and am self-taught.

I have made a Machine Image backup in GCP and have created a new instance but now am wondering if its possible to reset the initial setup script for me to change domains and reapply SSL

The idea in my head is that if if i ever decide to change domains, i'd want to keep using the wordpress installation that i already have so is this possible?

Apologies in advance if this is the wrong area to talk about this. Any pointers in the right direction would be highly appreciated! (y)
 

Cold-Egg

Administrator
#2
If the domain is already set and SSL applied, you can only manually change it.

Steps:
1. Add/Update new domain from OLS Admin (https://docs.litespeedtech.com/cloud/images/wordpress/#step-2-add-domain-to-listener)
2. Update the WordPress domain manually (https://wordpress.org/documentation/article/changing-the-site-url/)
3. Once the new domain is visible, apply the certificate (https://docs.litespeedtech.com/cloud/images/wordpress/#step-3-certbot) and update the cert path via OLS Admin > Virtual Hosts > SSL

Hope the above information helps.
 
#3
I understand. thank you. that helps alot. I'll give it a go.

and say for example if i wanted to switch hosts from GCP to AWS I have found that migrating through the duplicator plugin as per instructions here: https://docs.litespeedtech.com/cloud/images/wordpress/#migrating-wordpress seems to be replacing all the inline url links to the ip address rather than the domain.

I have read online that to avoid this it's better to migrate on a server level, that is backing up the files and databases from A and restoring on B. Is that true?
 
Top