WordPress 2.5 on a fresh CentOS 5.0 install – part 1

I’m doing this on my new host – Slicehost (more about that later.) It’s VPS, which gives you a clean install of your choice of Linux Operating Systems (they have seven or eight choices.) In this case, I’m using CentOS, since it’s close to what we use at work.

Once you have the base install laid down, the first step is to login and change your root password.

useradd gregcain
passwd gregcain
usermod -a -G wheel gregcain
using visudo, change

## Allows people in group wheel to run all commands
# %wheel  ALL=(ALL)       ALL
## Allows people in group wheel to run all commands
# %wheel  ALL=(ALL)       ALL

Without logging out of your other account, log in using your non-privileged account. Update your OS install, if it’s necessary..

sudo yum update

Now install Apache, MySQL and PHP (and dependencies.)

sudo yum install php php-mysql httpd mysqlclient10 mysql-server

Configure the services to start at login

chkconfig –list [to see the services and their run levels.]

chkconfig –level 345 httpd on

chkconfig –level 345 mysqld on

Now would be a good time to reboot to make sure these service start at login.

Set a password for your mysql root account…

/usr/bin/mysqladmin -u root password ‘yournewpassword’

Test your PHP implementation.
vi /var/www/html/phpinfo.php

add one line
<? phpinfo(); ?>

Point your browser to
Pay special attention to the MySQL stanza, listed alphabetically.
Now we have all the bits in place.