View Single Post
  #17 (permalink)  
Old 04-15-2007, 09:04 PM
funkypilchard funkypilchard is offline
Senior Member
 
Join Date: Apr 2007
Posts: 120
iTrader: 0 / 0%
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
funkypilchard is on a distinguished road
Default

Firstly you will need to gain access to your web space control panel, in my case it is a cpanel, it is straight forward to create a new database, you simply click on create new database, then create a new user and password, assign the user to the database you have just created allowing all privileges.
Cpanel should tell you what the host is, mine is localhost. (write down or save the user name and password, my database added my domain name and a _ before the user name etc).

Then you will need to download your blog files ready for editing, I used word press: WordPress › Blog Tool and Weblog Platform there are very good instructions here for installation but it doesn't tell you everything: How to install a WordPress blog in cPanel at Metafluence

You then unzip the file and open the php file that will drive the database, in word press that file is sample-wp-config.php
DO NOT open and edit in wordpad. Notepad was what I used.

For this example lets say my website is called www testwebsite.com
You need to add three things.
OK the code in sample-wp-config.php looked exactly like this after I had edited the file:

<?php
// ** MySQL settings ** //
define('DB_NAME', 'testwebsite_blog'); // The name of the database
define('DB_USER', 'testwebsite_testuser'); // Your MySQL username
define('DB_PASSWORD', 'mypasswordgoeshere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
Reply With Quote