
|
Tutorial: Set up Wordpress on CentOS 5.1
Since there doesn’t seem to be any obvious how-to on readying CentOS
5.1 for Wordpress, I might as well post what I did.
Install the core packages: php, php-gd, php-mysql, mysql,
mod_auth_mysql, mysql-server
Set the root mySQL passwd & create wordpress database:
# mysql -u root
>SET PASSWORD FOR root@localhost=PASSWORD(’SecrtPasswd’);
Create a DB for wordpress to use:
>CREATE DATABASE wordpress;
Give full access of wordpress DB to root:
>GRANT ALL PRIVILEGES ON wordpress.* TO “root”
>IDENTIFIED BY “SecrtPasswd”;
Create wordpress user, grant DB privs, and set password:
>grant CREATE,INSERT,DELETE,UPDATE,SELECT on wordpress.* to
wordpress@localhost;
>set password for wordpress =
password(’SecrtPasswd2′);>FLUSH PRIVILEGES;
>EXIT;
Get Wordpress tarball from: http://wordpress.org/download/ , and
extract it to /var/www/html/blog/
Edit the following lines of wp-config.php to look like this:
define(’DB_NAME’, ‘wordpress’); // The name of the database
define(’DB_USER’, ‘wordpress’); // Your MySQL username
define(’DB_PASSWORD’, ‘SecrtPasswd2′); // …and password
Browse to http://localhost/blog/wp-admin/install.php
That’s all it takes for a simple installation. Change the directories
to suit your server.
|
|
|
|