Ok, so you need to install WordPress on a CentOS or Red Hat server, and the boss has only given you five minutes, then read on because here you can do it in less...
This how to assumes that you have a clean installed CentOS 5 or Red Hat server, but it will probably work just fine with Fedora as well. If you already have MySQL or Apache installed then you might need to make provisions for the existing setup to avoid any conflict.
So without further waffle, here it is. Fire up a root shell and continue:
Install the required system packages
yum -y install mysql-server httpd php php-mysql unzip wget chkconfig httpd on chkconfig mysqld on /etc/init.d/mysqld start /etc/init.d/httpd start
Create a WordPress database and MySQL User
NB this assumes that your mysql root user has no password, which is generally considered a bad idea for production systems, although for the purposes of this howto this is sufficient to get you up and running.
echo 'CREATE DATABASE wordpress;' | mysql echo "GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'an-awesome-password';" | mysql echo "FLUSH PRIVILEGES;" | mysql
cd /var/www/html wget http://wordpress.org/latest.zip unzip latest.zip rm latest.zip # remove superfluous directory mv wordpress/* ./ rmdir wordpress/ # wordpress needs these to be writable by the webserver mkdir wp-content/uploads wp-content/cache chown apache:apache wp-content/uploads wp-content/cache
# copy default config cp wp-config-sample.php wp-config.php # set username / password # make sure you change your password to something more awesome sed -i -e 's@putyourdbnamehere@wordpress@' wp-config.php sed -i -e 's@usernamehere@wordpress@' wp-config.php sed -i -e 's@yourpasswordhere@an-awesome-password@' wp-config.php
That's it. Stop the clock. The server configuration is complete, and your job is safe. Now fire up your web browser and complete the online configuration: