System: CentOS 5.x
Package Required:
epel-release-5-4.noarch.rpm
remi-release-5.rpm
1. Installation Preparation
# #Install Remi Repository on Rhel/centos 5.0-5.9-32 Bit # #
RPM-UVH http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
# #Install Remi Repository on Rhel/centos 5.0-5.9-64 Bit # #
RPM-UVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
2. Install apche php mysql
Yum--enablerepo=remi,remi-test install httpd mysql mysql-server php php-common-y
3. Install Apache Extension
Yum--enablerepo=remi,remi-test install httpd-manual mod_ssl mod_perl mod_auth_mysql httpd-devel-y
4. Install PHP extensions
Yum--enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo \
Php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli \
Php-pear Php-pdo
5. Install MySQL extension
Yum--enablerepo=remi,remi-test install MYSQL-CONNECTOR-ODBC mysql-devel libdbi-dbd-mysql
6. Start and verify
Service mysqld Start
Service httpd Start
Chkconfig httpd on
Chkconfig mysqld on
Httpd-v
Server version:apache/2.2.3
Server built:sep 16 2014 11:05:09
Php-v
PHP 5.4.40 (CLI) (BUILT:APR 15 2015 16:05:43)
Copyright (c) 1997-2014 the PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Mysql-v
MySQL Ver 14.14 distrib 5.5.43, for Linux (x86_64) using ReadLine 5.1
OK, that's it, the installation is over.