Creating a Development Environment

Jump to navigation Jump to search

Creating a development environment

Work in Progress - Not Yet Complete

Obtaining the Source

git init
git remote add origin
git fetch origin
git merge origin/master

The "" directory will be your document root.

Setup a Virtual Host

Add an IP/hostname mapping to your hosts file (e.g., /etc/hosts). For example:     occupyboston.local

Add a virtualhost to your web server. For example:

 <VirtualHost localhost:80>
   ServerName occupyboston.local
   DocumentRoot /PATH/TO/

Create a Database


$ mysql -uUSERNAME -p
mysql> create database occubos_wp;
mysql> exit

Configuration Setup

 cd   # this is the document root
 mv wp-config-sample.php wp-config.php

Configuration Changes

Edit the wp-config.php file; focus on the below lines.

define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

Modify 'database_name_here', 'username_here', 'password_here' to the correct values above.

Additional Setup for Plugins

We enable several MediaWiki plugins, and some of these plugins require additional database tables. To install the additional database tables:

cd mediawiki
php maintenance/update.php

At this point, you should be able to create and edit pages in your development environment.

Miscellaneous Notes

If you'd like to look at boggs server configuration for, you'll find it in ~obwiki/

The live document root is ~obwiki/ Note that this is a checked out copy of git repository.