Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Configuring your server

Carl Alexander edited this page Feb 3, 2017 · 8 revisions

Contents

  1. Add your server to the hosts file
  2. Run the common DebOps playbook
  3. Run the WordPress DebOps playbook
  4. Connecting to your server
  5. Your server is configured!

Configuring your server

Now that you created a server, it's time to configure everything. This only requires typing two commands, but each takes between 5 and 10 minutes. If you run into any problems, take a look at the "Known issues" page of the wiki to troubleshoot it.

This page assumes that you've already completed all the installation steps. If you haven't or aren't sure, take a moment to go over them.

Add your server to the hosts file

Before you can begin, you'll need to add the address of your new server to the hosts file. It's found in inventory directory of your project. The address needs to be added under both the [debops_all_hosts] and [wordpress].

# inventory/hosts

[debops_all_hosts]
wordpress.example.com

[wordpress]
wordpress.example.com

Run the common DebOps playbook

Your first step is to install and configure all essential services of your server. This creates the foundation needed to install and configure WordPress. You first need to type this command to get started:

$ debops bootstrap -u root

You'll get the following warning almost right away.

PLAY [Gather default and custom facts] ****************************************

GATHERING FACTS ***************************************************************
The authenticity of host '123.456.78.90 (123.456.78.90)' can't be established.
RSA key fingerprint is 11:eb:57:f3:a5:c3:e0:77:47:c4:15:3a:3c:df:6c:d2.
Are you sure you want to continue connecting (yes/no)?

Type yes and Enter to continue. This step is quick and only takes 1-2 minutes. Once it's done, you want to type this command:

$ debops

This next step can take 5-10 minutes. So go grab a coffee or take stretch while the magic happen.

Run the WordPress playbook

Now, you still don't have a configured WordPress site. You still need to install and configure WordPress. This is done using this command.

$ debops wordpress

You don't need to wait for a prompt this time. You can just sit and relax. This step can take 5-10 minutes as well.

Connecting to your server

Once the second script is done, you'll have a server that's configured and functional. You can connect to it using SSH like this:

$ ssh wordpress.example.com

Your server is configured!

That's it! The only thing left is for you to use it now! You'll want to refer to the "Using your WordPress site" page of the wiki for detailed instructions.