WordPress quick reference (on Fedora Core 4)

2 01 2007

For personal reference.  The SQL and WordPress config part of the deal.

Make a directory under the web-root and move the WordPress scripts in there:

[root@tank html]# pwd
/var/www/html
[root@tank html]# mkdir wordpress
[root@tank html]# cd wordpress
[root@tank wordpress]# mv /home/plumber/wordpress/* .
[root@tank wordpress]# ls
index.php wp-comments-post.php wp-links-opml.php wp-rss2.php
license.txt wp-commentsrss2.php wp-login.php wp-rss.php
readme.html wp-config-sample.php wp-mail.php wp-settings.php
wp-admin wp-content wp-pass.php wp-trackback.php
wp-atom.php wp-feed.php wp-rdf.php xmlrpc.php
wp-blog-header.php wp-includes wp-register.php

Now, make the SQL database:

[root@tank wordpress]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.1.19
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database wordpress;
Query OK, 1 row affected (0.21 sec)
mysql> grant all on wordpress.* to wordpress@localhost identified by 'password';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
mysql> exit
Bye
[root@tank wordpress]#

Copy the sample config file and edit it appropriately for the installation:

[root@tank wordpress]# pwd
/var/www/html/wordpress
[root@tank wordpress]# cp wp-config-sample.php wp-config.php
[root@tank wordpress]# vi wp-config.php

The file looks like this:

<?php
// ** MySQL settings ** //
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'wordpress'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...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');
?>

Not finished yet though….

Advertisements

Actions

Information

One response

7 02 2009

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: