Press "Enter" to skip to content

Installing Zend Framework on WAMP

I am working on WAMP (Windows Apache Mysql PHP) Server and found some difficulties to setup Zend Framework environment. You may found some difficulties in installing the zend framework, that’s why I have written this article, hope you will found find this article helpful.
Suppose you have WAMP installed on C drive (C:/wamp)

There are some basic requirements for setup:
1: Php version should be greater than PHP 5.2.x

2: Load mod_rewrite Rule: Web Server (Apache) supports mod_rewrite rule to support .htaccess file. so to load this module, in Apache folder there is httpd.conf file (C:/wamp/bin/apache/Apache2.2.11/conf/)

[php]
#LoadModule rewrite_module modules/mod_rewrite.so
[/php]

Uncomment it (means remove “#”)

3: Download Framework: Download ZendFramework archive. It can be download from http://framework.zend.com/download/ in a .zip or .tar.gz format and extract it.

4: Setting Up Zend Tool: Create a new directory on Programe Files named as “ZendCli” and paste library and bin folder to this directory extracted from ZendFramework archive.

5: Add the bin directory to Environment variable: On computer properties advance options there is PATH variable.

Add     ;C:\Program Files\ ZendCli \bin

To execute php on CLI (Command Line Interpreter) mode, add php to environment variable

;C:/wamp/bin/php/php5.2.8/bin

Now Reboot the System to set all environment variables.

6: Testing Zend: To test your installation open a command prompt and type
zf show version
if all work fine, your should see
Zend Framework Version: 1.10.0
If not, then check all the path and bin directory, once zf tool is working. We have all zf command available and can start working on Zend framework.

7: Now open a command prompt, traverse to your root directory and type
zf create project zfPrj
this command will create a directory structure for working on framework as shown in figure below:

This figure illustrates the structure of Zend framework. application directory is where the source code is available, public folder is where the website executes.

8: The last work is to copy the library/zend/ directory from Zend archive to our application zfPrj/library. After doing this browse this URL  http://aloksah.org/zfPrj /public/

Getting this screen on your browser means all is fine and we can now work on application.

Getting this screen on your browser means all is fine and we can now work on application.

24 Comments

  1. Parveen
    Parveen December 25, 2010

    Nice to install zend framework on our system .It is very typical task for a person who not know about framework and configuration for the zend framework in the php.ini file .

    So i am very thankful for such a mind blowing post for the person who want to work on zend framework.

  2. Vijay
    Vijay December 25, 2010

    badhiya sah ji. Thanks for the article. It will be a help indeed.

  3. prakash
    prakash December 27, 2010

    Ye to theak hai sah ji par Zend hota kya ye hi nehi pata mujko to…..

    • Alok Sah
      Alok Sah December 27, 2010

      @prakash it is a PHP Framework like .NET Framework, very soon i will post for this.

  4. Bimlesh
    Bimlesh December 27, 2010

    grt work bhai. It will help me to install the same. Thanks

  5. Lalit
    Lalit April 25, 2011

    Awesome!! Thank you very much for this article. Really works 🙂

  6. laxmi kalke
    laxmi kalke December 20, 2011

    its not working error is there
    ‘zf’ is not recognized as internal or external command

    • laxmi kalke
      laxmi kalke December 20, 2011

      its working now thank u so much.

  7. Alok
    Alok January 6, 2012

    hey .. im doin ma project in php nd i installd zend framework .. thnkx 4 ur steps ! 🙂 🙂

    can do give some ideas about modifyin the zend for concolic testing ??

    u knw abt it ? ?

  8. Anand Chowdary Simhadri
    Anand Chowdary Simhadri February 29, 2012

    its working fine, thank u so much.

  9. Rolly
    Rolly April 26, 2012

    I a having some problems with the installation. Whenever I try to test it on CMD, the error was zf is not recognized. What is the problem?

    • Alok Sah
      Alok Sah April 26, 2012

      First try either php is running on cmd, if yes then zendframework path is not properly set. this is may be the cause it is not recognizing zf. In my article point no. 4 and 5 plz check..Thankyou

  10. sunny
    sunny June 4, 2012

    great article

  11. Masis
    Masis August 18, 2012

    Great Article! Also you have to go to your httpd.conf file and add this line

    Options FollowSymLinks
    AllowOverride All

    Source from stackoverlfow.com

  12. Santosh
    Santosh September 26, 2012

    The greatest way than other. now its working fine. Thank you very much…

  13. Keyur
    Keyur December 5, 2012

    Very nice tutorial for installation for the beginner!

    very much thank ful to the publisher for giving such a easy directions for installing the zend framework

  14. devendra
    devendra January 25, 2013

    I have my wamp install and I have set system variables path as given below. when i am trying to run zf command then its now working. many times i have restarted my pc and i have also tried to access from C:\Program Files\ZendCli\bin also but its not working. somebody guide me PLS

    C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin;C:\Program Files (x86)\Java\jdk1.7.0\bin;C:\javaWork\apache-maven-3.0.4\bin;C:\Program Files (x86)\ZendCli\bin

  15. Dinesh Kumar
    Dinesh Kumar February 3, 2013

    Hi , i am having internal server error when i browse the url(http://aloksah.org/zfPrj /public/).I have been trying to install the zend framework on my system for 2 weeks.please help me out with this.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

  16. Dinesh Kumar
    Dinesh Kumar February 3, 2013

    It just worked fine following your brief tutorial.Thank you a lot. simple short and sweet

  17. vikas
    vikas February 21, 2013

    Thanks dada, for provide technical support about Zend frame work, I wish you learn more and help to grow junior as well as.

  18. mohsen
    mohsen June 13, 2013

    tanx to your artical

  19. Deep
    Deep March 26, 2014

    hi,
    it not working for me, i get error while running command. php path is set and its working all other paths are working. for zend command error is:- ‘zf’ is not recognized as an internal or external command,
    operable program or batch file.
    i hope i will get replay
    thanks by the way.

  20. Paras
    Paras September 17, 2014

    Thanks a lot. Very much helpful brother.

Leave a Reply

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