Two separate Wordpress installs, one VPS


#1

I am wanting to launch two small wordpress websites for some friends of mine, on one digitalocean droplet server. Am I correct in assuming I just need to run the command ee site install twice? I am a bit lost on what needs to be done to configure the virtual hosts for nginx to make this work. Am I also correct in assuming they need to be separate installations, since they’re two different entities? The two sites are not related to eachother and will have separate domain names.


#2

First you need to install easyengine
curl -sL rt.cx/ee | sudo bash

Once its install, we need to install nginx php5-fpm and mysql
ee system install

Lets create friend1.com
ee site create friend1.com --wp

Lets create friend2.com
ee site create friend2.com --wp


#3

I believe there is more to it than that. Could you explain how to set up sites-available virtual host and DNS? That is where I am lost.

/sites-available folder contains

  • 22222
  • friend1.com
  • friend2.com
  • default

I’ve read some of NGINX wiki, but I am unsure if my error is with virtual hosts and/or setting up the DNS properly.


#4

@adonnan

EasyEngine can automatically set vhost and all the other thing when you issue ee site createcommand

Also that you need to replace friend1.com and friend2.com in above example with your friends domain names.

After that you need to change A record (DNS) for your friend website to your server ip address


#5

How can you work on the site you’ve created without redirecting the domain name right away. I have multiple sites. I have a couple of domain names pointing to the server and just created a new site which I need to populate before making live. How do I go about populating that WP site?

Thanks.


#6

I am assuming your new site example.com is hosted on 1.1.1.1 ip address

I need to populate example.com before making live.

For this you need to follow below steps in your local machine:

sudo vim /etc/hosts

Add folling line in above file
1.1.1.1 example.com www.example.com

Now open example.com in your web-browser


#7

Hello @adonnan and @ahmedreza

I hope your query is resolved. I am closing this support ticket for now.

Feel free to create a new support ticket if you have any queries further. :slight_smile:


#8