Archive for the ‘Web Development’ Category

Install (Set Up) WordPress from Subversion

This is a quick and simle guide, installing from subversion is fantastic because you pull down the most recent version from the beginning and doing updates is as simple as running another subversion command in the webroot. Make sure you have subversion installed by running this command:

sudo apt-get install subversion

Get WordPress Files

So to install wordpress from subversion go ahead and make a directory someplace in the webroot and run this command to pull down wordpress:

svn co http://svn.automattic.com/wordpress/trunk .

Now remember that trailing period, that will specify to copy to the directory that you are in.

So when you want to do an update all you have to do is go back to that directory in which you pulled down wordpress and type:

svn up

Prepare the Database

The very basics, you need to create a new schema and user, give that user permissions to the schema from a local connection. I would supply some pretty pictures for this right now but for some reason I cannot connect to my own database at the moment…. Grrr. I will solve that later

Setup a configuration file

You should still have your terminal in the directory the blog was in, now we have to setup a configuration file to finish the install. Run this command to move the sample configuration file to the configuration file that wordpress is looking for:

mv wp-config-sample.php wp-config.php

Now you need t o edit that config file to have the proper variables for your database.  Here is an example, most of the settings are strait forward however you may want to change your table prefix for security/database reasons:

define(‘DB_NAME’, ‘putyourdbnamehere’);

define(‘DB_USER’, ‘usernamehere’);

define(‘DB_PASSWORD’, ‘yourpasswordhere’);

define(‘DB_HOST’, ‘localhost’);

$table_prefix  = ‘wp_’;

I typically install all blogs to a single schema in the database, so changing the table prefix is something that is very important so they can all co-exist.