The last time I looked at wordpress was probably 3 years ago. At the time I was evaluating blog software for my personal blog and ended up choosing nucleus. Since then however, it seems that nucleus hasn't been updated very frequently and is starting to feel a bit stale to me.
A few weeks ago my linux server crashed and while installing Fedora Core 9 I noticed that wordpress is now packaged as an option. Curious to see how it has developed I selected. The problem now is, how do I use it?
By default, with FC9, the DocumentRoot variable for your Apache installation is /var/www/html and the default location for the wordpress installation is /usr/share/wordpress. Change directory to your DocumentRoot and create a symbolic link to the wordpress directory:
[user@myserver ~] cd /var/www/html
[user@myserver html] ln -s /usr/share/wordpress wordpress
[user@myserver html]$ ls -al wordpress
lrwxrwxrwx 1 root root 20 2008-06-25 21:37 wordpress -> /usr/share/wordpress
Now you need to create a database for wordpress and a user account to access it. I'm assuming mysql is already up and running, if this isn't the case leave a comment and i'll try and help you out.
# Login to mysql
[stone@stockade log]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 320
Server version: 5.0.51a Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql;
Database changed
# Create a database for wordpress
mysql> create database wordpress;
Query OK, 1 row affected (0.00 sec)
# Create an account for wordpress. Note: You should use # a more secure password than what I am using below.
mysql> create user wpadmin identified by "wpadmin";
Query OK, 0 rows affected (0.00 sec)
# Grant privileges on the wordpress database to your # wordpress user account. Note % isn't very secure.
mysql> grant all on wordpress.* to 'wpadmin'@'%';
Query OK, 0 rows affected (0.00 sec)
Now that the database is setup, you need to edit your wordpress configuration so it knows which database to connect to.
[user@myserver html]$ cd /etc/wordpress
[user@myserver wordpress]$ vi wp-config.php
# Change the following three lines to reflect the setup
# created above. You will need to do this as root.
# Once the changes are done, save the file.
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'wpadmin'); // Your MySQL username
define('DB_PASSWORD', 'wpadmin'); // ...and password
Start your browser and goto http://myserver/wordpress and you should see the Wordpress Welcome Screen.