madebydavid/wordpress-skeleton

Wordpress Skeleton

Installs: 18

Dependents: 0

Stars: 2

Watchers: 1

Language: PHP

1.1.1 2014-09-22 21:03 UTC

README

This is version 1.1.1, using Wordpress 4.0

Wordpress Skeleton using composer. Add plugins and themes from WordPress Packagist.

1. Install composer if required:
$ curl -sS https://getcomposer.org/installer | php
2. Use composer to install this project:
$ php composer.phar create-project madebydavid/wordpress-skeleton my-wordpress-directory 1.1.1
$ cd my-wordpress-directory
3. Move the local config sample to become the real local config file
$ mv local-config-sample.php local-config.php
4. Change these settings in the local-config.php file:
define('DB_NAME', 'my-wordpress-database');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost'); 
define('WP_HOME', 'http://my-wordpress-site/');
define('WP_SITEURL', 'http://my-wordpress-site/wordpress');
5. Create the db:
$ mysqladmin -uroot create my-wordpress-database
6. Initialize using the included WP-CLI and you're ready to go.
$ cd vendor/wp-cli/wp-cli/bin/
$ ./wp --path=../../../../wordpress/ --url="http://my-wordpress-site/" db reset
$ ./wp --path=../../../../wordpress/ --url="http://my-wordpress-site/" core install \
    --admin_user=root --admin_password=password \
    --admin_email=my@email.goes.here.com \
    --title="My Site Title"