-
Notifications
You must be signed in to change notification settings - Fork 40
Installing Wordpress
Lets begin with setting up your new custom blank WP-Flex Wordpress boilerplate
The following instructions are just a repeat of the installation steps suggested by Chris Coyier and Jeff Starr Authors of Digging Into Wordpress
First and foremost prepare your custom install by setting up your wp-config.php file and creating your database
When you download the core files from WordPress.org, you end up with a .zip
file sitting there on your computer. Unzip it, and you have a folder called "wordpress" that is full of files. One option is to upload the contents of that folder right to the root directory of your website and start the installation process. Here is a slightly different approach.
Instead, rename that folder something strange and obscure, like "mynewawesomesite" and upload that folder to the root directory of your site. Then you say, "But wait! I don’t want my site’s URL to be http://mydomain.com/mynewawesomesite!" Of course not, good sir, that would be strange and obscure. You definitely want WordPress to control the root of your site. In order to do that, just copy the index.php file and the .htaccess
file from the "mynewawesomesite" folder and paste into the root directory. Then open the index.php file and change this:
require('./wp-blog-header.php');
…to this:
require('./mynewawesomesite/wp-blog-header.php');
You’ll now have to log in at http://mydomain.com/mynewawesomesite/wp-admin/,but WordPress will be in control of the root just as if that were its actual location.Once you have installed WordPress and logged in to the Admin area, go to Settings > General and ensure that the settings for your WordPress address (URL) points to http://mydomain.com/mynewawesomesite and Blog address (URL) points to http://mydomain.com. Of course, when choosing the name of your installation directory, you should use your own strange and obscure word.
Why go through these extra steps just to install WordPress? The benefits are twofold and significant:
-
Security through obscurity. Any evil bots scanning and probing your site looking for possible WordPress exploits probably won’t even be able to find your WordPress files.
-
It keeps your root directory clean. Nothing worse than a messy root directory. Except for maybe a hacked site