published on: mingster

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

rpm -ivh epel-release-5-3.noarch.rpm</p>

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