Oh, and I just realized that when you go to zendy/docs (or whatever your path is) there's a readme file which has some VHOST settings. You propably want to check those out as well. For the sake of knowledge if nothing.
Secondly, at the time I got an internal server error I noticed in my apache error log this entry "Invalid command 'RewriteEngine'. This means that you have to config your .htaccess file in you zendy public folder, or turn apache rewrite_module on. I prefer turning it on just because i'm not very keen to modify the files I got from Zend. I'm a beginner as you are and probaply there are some issues with my instructions as well. But still I hope it'll give you some directions at least.
I got an issue where both, my localhost and my 'zendy' gave me an internal server error. However, I solved to problem and hopefully it'll help some of you aswell. First, instead of configuring 'zendy' to use 127.0.0.1 which is a same as a localhost I just put it to 127.0.0.2 which means 'zendy' and a localhost have different addresses. Just to remember config all your files using 127.0.0.2 instead of 1 in case of zendy.
) Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\Documents and Settings\Dons Infomedia\zendy\public\index.php on line 18
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Application.php' (include_path='C:\Documents and Settings\Dons Infomedia\zendy\library;.;C:\php\pear') in C:\Documents and Settings\Dons Infomedia\zendy\public\index.php on line 18
My problem was that I have 2 php.ini's one that is used by wamp and the other in the apache folder. I already added the classpath but php.exe was still not found. When I added zf to the other php.ini the problem was solved
in this tutue one think is missing that we also need to add php bin folder path where we add zend frame folder path...also add php bin folder path after ;
I'd got this error Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\zendy\public\index.php on line 19
But i finally came with the solution. In the php.ini file when adding the include path, you must REMOVE THE ; IN FRONT OF IT. Thanks for the rest of the tutorial =D
i followed all your steps carefully, but in the end when i type zendy i get:
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.
JREAMdesign you ROCK. Posted questions about installing maybe on 10 of different forums but without any result. I was so angry that instead of XAMPP and downloaded WAMP for installing ZEND. I finally installed it ..Just no word to explain how happy I am..cse i started to try to install zend since 10 yers ago..
Thank you for your reply, But I have set everything as per your video and it was working fine but when I change the DocumentRoot in virtualHost to some other folder then it started giving me this error.
My Previous DocumentRoot : DocumentRoot "G:\noddy\Alex\mexwell\public"
And now it is : DocumentRoot "G:\noddy\Alex\mexwell\document_root"
Please let me know if I have to make changes anywhere to access this new folder as my root directory for the site.
what if my root directory is not /public but some other one ?
I tried it and made changes in the virtualhost and change the document root path and directory path to the folder I want my root to be but it is giving me error for some Zend/Loader.php is not found or something ....
@vaibhavcoder If it can't find Zend/Loader.php then your PHP Include path is wrong (The place you put the actual Zend Library and pointed php.ini to the Zend folder).
This was a nice and clear tutorial to manage zend framework on Wamp, I followed your steps and finally I am able to set everything up and running and I saw the first page on my Browser. Thanks for that.
Now My question :
After setting everything up and running I want to manage a already developed site on this folder (which we have create through zf create project project_name)
So what I did is I took all the code from there and paste that here in this folder.
@SamSom40@unikorndesigns@narekm11 Add also this path (C:\wamp\bin\php\php5.3.5) -- [which is where the php.exe located]... add the the path to your Environment Variables Path.
My Wamp folder is in D drive as i followed the steps you've shown. In the powershell it doesn't give the output likes yours...It just says php.exe not found! Please HELP!
Just wanted to say thanks for creating this, I've been using PHP for several years and thought it was about time Igot to grips with the zend framework, I also use wamp for local building and I never thought I would get this to install.
@Arrowdance Some times, the host file is readonly, and you'll need to open it as Administrator, and edit and saveit. You can delete all repeating _127.0.0.1 localhost_ lines (it should appear only once)
I'm getting an Internal Server Error. .. I followed everything to the T ... I want to add .. When modifying your Environmental Variables you have to restart your computer. ( kept getting an error in PowerShell until i restarted the computer)
I am getting error when I type zf at windows PowerShell. This is the error "'"php.exe"' is not recognized as an internal or external command,
operable program or batch file." In php.ini file I changed include_path to this "include_path = ".;C:\wamp\bin\php\zend_framework\library" then I add this path to path variables which looks like this "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\wamp\bin\php\zend_framework\bin" help...
@doforumda1 You have to also add the location of your php.exe file into the PATH in windows, which would be like adding ;c:\wamp\bin\php\php5.3.0\ to your path
@niatilova Its because if you are in the directory where zf.bat is, it will work. But you need to add the url to this .bat file to your windows paths, this is at about 2:30 -- you need to correct path for it, then you can close your powershell, reopen it, and type zf and it will work anywhere.
@willzurmacht Yeah LOL. Its just getting it all setup at first which is hard. Then anytime you create a new project its, zf create project nameofproject and update your vhost.
@ThePrincessMeowMeow Sure mate, Symfony Framework seems a little nicer in my opinion though, but they have YML files for DB settings/tables.. I hate that they don't allow TABS it has to be SPACED.
When talking about Zend, is it anyway to install and use php CodeSniffer? (to validate the code for example Zend or Pear code-standard)? (My self do not use Windows for developing. It would be good to know because windows do not have an bash-terminal)
@renegade8164 You could use PEAR to install ZF (I think) if you wanted, but i think its easier just to do it manually.. The only difference in Linux is you put the files in a different place, and you have to link the zf.sh file instead of zf.bat and make an alias in bash rather than changing an evironment variable.
your tutorials are very good for beginner,they are very clear,thanks
neoblackcap 5 days ago in playlist Zend Framework Tutorials
Hi, i followed all steps exactly...but in powershell am getting error....
PS C:\Users\RaMeSh> zf
'"php.exe"' is not recognized as
operable program or batch file.
rameshreddyvemula 6 days ago
Include "c:/wamp/alias/*"
MrCotcac 1 week ago
what did you type at 3:17 below cd workspace, is that ls? I typed ls but it doesn't work like yours. please help!!!!!!!!!!!!!
MrCotcac 1 week ago
@MrCotcac ls gives you the available Local Space (no need to type that)
timekillerOE 1 week ago
Oh, and I just realized that when you go to zendy/docs (or whatever your path is) there's a readme file which has some VHOST settings. You propably want to check those out as well. For the sake of knowledge if nothing.
UltimaBigDaddy 3 weeks ago
@UltimaBigDaddy That was actually a good suggestion. That was all I needed to get things to work. Thanks to JREAMdesign too.
gravics 1 day ago
Secondly, at the time I got an internal server error I noticed in my apache error log this entry "Invalid command 'RewriteEngine'. This means that you have to config your .htaccess file in you zendy public folder, or turn apache rewrite_module on. I prefer turning it on just because i'm not very keen to modify the files I got from Zend. I'm a beginner as you are and probaply there are some issues with my instructions as well. But still I hope it'll give you some directions at least.
UltimaBigDaddy 3 weeks ago
I got an issue where both, my localhost and my 'zendy' gave me an internal server error. However, I solved to problem and hopefully it'll help some of you aswell. First, instead of configuring 'zendy' to use 127.0.0.1 which is a same as a localhost I just put it to 127.0.0.2 which means 'zendy' and a localhost have different addresses. Just to remember config all your files using 127.0.0.2 instead of 1 in case of zendy.
UltimaBigDaddy 3 weeks ago
Thanks you for this tutorial.. It helped me a lot!!!
keepurbrainbusy 1 month ago
i am geting this error
) Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\Documents and Settings\Dons Infomedia\zendy\public\index.php on line 18
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Application.php' (include_path='C:\Documents and Settings\Dons Infomedia\zendy\library;.;C:\php\pear') in C:\Documents and Settings\Dons Infomedia\zendy\public\index.php on line 18
help me
rajandass65 1 month ago
@rajandass65 I've also got the same issue. Did you manage to fix it?
jagster1989 3 weeks ago
Thanks takethree1 -- REBOOT needed (after adding to path) and it worked great :)
etx407 1 month ago
If having any problem , please follow this tutorial error handling section
lametadesigndotcom/blog/admin/how-install-zend-framework-using-wamp-20-windows-xp
takethree1 1 month ago
Comment removed
satioLT 2 months ago
It worked perfect :D
Thanks.
mbsalto 2 months ago
I havnt touched my local wamp web server in awhile and I went to open my localhost and im getting no data received message. whats up?
KeepItFresh02 2 months ago
What happens whe i wanna upload all my finished proyect to a server, what i need to modify???
BlakMetall 3 months ago
Getting wrong include path. include path is the workspace directory for me but it in the php.ini it is to /php/Zendframework
shoxzerl 3 months ago
Hmm doesnt work for me ive put everthing in appache etc but my server is not shown with wamp. I called the Server zendwork.local but nothing happens.
shoxzerl 3 months ago
My problem was that I have 2 php.ini's one that is used by wamp and the other in the apache folder. I already added the classpath but php.exe was still not found. When I added zf to the other php.ini the problem was solved
sf2006nl 4 months ago
in this tutue one think is missing that we also need to add php bin folder path where we add zend frame folder path...also add php bin folder path after ;
anudhiman2020 4 months ago
getting an internal server error when trying to read my zend project dir. but not with the wamp dir
KeepItFresh02 5 months ago
@KeepItFresh02 I deleted the .htaccess file. now I can see my index.php saying all is good...
KeepItFresh02 5 months ago
Comment removed
KeepItFresh02 5 months ago
I'd got this error Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\zendy\public\index.php on line 19
But i finally came with the solution. In the php.ini file when adding the include path, you must REMOVE THE ; IN FRONT OF IT. Thanks for the rest of the tutorial =D
basschool 6 months ago
Do this before you follow this tuturial:
Make sure rewrite_module is enabled in wamp apache modules and this is inside your environment variables:
"C:\wamp\bin\php\php5.3.5"
wbosland 6 months ago
Comment removed
wbosland 6 months ago
i followed everything step for step and it does not work for me :(
maybe a video using a clean installed wamp .. or even better yet a clean installed windows would be better because something just feels off
reofox1979 6 months ago
... you have just saved me!
eMtotskee 6 months ago
i followed all your steps carefully, but in the end when i type zendy i get:
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.
It's missing me something?
OnacAdrianRo 7 months ago
Comment removed
satioLT 2 months ago
JREAMdesign please help me with my below problem
narekm11 7 months ago
I get an error saying webpage not available when I go to access the virtual host in the address bar
KeepItFresh02 7 months ago
Please help me with the below problem
narekm11 7 months ago
the problem is when i insert the code for virtual host it gives me
Internal Server Error
narekm11 8 months ago
JREAMdesign you ROCK. Posted questions about installing maybe on 10 of different forums but without any result. I was so angry that instead of XAMPP and downloaded WAMP for installing ZEND. I finally installed it ..Just no word to explain how happy I am..cse i started to try to install zend since 10 yers ago..
Also thx to bluestone01071 person....
Please dont forget also include the following
C:\wamp\bin\php\php5.3.5 in your "Path"
Thx once more!!!
narekm11 8 months ago
; Windows: "\path1;\path2"
include_path = ".;G:\wamp\bin\php\zend_framework\library"
Above is my Php.ini include_path set as per your instructions.
vaibhavcoder 8 months ago
Thank you for your reply, But I have set everything as per your video and it was working fine but when I change the DocumentRoot in virtualHost to some other folder then it started giving me this error.
My Previous DocumentRoot : DocumentRoot "G:\noddy\Alex\mexwell\public"
And now it is : DocumentRoot "G:\noddy\Alex\mexwell\document_root"
Please let me know if I have to make changes anywhere to access this new folder as my root directory for the site.
vaibhavcoder 8 months ago
php.exe error please help ..please help
narekm11 8 months ago
brilliant - thanks very much.
froggerabc 8 months ago
what if my root directory is not /public but some other one ?
I tried it and made changes in the virtualhost and change the document root path and directory path to the folder I want my root to be but it is giving me error for some Zend/Loader.php is not found or something ....
can you help ?
vaibhavcoder 8 months ago
@vaibhavcoder If it can't find Zend/Loader.php then your PHP Include path is wrong (The place you put the actual Zend Library and pointed php.ini to the Zend folder).
JREAMdesign 8 months ago
Hi There,
This was a nice and clear tutorial to manage zend framework on Wamp, I followed your steps and finally I am able to set everything up and running and I saw the first page on my Browser. Thanks for that.
Now My question :
After setting everything up and running I want to manage a already developed site on this folder (which we have create through zf create project project_name)
So what I did is I took all the code from there and paste that here in this folder.
Kindly check next post
vaibhavcoder 8 months ago
php.exe not found????
SamSom40 8 months ago
@SamSom40 @unikorndesigns @narekm11 Add also this path (C:\wamp\bin\php\php5.3.5) -- [which is where the php.exe located]... add the the path to your Environment Variables Path.
bluestone01071 8 months ago 3
@bluestone01071 thanks, was searching
timekillerOE 1 week ago
thanks a lot =)
swm5 8 months ago
@swm5 No problem holmes :P
JREAMdesign 8 months ago
My Wamp folder is in D drive as i followed the steps you've shown. In the powershell it doesn't give the output likes yours...It just says php.exe not found! Please HELP!
unikorndesigns 8 months ago
@unikorndesigns You have to add the path to your PHP.EXE to your Environment Variables, just like you did with Zend Framework.
JREAMdesign 8 months ago 3
good vid, thanks
astev52 8 months ago
i can't find cd workspace...what the hell!!!
ChipperNut 8 months ago
@ChipperNut Thats a custom folder, you can create your own lol
JREAMdesign 8 months ago
@JREAMdesign Thanks..it works
ChipperNut 8 months ago
I guess, I should change my mind about video tutorials, I never favored them... Great Job! This one's rarely available on Internet...
mamoonkay 8 months ago
Just wanted to say thanks for creating this, I've been using PHP for several years and thought it was about time Igot to grips with the zend framework, I also use wamp for local building and I never thought I would get this to install.
Again many thanks
CertainEvil 8 months ago
Please, could you help me?
I did all the stuff, but the final step, on the hosts file, it doesn't appear like your file, I mean, in the last lines i have this:
127.0.0.1 localhost
127.0.0.1 localhost127.0.0.1 localhost
Even I tried to write the lines as you have there, but nothing happened. I hope you can help me. BTW, I have Windows XP as OS.
Arrowdance 9 months ago
@Arrowdance You need a space, just put this on its own line:
127.0.0.1 zendy
JREAMdesign 9 months ago
@Arrowdance Some times, the host file is readonly, and you'll need to open it as Administrator, and edit and saveit. You can delete all repeating _127.0.0.1 localhost_ lines (it should appear only once)
mamoonkay 8 months ago
Comment removed
arulknarul 9 months ago
excellent
arulknarul 9 months ago
It must be the same using XAMPP rigth?
ViejoIvan 9 months ago
@ViejoIvan I believe so, your Path's would be different obviously :P
JREAMdesign 9 months ago
I'm getting an Internal Server Error. .. I followed everything to the T ... I want to add .. When modifying your Environmental Variables you have to restart your computer. ( kept getting an error in PowerShell until i restarted the computer)
CarlosJa80 9 months ago
I am getting error when I type zf at windows PowerShell. This is the error "'"php.exe"' is not recognized as an internal or external command,
operable program or batch file." In php.ini file I changed include_path to this "include_path = ".;C:\wamp\bin\php\zend_framework\library" then I add this path to path variables which looks like this "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\wamp\bin\php\zend_framework\bin" help...
doforumda1 9 months ago
@doforumda1 You have to also add the location of your php.exe file into the PATH in windows, which would be like adding ;c:\wamp\bin\php\php5.3.0\ to your path
JREAMdesign 9 months ago 2
@JREAMdesign :) thanks
32docholiday 8 months ago
i can get nothing when i type zf in the powershell, but when i type:
>cd "C:\wamp\bin\php\php5.3.0"
>zf
it work
the same thing for the creation it dosent work until i specify that i'm in the php folder.
i wonder if u could help me !
niatilova 9 months ago
@niatilova Its because if you are in the directory where zf.bat is, it will work. But you need to add the url to this .bat file to your windows paths, this is at about 2:30 -- you need to correct path for it, then you can close your powershell, reopen it, and type zf and it will work anywhere.
JREAMdesign 9 months ago
OMG there are so many configurations @_@
I'm currently learning CodeIgniter and there's kinda big difference
willzurmacht 9 months ago
@willzurmacht Yeah LOL. Its just getting it all setup at first which is hard. Then anytime you create a new project its, zf create project nameofproject and update your vhost.
JREAMdesign 9 months ago
You are awesome. Thanks for all the great tutorials!
FacepuncherBlog 10 months ago
@FacepuncherBlog Thanks:)
JREAMdesign 10 months ago
Thanks :) I got a 2nd one coming in the queue but the video rendering keeps crashing my HDD! Ahhh :(
JREAMdesign 10 months ago
Thanks mate. Favorited and liked :-)
ThePrincessMeowMeow 11 months ago
@ThePrincessMeowMeow Sure mate, Symfony Framework seems a little nicer in my opinion though, but they have YML files for DB settings/tables.. I hate that they don't allow TABS it has to be SPACED.
JREAMdesign 11 months ago
When talking about Zend, is it anyway to install and use php CodeSniffer? (to validate the code for example Zend or Pear code-standard)? (My self do not use Windows for developing. It would be good to know because windows do not have an bash-terminal)
renegade8164 11 months ago
@renegade8164 You could use PEAR to install ZF (I think) if you wanted, but i think its easier just to do it manually.. The only difference in Linux is you put the files in a different place, and you have to link the zf.sh file instead of zf.bat and make an alias in bash rather than changing an evironment variable.
JREAMdesign 11 months ago