Getting Started with the Zend Framework and WAMP Server
June 21st, 2009This 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!

most welcome mary ,
we are here to help
thank you very much for nice comment
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?
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
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
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
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
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…
?
Eeek. I now can’t start my Apache Service.
I think I’ll have to retrace my steps a little.
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?
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
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
Woooop!
I never realised it was library/Zend/ that had to be moved.
Now working.
Many thanks tawfekov, let the great experiment begin.
This one is one of the best tutorial about zend framework. I am praising to the publisher.
Thanks a lot.
thanks thats was a major help
[...] http://www.zendcasts.com/getting-started-with-zend-and-wamp-server/2009/06/ [...]
unable to install zend frame work anyone of you please help me out please
i cannot save my httpd.conf file after uncommenting the # for vhosts. please someone i need an immediate help.
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
[...] Zend Framework Video Tutorial [...]
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..
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
hey fred2040 ,
Glad to hear that
and good luck with Zend framework
many thanks ^_^
Thanks for your help,
very clear explanation.
Sorry man, beside the good will, the quality is bad and your explanation is relative.
Just listen to him and check out source code. Finally managed to have localhost and dev.zendcasts working on different paths!
Thanks!
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?
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
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
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.
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