Zend Framework 1.11.12 for PHP 5 on RHEL/CentOS 6.3/5.9 and Fedora 18-16

Channel: RedHat PHP Linux Distros Fedora CentOS Linux
Abstract: //rpms.famillecollet.com/remi-release-12.rpm Step 2//rpms.famillecollet.com/enterprise/remi-release-5.rpm [For Fedora 18-12] ## Remi Dependency on Fed

Zend Framework is an open source, simple and straightforward object-oriented web application framework for PHP 5. It is used to eliminate the tedious details of coding and allows you to focus on the big picture. Its main backbone is in its highly-modular MVC (Model–View–Controller) design, making your code highly reusable and simpler to maintain.

Install Zend Framework in Linux

In this tutorial we will guide you all how to install newly released Zend Framework 1.11.12 version on RHEL 6.3/6.2/6.1/6/5.9/5.8, CentOS 6.3/6.2/6.1/6/5.9/5.8 and Fedora 18,17,16,15,14,13,12 using yum repositories called Remi and EPEL, why we choose these repos, because they updates regularly as compare to any other repositories like Fedora, Centos or RedHat. This guide also works on older version of Linux distributions.

Step 1: Enabling Remi & Epel Repositories

Enable these both yum repositories to install latest Zend Framework. Please select and install proper repository package for your system.

[For RHEL/CentOS 6.3/5.9]
## Epel Dependency on RHEL/CentOS 6 ##
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

## Remi Dependency on RHEL/CentOS 6 ##
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

## Epel Dependency on RHEL/CentOS 5 ##
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

## Remi Dependency on RHEL/CentOS 5 ##
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
[For Fedora 18-12]
## Remi Dependency on Fedora 18,17,16,15,14,13,12 ##
# rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm 
# rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

## Remi Dependency on Fedora 18 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-18.rpm

## Remi Dependency on Fedora 17 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm

## Remi Dependency on Fedora 16 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-16.rpm

## Remi Dependency on Fedora 15 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-15.rpm

## Remi Dependency on Fedora 14 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpm

## Remi Dependency on Fedora 13 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-13.rpm

## Remi Dependency on Fedora 12 ##
# rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm
Step 2: Installing Zend Framework 1.11.12

Once repositories enabled, run the following yum command to install it.

# yum --enablerepo=remi install php-ZendFramework
Step 3: Verify Zend Framework

Verify Zend Framework version by running the command.

#  zf show version

Zend Framework Version: 1.11.12
Step 4: Creating Zend Project for Testing

Creating new Zend project for testing purpose.

# cd /var/www/html
# zf create project tecmint-project

Creating project at /var/www/html/tecmint-project
Note: This command created a web project, for more information setting up your VHOST, please see docs/README
Step 5: Creating Symbolic Link for Zend Project

Creating symbolic link by copying Zend directory from /usr/share/php/Zend to under /var/www/html/tecmint-project/ directory.

# cd /var/www/html/tecmint-project/library/
# ln -s /usr/share/php/Zend .
Step 6: Checking Zend Project Page

To check Zend project’s index page, open your browser and enter the following address.

http://localhost/tecmint-project/public

OR

http://YOUR-IP-ADDRESS/tecmint-project/public
Zend Framework Screenshot

Here, is the screenshot of Zend Framework under my CentOS 6.3 Linux box.

Zend Framework Welcome Screen

If in case, you might having any difficulties while installing, please post your queries using our comment box below. If you liked this article, then don’t forget to share it with your friends.

Ref From: tecmint

Related articles