Did You Know?
Got a tip? Let us know

We are pleased to announce our new TecMint Q/A section to submit your Linux questions

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

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators
CW

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

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

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.

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Linux Services & Free WordPress Setup

Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.

6 Responses

  1. Karl says:

    Thank-you for the wonderful instructions.

  2. Daniel says:

    Perfect instructions. I have never used the remi and epel packages. Can you explain what’s so unique about them that they helped with the installation.

    I tried the instructions on the zend site, but I must have missed a few packages as it couldn’t figure out where the zf.php file was it.

    I am still missing the phpunit package, but I think I can handle this on my own.

    Thanks for PERFECT instructions!

  3. test says:

    Hello mates, pleasant piece of writing and fastidious arguments commented here, I am actually enjoying by these.

  4. McQueen says:

    Hi, thanks for the tutorial ..
    I have a problem with the next step: # zf show version

    I do not see the version.

    ***************************** ZF ERROR ******************* *************
    In order to run the zf command, you need to Ensure That Zend Framework
    is inside your include_path. There are a variety of ways That you can
    Ensure That this zf command line tool knows where the Zend Framework
    library is on your system, but not all of them can be Described here.

    ….

    I use Centos 6.3. The installation has been completed successfully.

    Any ideas?

    Thanks for sharing.

  5. Sagar says:

    Doing above steps have worked fine, but unfortunately they have changed my PHP version from 5.3 to 5.4 without any consent ! :(

    I wish to go with php 5.3 version !
    HOw can i DO the same ?

    SOme-one please reply .

    • Ravi Saive says:

      It’s due to latest Zend Framework depends on newest PHP version, that’s the reason it automatically upgraded your PHP version. Going with latest PHP doesn’t harm your any application.

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.