27 февраля 2013 г.

Apache+MySQL+PHP on CentOS

Step 1: Installing Remi Repository

## Install Remi & Epel Repository on RHEL/CentOS 6.3-6.0 - 32 Bit ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 

## Install Remi & Epel Repository on RHEL/CentOS 6.3-6.0 - 64 Bit ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 

## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 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.9-5.0 - 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


Step 2: Installing Apache, MySQL & PHP

# yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common

Step 3: Installing PHP Modules

# yum --enablerepo=remi,remi-test install php-common php-bcmath php-cli php-dba php-gd php-imap php-mbstring php-mcrypt php-mysql php-pdo php-pecl-apc php-pecl-imagick php-pecl-memcache php-pecl-memcached php-pecl-ssh2 php-pecl-uuid php-pecl-xdebug php-pecl-xhprof php-pgsql php-php-gettext php-snmp php-soap php-tidy php-xml php-xmlrpc

Step 4: Starting/Stopping Apache & MySQL

## Enable Apache and MySQL on Run-Levels ##
# chkconfig --levels 235 httpd on
# chkconfig --levels 235 mysqld on

## Apache Commands ##
# /etc/init.d/httpd start
# /etc/init.d/httpd stop
# /etc/init.d/httpd status

## MySQL Commands ##
# /etc/init.d/mysqld start
# /etc/init.d/mysqld stop
# /etc/init.d/mysqld status

Step 5: Installing Zend Framework 1.11.12

# yum --enablerepo=remi install php-ZendFramework

Step 6: Verify Zend Framework

#  zf show version

Zend Framework Version: 1.11.12