Archives March 10, 2010

How to Install WordPress on CentOS 5 in five minutes flat

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 ...

— Andrew


How to Install Drupal on CentOS 5 in five minutes flat

Ok so you're in a hurry to install Drupal. Don't fret. It is esay as pie!

Run the following commands from a root shell!

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

echo 'CREATE DATABASE drupal;' | mysql
echo "GRANT ALL PRIVILEGES ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'drupal';" | mysql
echo "FLUSH PRIVILEGES;" | mysql

cd /var/www/html/
wget http://ftp.drupal.org/files/projects/drupal-6.16.tar.gz
tar -xzf drupal-6.16.tar.gz --strip-components=1
rm drupal-6.16.tar ...

— Andrew


Site theme originally by styleshout.com