Here is how to install Drupal on a Centos5 Linux installation
yum -y update yum ; yum -y update
yum -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-tui
system-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 *:80
service httpd start
system-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.html
http://servername/
echo "<html><head><title>Test Page</title></head><body><?php phpinfo(); ?></body></html>" > /var/www/html/testphp.php
http://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:10000
yum -y install php-mysql mod_auth_mysql mysql-server php-gd php-mbstring
/etc/init.d/mysqld start
mysqladmin -u root password rootsqlpassword
webmin / system / bootup and shutdown
manual, perl, proxy_ajp, python, squid, webalizer
avahi-daemon, gpm, haldaemon, hidd, irqbalance, mdmonitor, netfs, nfslock, pcscd, yumupdatesd
yum install subversion
wget "http://proj.ri.mu/installphpmyadmin.sh"
bash installphpmyadmin.sh
setsebool -P httpd_disable_trans 1
service httpd restart
cd /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 restart
Command line config of ports by installing system-config-firewall
Then configure services with ntsysv