Here is how to install Drupal on a Centos5 Linux installation
yum -y update yum ; yum -y updateyum -y install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel system-config-securitylevel-tuisystem-confi-firewall in CentOS 6cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.original
vi /etc/httpd/conf/httpd.conf and in two places change AllowOverride None to All (may not be needed in CentOS 6NameVirtualHost *:80service httpd startsystem-config-securitylevel-tui and enable firewall for ssh and http, plus port 10000 for webminecho "<html><head><title>Name of Server</title></head><body><h1>Name of Server</h1></body></html>" > /var/www/html/index.htmlhttp://servername/echo "<html><head><title>Test Page</title></head><body><?php phpinfo(); ?></body></html>" > /var/www/html/testphp.phphttp://servername/testphp.php
WMVER=1.630-1
wget http://prdownloads.sourceforge.net/webadmin/webmin-$WMVER.noarch.rpm
rpm -U webmin-$WMVER.noarch.rpm
system-config-firewall #to open port 10000
http://servername:10000yum -y install php-mysql mod_auth_mysql mysql-server php-gd php-mbstring/etc/init.d/mysqld startmysqladmin -u root password rootsqlpasswordwebmin / system / bootup and shutdownmanual, perl, proxy_ajp, python, squid, webalizeravahi-daemon, gpm, haldaemon, hidd, irqbalance, mdmonitor, netfs, nfslock, pcscd, yumupdatesdyum install subversionwget "http://proj.ri.mu/installphpmyadmin.sh"
bash installphpmyadmin.shsetsebool -P httpd_disable_trans 1
service httpd restartcd /etc/yum.repos.d
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
pecl uninstall apc #in case it was installed
yum -y --enablerepo=c5-testing update php*
service httpd restart
#
# to install APC
#warning: backup your httpd.conf file first, as this may overwrite it
yum -y install gcc httpd-devel
yum -y --enablerepo=c5-testing install php-devel php-pear
pecl -d memory_limit=16M install apc
echo "extension=apc.so" > /etc/php.d/apc.ini
service httpd restart
cp /usr/share/php/apc.php /var/www/html # and visit apc.php to test it is working
cp /usr/share/pear/apc.php /var/www/html # it may be here instead
yum install -y php-pear php-devel httpd-devel
pecl install apc
echo "extension=apc.so" > /etc/php.d/apc.ini
service httpd restartCommand line config of ports by installing system-config-firewall
Then configure services with ntsysv