Middlebury

Difference between revisions of "WordPress Development"

(Configuration)
(Configuration)
Line 15: Line 15:
 
# cd to your wordpress directory: <pre>cd ~/public_html/wordpress/</pre>
 
# cd to your wordpress directory: <pre>cd ~/public_html/wordpress/</pre>
 
# Create a local copy of your WordPress configuration<pre>cp wp-config.php-midd wp-config.php</pre><pre>-define('DB_NAME', 'username_wordpress');</pre><pre>+define('DB_NAME', 'yourname_wordpress');</pre><pre>-$base'/';</pre><pre>+$base'/~yourname/wordpress/';</pre>
 
# Create a local copy of your WordPress configuration<pre>cp wp-config.php-midd wp-config.php</pre><pre>-define('DB_NAME', 'username_wordpress');</pre><pre>+define('DB_NAME', 'yourname_wordpress');</pre><pre>-$base'/';</pre><pre>+$base'/~yourname/wordpress/';</pre>
 +
# Create a local copy of your .htaccess file:<pre>cp .htaccess-midd .htaccess</pre><pre>-RewriteBase</pre><pre>+RewriteBase /~yourname/wordpress/</pre>

Revision as of 16:28, 10 August 2011

WordPress is used at Middlebury by a variety of individuals and groups including faculty, staff, students, administrators, designers, developers, librarians, technologists, academic and administrative departments, offices, student organizations, courses, initiatives, projects and so on. This document compiles recommendations about how Wordpress at Middlebury should be configured, updated and maintained.

Initial Setup

Cloning the central repository

Your ssh keys must be authorized to access the central repository. All chisel accounts' ssh keys have been authorized to do so at the time of this writing. Contact Adam to add ssh keys for other machines (such as your desktop) if desired.

  1. cd to your public_html directory on chisel:
    cd ~/public_html/
  2. clone the repository and create a working directory with git-clone:
    git clone git@chisel.middlebury.edu:wordpress-mu.git wordpress
  3. cd into new wordpress directory
    cd wordpress
  4. initialize submodules and then update:
    git submodule init
    git submodule update

Configuration

  1. cd to your wordpress directory:
    cd ~/public_html/wordpress/
  2. Create a local copy of your WordPress configuration
    cp wp-config.php-midd wp-config.php
    -define('DB_NAME', 'username_wordpress');
    +define('DB_NAME', 'yourname_wordpress');
    -$base'/';
    +$base'/~yourname/wordpress/';
  3. Create a local copy of your .htaccess file:
    cp .htaccess-midd .htaccess
    -RewriteBase
    +RewriteBase /~yourname/wordpress/