WordPress Starter Config

A set of files and rules to make development for WordPress websites over different servers a bit easier. Make your own config file for every development stage of a WordPress website.

Supported files

Add one of these files to the WordPress base directory on your server. For clarity use these befitting the development stage. If you are using a version management system like Git you should exclude these files.
local-config.php
dev-config.php
staging-config.php
production-config.php

Extra Debugging Options

Turn on WordPress debugging using the ?dev_debug=[keyword] at the end of your url. To use this, define the variable $dev_debug_keyword in config.php. Now use the supplied string as the [keyword].

Putting this to use

Start your WordPress project by unpacking the latest version in your development directory.

Add the entire WordPress root folder to Git.

Add the files inside the wp-starter-config directory to the WordPress root folder and rewrite wp-config.php. Rename gitignore.txt to .gitignore.

Remove any of the local-config.php, dev-config.php, production-config.php, staging-config.php files if you don't plan to use them. Add the database credentials and WordPress settings to the config files.
* Use local-config.php on the local stack.
* Use dev-config.php on the development server.
* Use staging-config.php on the staging server.
* Use production-config.php on the live server.