How to change domain with existing ee setup?


First of all, great work! I really like the easyengine and optimization steps.

I setup a single site Nginx-WordPress-W3 on a Digital Ocean droplet. Now I want to link the WordPress installation to another domain. What is the best way to change the domain of the installation?

I assume you created and now you want to chnage the to

In this case:

cp -v /etc/nginx/sites-available/ /etc/nginx/sites-available/  
vim /etc/nginx/sites-available/

replace with

cp -av /var/www/ /var/www/ /var/www/  
ee site enable

Now lets delete if you don’t needed anymore
ee site delete --all

Please let me know if you are looking something else



This works, I only had to create a the folder: "var/www/". Is this correct?

And when I delete, do I also have to drop the database? Or is this the same database as for the new

ee site delete command reads database name from wp-config.php file. So even if database name is not changed, delete command can drop database.

For more details -

Hey there,

Thank you for your great support. Actually, I’ve done everything you mentioned above but cannot solve the problems yet. It still showing ‘welcome to nginx server’.

wordpress : Installed wordpress 3.9.1 multisite + w3 + nginx helper.
Have just 1 site. Didn’t activate sunrise yet.

  1. I’ve done DNS setting and domain is correctly pointing my droplet’s IP address. (digitalocean)
  2. I have 10 post + several pages in DB and trying to connect my new domain with this contents.
  3. I did everything correctly what Mitesh kindly mentioned above.
  4. When I typed ‘vim /etc/nginx/sites-available/’ this command on ssh there are some lines that pointing my old domains then I’ve changed those old domain to my new domain.
  5. Followed every steps + add some codes in wp-config.php


  1. And add some codes on functions.php in theme folder


  1. Result?

COULD YOU PLEASE HELP? My customers are complaining like hell. PLEASE.


It seems like you are facing lots of issues and I hope most of them as been already resolved.

Regarding the domain redirection issue you are facing, I think the domain mapping is not correctly done. Kindly cross check it.

Dear @Mitesh

Thank you very much for your input.
Well, Not a chance yet, still receiving same result. ‘welcome to nginx’. Actually I have no ideas how to reconfigure domain mapping. Could you please show me what is the best solution?

Please advice,


ee site delete --all

I didn’t perform this command yet. Should I do that? Everything has been copied to new folder named with new site name.

Actually I have no ideas how to reconfigure domain mapping. Could you please show me what is the best solution?

Domain mapping guide:

ee site delete –all

I didn’t perform this command yet. Should I do that? Everything has been copied to new folder named with new site name.

Did you import database to new site?
If yes and you don’t need files/database then you can delete that using

ee site delete --all command

I see that this topic is quite old, but it is the most relevant to the issue I’m having.

I spun up a new WordPress website using Easy Engine. The new website was set up using one domain (EXAMPLE.NET), for a client who has his live website up and running on EXAMPLE.COM

As far as the domains go, only the TLDs are different.

Structurally, the new website will be running WordPress MU and the old website is running on the standard version. To avoid any potential complications, I’ve manually imported all the content (posts, pages & media). I’m ready to modify the DNS of EXAMPLE.COM to point it to the new server’s IP Address, but I need to make sure my new “Easy Engine” server is ready.

So I have a couple questions, regarding these steps:

  1. Are these steps still accurate for the most recent version of Easy Engine? If not, please post the “newer/updated” steps.
  2. I don’t see any reference to duplicating the website’s database in these steps. Do these steps take care of duplicating the database? If not, what is the best process to do that?

I find it hard to believe a system as robust as Easy Engine, doesn’t have a built-in command to accomplish Domain Name Changes.

1 Like

It looks like the URL may have changed to:

So, in this instance, wouldn’t the better command be:

ee site delete --files

…which would leave the Database intact, for use by the newly created

Hello, I builded an client on digitalocean using ee site create --wpfc with the mysql db on an other machine. Now I would like to duplicate my client in order to have two clients with the same configuration but when i follow this istructions the new client give me the “Welcome to nginx!” page. How can i fix it?

Best regards

Hi I followed the above steps But got stuck at ee site enable I get error message site does not exist where as if i do cd /var/www/ i can see all my files moved from

You forgot to copy the new entry in sites-available to sites-enabled.

That fixed the ‘welcome to nginx’ issue for me.

yea this does not work. Making a copy of sites-available to sites-enabled does nothing… Any ideas?

ee site create --wp
cd /var/www/
rsync -vaz /var/www/ .
mysqldump oldsite_com > oldsite_com.sql
mysql newsite_com < oldsite_com.sql
wp option set home
wp option set site_url
ee site delete

That’s it, basically.

Of course you have to make sure both blogs use same database prefix, or make adjust on wp-config.php for the new site.


If only the sitename should be changed and the server should not be changed, you can do it without moving htdocs and mysql. You have just to rename webroot-dir and nginx-config-file and then update the ee-database. I use a simple shellscript for that from time to time:

If someone likes it…here is the script on pastebin:


great job, it works but it redirect the url to old site on multisite.

how to use that script ? thank you :smiley: (solved)