-
Notifications
You must be signed in to change notification settings - Fork 15
Installation
Daniel Bannert edited this page Jul 21, 2015
·
3 revisions
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 by issuing the Composer create-project
command in your terminal:
composer create-project gwa/bedrock-multisite-skeleton
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
The Bedrock Multisite has a few system requirements:
- PHP >= 5.4
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.
On Nginx, the following directive in your site configuration will allow “pretty” URLs:
location / {
try_files $uri $uri/ /index.php?$query_string;
}