WordPress Instance
Installation & Setup
This guide assumes you already know how to set up and install a basic WordPress instance.
You will first need to setup a directory on your local machine or on a remote server to house the WordPress files.
Once you have a working directory clone the entire WordPress Instance from our repo by running the following command:
$ git clone https://github.com/bmessenger/wordpress.git
This will add the all of the WordPress files, including the Underscores theme to your working directory.
Connect the Database
Next you'll need to ensure you have a Database up and running along with the required credentials to configure the wp-config.php file.
You will need the following:
Database Name ('DB_NAME')
Database User ('DB_USER')
Database Password ('DB_PASSWORD')
Database Host ('DB_HOST') *if applicable
Open up the wp-config-sample.php file and update the settings for each of the above, replacing the default strings with the credentials from your database.
We've already updated the database prefix and have restricted access to the Theme File Editor.
Change the unique keys and salts
While in the wp-config-sample.php file be sure to update the default unique keys and salts. These can be found just under the database credentials. To generate the new keys go to this URL: https://api.wordpress.org/secret-key/1.1/salt/
Copy the keys and paste them into the wp-config-sample.php file, replacing the default values.
Once you've made your updates save the file as wp-config.php.
Complete the Install
If you're on a remote staging server travel to the top level domain of your new staging site and follow the WordPress installation procedures.
You will be prompted to setup a new user and password.
WordPress Settings
Once you're logged into WordPress:
Go to Settings > General:
Update the Site Name to the name of the client
Remove the Site Tagline
Set the Timezone to 'New York'
Click "Save Changes"
Go to Settings > Reading:
Ensure the Search Engine Settings box is checked to 'Discourage search engines from indexing this site'
Click "Save Changes"
Go to Settings > Discussion:
Uncheck ALL boxes
Click "Save Changes"
Go to Settings > Permalinks:
Select the radio button next to Post name
Click "Save Changes"
Go to Appearance > Themes:
Select the Underscores theme (thegrove)
Last updated