-
Notifications
You must be signed in to change notification settings - Fork 66
How to configure a server for a Bedrock project
Bedrock is a popular WordPress project structure. It lets you use WordPress with modern PHP tools like composer. It also follows modern web development practice such as twelve-factor app.
But Bedrock projects also have a unique folder structure that isn't the same as a regular WordPress project. Because of this, you can't use a regular WordPress server installation to host a Bedrock project. This guide will show you how to use DebOps to configure a new server for a Bedrock project.
This guide assumes that you're familiar with how to customize your server. If you don't know how or aren't sure, take a moment to go over this guide first.
The project folder structure isn't the only unique aspect of a Bedrock project. A Bedrock project also has plugin and theme installation and updating disabled. This includes automatic updates as well.
This means that, once DebOps finishes configuring your server, that's it. Everything will be locked down. You won't be able to install or update plugins, themes or WordPress. You can only update your Bedrock project using composer.
Telling DebOps to configure a server for a Bedrock project is quite easy. You only need to set the wordpress__install_type
option in the vars.yml
customization file of your server. Here's an example vars.yml
for a server at ``wordpress.example.com`:
# inventory/host_vars/wordpress.example.com/vars.yml
wordpress__install_type: 'bedrock'
You can't convert an existing WordPress server to use Bedrock. This means that you'll need to configure a brand new server if you want to create a Bedrock server. This means running the standard debops
command.
$ debops bootstrap -u root
$ debops
$ debops wordpress
Getting Started
Adjusting performance
Cookbook
- How to configure a server for a Bedrock project
- How to configure multiple WordPress sites on a single server
- How to configure Varnish
- How to create a multisite network
- How to customize your server
- How to manage additional users
- How to manage WordPress plugins
- How to secure your WordPress site
Troubleshooting
Appendix