RHEL: Drupal install on CentOS5

PHP 5.3 is not supported on current Drupal (6.14), and CentOS's PHP version is still on 5.1.9. So the drupal installation needs a little bit of work.

1. Install MySQL

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
rpm -ivh epel-release-5-3.noarch.rpm</p>

wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -ivh remi-release-5.rpm

yum --enablerepo=remi install mysql mysql-server
2. Install PHP 5.2.9 from CentOS testing repository:

cd /etc/yum.repos.d
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
yum --enablerepo=c5-testing install php php-devel php-pear php-pecl php-mcrypt php-xml php-xml php-imap php-soap php-mbstring php-mysql php-cli php-mysql

3. drupal clean URL config (sample)
there are many ways to turn on clean URL. Here's how I do it:

AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Alias /drupal /var/www/drupal

4. PHP.ini

5. GD library

yum --enablerepo=c5-testing install gd gd-devel php-gd

6. Install drupal