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

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.

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. 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. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

10 Responses

  1. Supriya Sonar says:

    I have already created project with zend using netbeans with latest component and new version of php 7.
    but after creating when I am running my software it is giving me some error like “The requested URL /lca/public was not found on this server.”
    Please help me out

    • Ravi Saive says:

      @Supriya,

      On which Linux distribution you are getting such error, if it’s CentOS, make sure to disable SELinux mode. If it’s already disabled, make sure to check logs for the solution..

  2. 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.

  3. 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.

  4. test says:

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

  5. 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!

  6. Karl says:

    Thank-you for the wonderful instructions.

Leave a Reply to supriya sonar Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.