Installation of Zend Framework on Linux

Hello Friends, if you are trying to install Zend Framework on linux, following steps will help you do so.

    1. We will be using a repository named remi for our installation. You don't need to  know about repository, just run one of following commands according to your server. This will enable remi repository on your server.

  2. Now we will install php-ZendFramwork

yum --enablerepo=remi install php-ZendFramework

  3. Now we have to create a Zend Project, go to any directory and run the following

           cd /home
           zf create project abhishek

  4. Now we have to make changes in apache file. Run following command:

          vim /etc/httpd/conf/httpd.conf

          Make a new Virtual Host:

<VirtualHost *:80>
    DocumentRoot /home/abhishek/public
    ErrorLog logs/
    CustomLog logs/ common

    Most People make mistake in third line. Document root is public folder and not abhishek folder.

And its Done!!!!!!  Just open your browser and type IP of your server or, whichever works for you and you will see the welcome screen of framework saying,
Welcome to the Zend Framework!
This is your project's main page