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!
Like the video? Support Zendcasts:

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
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
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
Thanks its very well aligned video tutorial ,got me out of an error that i was stuck up with since last 6 hours!!!!!!!!!!!!
Thanks
The process of installation is not visible , i think you should zoom in and create a video so that the text are visible
Hi,
To everyone that states the text is too small to follow in the video, Did you try pressing the full screen option. With full screen you should have no problem following along and thanks for making the video, The only issue I see is actually showing the zend file structure being installed and are there benefits to installing zend outside of the WAMP directory.
I meant to add this to my last comment, after looking at the video full screen I remember I ended up downloading it and opening with VLC and went full screen and the detail of the text in the video was perfect. It all comes down to the embedded player used and compression, So for those of you that want to follow along in the video then you might have to do what I did. Again, Thanks for sharing the Video.
You Rock! Thanks for your great instruction. I appreciate your generosity!
brian
Hi,
Thanks for your tutorial, I am getting the following error which is making me pull my hair out:
“Fatal error: Uncaught exception ‘Zend_Config_Exception’ with message ‘parse_ini_file(/configs/application.ini) [function.parse-ini-file]: failed to open stream: No such file or directory’ in D:\computing\zfapp\library\Zend\Config\Ini.php:181 Stack trace: #0 D:\computing\zfapp\library\Zend\Config\Ini.php(201): Zend_Config_Ini->_parseIniFile(‘/configs/applic…’) #1 D:\computing\zfapp\library\Zend\Config\Ini.php(125): Zend_Config_Ini->_loadIniFile(‘/configs/applic…’) #2 D:\computing\zfapp\library\Zend\Application.php(383): Zend_Config_Ini->__construct(‘/configs/applic…’, ‘development’) #3 D:\computing\zfapp\library\Zend\Application.php(85): Zend_Application->_loadConfig(‘/configs/applic…’) #4 D:\computing\zfapp\socialengine\index.php(24): Zend_Application->__construct(‘development’, ‘/configs/applic…’) #5 {main} thrown in D:\computing\zfapp\library\Zend\Config\Ini.php on line 181″
would you hlep me solve it please?
I have unzipped the zend framework to D:\computing\zfapp, and then I copied your folders (test, application, config etc to)D:\computing\zfapp, I have the index.php file inside socialengine foler, what am I missing?
Thanks
Hi Michael,
About editing the host file you must open the file as administrator to do that you can go to start->notepad(right click it then choose run as administrator)-> then open then hosts file on that notepad there you go you can save the updates you made.
Hope i help you.
Then about the tutorials.. i am thankful to find this tutorial it helps me setup my local dev server faster. Hope there will be a clearer version of this video.
Thank you and good day.
Awesome tutorial. Helped me a lot.
Thank you so much.
Your demonstration was excellent and very helpful.
And despite you apology at the end your English was also very good.
Thank You very much.
pstanl
Great screencast Tawfek!
Question, you would have anything on working with Zend Studio such as setting up run configurations and debugger for use with WAMP would you? Sorry new to Zend Studio as I have been using EditPlus for years.
The video is not clear , I can not see the well.
so please make one that can see the data.
Helpful video. Thanks
hi, thank you for the video tutorial
my apache is not restarted after the mod of vhost.conf as you suggested !
I had to create the diectory C:/Sites/zfapp/public/ ?
I’m using win7
thanks again
Awesome tutorial.Thank you!!!