Install Apache2 With PHP, Ruby, Python on CentOS 5

Install Apache with PHP (this is PHP 5.1.6):

yum 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

edit /etc/httpd/conf/httpd.conf:

vi /etc/httpd/conf/httpd.conf

and change DirectoryIndex to

[…]

DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl

[…]

restart httpd

service httpd restart

engineerball Written by: