Getting Started with the Zend Framework and WAMP Server

June 21st, 2009

This Father’s day, zendcasts is doing 2 videos back to back! There’s been a bit of talk in the comments about how to setup the Zend Framework on Windows. Thankfully, Tawfek Daghistani took some initiative and put together this short piece on setting up WAMP Server with Zend.

For a first time doing a screencast, it’s pretty solid! The text is a bit hard to read, but luckily you can follow along with the source code. If you want all his files, just grab the zipped version.

Thanks Tawfek!

 

81 Responses to “Getting Started with the Zend Framework and WAMP Server”

  1. tawfekov says:

    most welcome mary ,
    we are here to help
    thank you very much for nice comment

  2. Michael says:

    I seem to be getting errors editing the ‘hosts’ file at the start.
    It was ‘read/only’ at first, I unchecked this, and it still doesn’t allow me to Save the new version.

    I’m using Vista.

    Would this be an issue?

  3. tawfekov says:

    Hi Michael,
    maybe vista disables your editions to the host file since its a system file
    double check the host file
    and
    and double check the host file and the apache log file
    - make sure apache is running

    hope this will help you
    if not let me know

    tawfekov

  4. Thanks for saying so, i was thinking about you the other day. Are there any forums that you recommend I join ?

    Follow me on Twitter

  5. Michael says:

    Many thanks for your speedy reply.

    Took a bit of advice from elsewhere, I copied the file outside of the area(to the Desktop, in my case) and then made the adjustments and pasted it back to the original folder.

    You mention:

    “C:/Sites/zfapp/public/”

    Is this where I should have my Zend Framework installation? Under C:/Sites/zfapp ?

    Thanks again

  6. tawfekov says:

    Hi Michael! ,
    Am really glad to hear that
    and
    you can put your files any were you like

    but make sure to edit the apache virtual host (in the apache config folder )top point to the new destination

    you will good to go on

    tawfekov

  7. Michael says:

    Thanks for the reply :)

    So could I place my files in C:\Sites\zfapp ?

    So my file structure would be like:

    C:\Sites\zfapp\bin
    C:\Sites\zfapp\demos
    C:\Sites\zfapp\externals
    etc…

    ?

  8. Michael says:

    Eeek. I now can’t start my Apache Service.

    I think I’ll have to retrace my steps a little.

  9. Michael says:

    Sorry for the comments blasting :)

    I think I’m almost there.

    However, I’m still having issues right at the end:

    Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\Sites\zfapp\public\index.php on line 18

    Fatal error: require_once() [function.require]: Failed opening required ‘Zend/Application.php’ (include_path=’;.;c:\php\includes;c:\Sites\ZF’) in C:\Sites\zfapp\public\index.php on line 18

    I’m pretty confident I’ve done everything asked.

    Can you think of anything I’ve missed out?

  10. tawfekov says:

    Hi Michael,
    the last error tells you that
    your application can’t find the Zend/Application.php file

    this mean he can’t find the zendframework library

    so you should put the Zend folder inside this file C:\Sites\ZF\
    to be
    C:\Sites\ZF\Zend\

    and this should bootstrap your app successfully
    and every thing would be ok

  11. Michael says:

    Many thanks for the reply again.

    I won’t have access to the server until roughly 4:33am tomorrow, so stay tuned :)

    I updated the include_path earlier today as you suggested, but still get the error.

    I will now try to move ‘Zend’ folder inside ‘ZF’ directory.
    Can you confirm, is the ‘Zend’ folder the full framework?

    Strangely, when I looked inside ‘Zend’ directory, I too couldn’t find the Application.php file. Or am I being silly?

    Thank you again

  12. Michael says:

    Woooop!

    I never realised it was library/Zend/ that had to be moved.

    Now working.

    Many thanks tawfekov, let the great experiment begin.

  13. Anil Kumar says:

    This one is one of the best tutorial about zend framework. I am praising to the publisher.
    Thanks a lot.

  14. shaded says:

    thanks thats was a major help

  15. tester says:

    unable to install zend frame work anyone of you please help me out please

  16. khemlal says:

    i cannot save my httpd.conf file after uncommenting the # for vhosts. please someone i need an immediate help.

  17. tawfekov says:

    Hi !
    you can’t write on http.conf cuz its already been used by another process
    in your case its the httpd.exe
    make a copy of http.conf as a backup then
    make sure to stop apache , change what do you want and start it again

  18. [...] Zend Framework Video Tutorial [...]

  19. Fred2040 says:

    Hi, could you please do the video again? I can’t see anything, and it’s very difficult to implements your code or configuration from a proyect made in Zend Studio.. what’s wrong? Please help..

  20. Fred2040 says:

    It’s me again, I don’t know, but I did all steps, and nothings is change, So I wait some minutes and I tried again and now my zf and wamp server is working fine!! thks to your post..

    Best Regards

  21. tawfekov says:

    hey fred2040 ,
    Glad to hear that :)
    and good luck with Zend framework

  22. Uway says:

    many thanks ^_^

  23. allabakash says:

    Thanks for your help,
    very clear explanation.

  24. Selecto says:

    Sorry man, beside the good will, the quality is bad and your explanation is relative.

  25. GaVrA says:

    Just listen to him and check out source code. Finally managed to have localhost and dev.zendcasts working on different paths! :) Thanks!

  26. Thank you very much for this walkthrough!

    Ignore Selecto. He’s a tool.

    You spoke a little rapidly at some points, but very well explained.

    I learned quite a bit and now at least I finally have a Zend Application working!

    Do you have more tutorials?

  27. tawfekov says:

    Thanks for nice comment
    am really appreciate it :)
    check out http://www.zendcasts.com/?s=tawfek for more videos
    and make sure to check Jon’s videos , they are pretty good

  28. vivek says:

    Fatal error: require_once() [function.require]: Failed opening required ‘Zend/Application.php’ (include_path=’C:\Program Files\VertrigoServ\www\try\library;.;C:\Program Files\VertrigoServ\Smarty’) in C:\Program Files\VertrigoServ\www\try\public\index.php on line 18

  29. vivek says:

    Fatal error: require_once() [function.require]: Failed opening required ‘Zend/Application.php’ (include_path=’C:\Program Files\VertrigoServ\www\try\library;.;C:\Program Files\VertrigoServ\Smarty’) in C:\Program Files\VertrigoServ\www\try\public\index.php on line 18
    how can i proceed.
    can any one answer me.

  30. tawfekov says:

    Hi Vivek ,
    Make sure to include the Zend (library file ) inside this folder
    C:\Program Files\VertrigoServ\www\try\library

    so the PHP can point to it like this
    C:\Program Files\VertrigoServ\www\try\library\Zend\Application.php

Leave a Reply

Desktop RSS feed iPhone + iPod