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

[‘

n

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.

n

Install Zend Framework in Linux
Install Zend Framework in Linux

n

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.

n

Step 1: Enabling Remi & Epel Repositories

n

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

n

[For RHEL/CentOS 6.3/5.9]

n

## Epel Dependency on RHEL/CentOS 6 ##rn# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpmrnrn## Remi Dependency on RHEL/CentOS 6 ##rn# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrnrn## Epel Dependency on RHEL/CentOS 5 ##rn# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpmrnrn## Remi Dependency on RHEL/CentOS 5 ##rn# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

n

[For Fedora 18-12]

n

## Remi Dependency on Fedora 18,17,16,15,14,13,12 ##rn# rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rn# rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpmrnrn## Remi Dependency on Fedora 18 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-18.rpmrnrn## Remi Dependency on Fedora 17 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpmrnrn## Remi Dependency on Fedora 16 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-16.rpmrnrn## Remi Dependency on Fedora 15 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-15.rpmrnrn## Remi Dependency on Fedora 14 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpmrnrn## Remi Dependency on Fedora 13 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-13.rpmrnrn## Remi Dependency on Fedora 12 ##rn# rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm

n

Step 2: Installing Zend Framework 1.11.12

n

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

n

# yum --enablerepo=remi install php-ZendFramework

n

Step 3: Verify Zend Framework

n

Verify Zend Framework version by running the command.

n

#  zf show versionrnrnZend Framework Version: 1.11.12

n

Step 4: Creating Zend Project for Testing

n

Creating new Zend project for testing purpose.

n

# cd /var/www/htmlrn# zf create project tecmint-projectrnrnCreating project at /var/www/html/tecmint-projectrnNote: This command created a web project, for more information setting up your VHOST, please see docs/README

n

Step 5: Creating Symbolic Link for Zend Project

n

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

n

# cd /var/www/html/tecmint-project/library/rn# ln -s /usr/share/php/Zend .

n

Step 6: Checking Zend Project Page

n

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

n

http://localhost/tecmint-project/publicrnrnORrnrnhttp://YOUR-IP-ADDRESS/tecmint-project/public

n

Zend Framework Screenshot

n

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

n

Zend Framework Welcome Screen
Zend Framework Welcome Screen

n

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.

n

‘]