ehiale
By:
ehiale

Two WordPress sites on one droplet with VestaCP

January 24, 2017 212 views
WordPress Ubuntu 16.04

Hi everybody, I'm really new to VPS and only have some experience with CPanel, so maybe my question is stupid, but I read every tutorial available, and I still can figure out how to solve my problem.

I want to install two WordPress websites on the same droplet with Ubuntu 16.04.01.
I was suggested to use VestaCP to manage it, and somehow I succeeded in installing one of the websites. Now I want to go for the second one.

Here's what I've done so far:
-installed VestaCP
-created one domain and one DB for one of the sites
-installed WordPress in the public_html folder using FileZilla
-exported to the new WordPress installation the website (files and database) using a plugin called Wp All-In-One Migration

Now I am stuck: could you please help me understand what should I do to install the other website? Where should I put it?

Thanks!

1 Answer

@ehiale

You can add new domains by logging in to VestaCP, clicking on Web, and then finally clicking on the green + icon. Each domain that you create will have a home directory created for it below the home directory of the user you're logged in as.

For instance, if you're logged in as admin, this users home directory is:

/home/admin

and each domain that you create as that user will be located in:

/home/admin/web

So, for example, if you created domain01.com as the admin user, that domains home directory would be:

/home/admin/web/domain01.com

... and you'd want to upload your files (i.e. WordPress) to:

/home/admin/web/domain01.com/public_html

Once your domain is setup and you've uploaded your files to the proper directory, you would then need to create a database for your WordPress instance.

From the VestCP control panel, you'd look back to the top navigation where you clicked on Web and instead click on DB, click the green + icon, and fill out the details for the database you want to create. You'll use that information when you run the installer for WordPress.

Have another answer? Share your knowledge.