Skip to content

Installation

Daniel Bannert edited this page Jul 21, 2015 · 3 revisions

Install Composer

Bedrock Multisite utilizes Composer to manage its dependencies. So, before using WordPlate, you will need to make sure you have Composer installed on your machine.

Install Bedrock Multisite

Via Composer Create-Project

Install Bedrock Multisite by issuing the Composer create-project command in your terminal:

composer create-project gwa/bedrock-multisite-skeleton

Install WordPress

Update environment variables in .env:

  • DB_NAME - Database name
  • DB_USER - Database user
  • DB_PASSWORD - Database password
  • DB_HOST - Database host
  • WP_ENV - Set to environment (development, staging, production)
  • WP_HOME - Full URL to WordPress home (http://example.com)
  • WP_SITEURL - Full URL to WordPress including subdirectory (http://example.com/wp)

Access WP admin at http://example.com/wp/wp-admin

Server Requirements

The Bedrock Multisite has a few system requirements:

  • PHP >= 5.4

Configuration

Pretty URLs

Apache

The framework ships with a public/.htaccess file that is used to allow URLs without index.php. If you use Apache to serve your WordPlate application, be sure to enable the mod_rewrite module.

Nginx

On Nginx, the following directive in your site configuration will allow “pretty” URLs:

location / {
  try_files $uri $uri/ /index.php?$query_string;
}