This is a boilerplate and installation script for Wordpress with the WP core as a dependency and some other stuff.
- You want to have multiple runtime environments for development and production.
- You want a better folder structure for your Wordpress installation
- You want to automate some setup steps
- you want to use https on your site
- Download and unpack the current stable Wordpress core in your language of choice
- Migrate the language files from core
- Rename the
core
andwp-content
folders - Create an
uploads
folder outside of wp-content - Set runtime environment configurations.
- Create a random DB prefix
- Create fresh secret keys for each runtime environment.
- Install a couple of MU-Plugins
- Extract the distribution zip in your web root as wordpress-boilerplate
- Surf to http://your_host.dev/wordpress-boilerplate/
- Follow the instructions
- Double check
wp-config.php
and edit your environment configswp-config-*.php
- Set your environment (see below), default is 'dev'
- Continue with the usual Wordpress install in http://your_host.dev
Create or edit a file /wp-config-environment.php
with a content like
<?php
define('WP_SERVER_ENVIRONMENT', 'production');
Add to your server setting:
location / {
fastcgi_param WP_SERVER_ENVIRONMENT env;
}
Add to your to your VirtualHost
or Location
section:
SetEnv WP_SERVER_ENVIRONMENT env
- fix environment fallbacks
- moved from bower to npm
- simplified the mu-plugins
- forced-https is a default now
- improved config defaults for installation
- improved and cleaned up .htaccess template
- improved wp-config-creation routine
- fixed string replacement in template compilation
- refactored the core class
- little stuff and tests
- added security to htaccess
- added wpnp-sanitize-upload as mu-plugin
- added automatic SSL protocol detection
- added db repair constant to wp-config
- bugfix corrected upload folder after environment change
- bugfix wp debugging mode
- added version option
- added install from domain root in htaccess
- renamed htaccess and gitignore
- bugfix wpnp-server-env
- added upload folder settings
- added mu-plugin for wp init and sanitize file uploads
- added a lot of constants to wp-config
- added a lot to .htaccess
- streamlined runtime environments and debug settings