How to install the Zend Framework MAC + MAMP
HTML-код
- Опубликовано: 13 сен 2024
- Windows users....although I do not use a PC, I have gotten personal comments from others on a PC who have had no problem installing. Usually the only trouble people run into is being so new to PHP that some of the basic concepts are harder to grasp...like not understanding where to find the .ini file, etc.
As you can tell, this is done on a mac, but this should be very similar for windows...if you are using Zend, you most likely already know which folder is your htdocs or www (or folder apache connects to) and windows does run with php.ini files as well. If anyone on windows is having trouble, let me know how and why either as a comment or PM and I'd be happy to add the edit here. Thanks
Although I do not have an error, the include path for the Zend Library must match the example in your php.ini file. This is done differently on windows and mac. On mac, after the initial include path, I am supposed to end the path with a colon ":" and then include my next path(without the words "include_path") rather than jumping down to the next line and making a whole new "include_path"... This may cause a problem later if you decide to incorporate PEAR into your projects.
How to install zend framework and use zend tool
Zend Quickstart (not for true true beginners) - framework.zend....
Zend Music Album Tutorial - akrabat.com/zen...
In case you are unfamiliar with MAMP (or WAMP/XAMPP for Windows), it's a simple program that hosts a web server on your localhost. If you are having trouble getting it up and running, there are PLENTY of videos and tutorials for both windows and mac.
Best of luck!
This is from far the best `how to` of how to iinstall zend in MAC. Thanks for the help!
Nice. You can also get the path to the .sh file by dragging and dropping it into terminal. Kinda a sweet trick.
Excellent tutorial, really simple and easy to follow. Thank you very much for this.
THANKS!!!! I had to get this working on Ubuntu 10.10. I had "php5" installed, but not "apache2" in my Synaptic Package Manager. I found the php.ini file under "etc/php5/apache2/php.ini". THANKS AGAIN!!!
Also to add I made the server stop and start again by using these commands in Terminal:
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
Nice work !!! You saved my life :-)
I am waiting you next Zend tutorials !!!
@maeishoj The page not found could be caused by multiple reasons (blah right!?) Try a couple of things first. Restart your MAMP servers. If that does not work make sure you've copied your Zend folder into this new projects folder (Because the Zend library is large it's not created every single time). If you haven't done this go into the downloaded framework folder/library/Zend...copy "Zend" into your new projects library folder and then try
fantastic, thanks!. for some odd reason, when i manually entered the path it wouldn't work. but when i dragged and dropped like you said worked perfectly.
@ edmundjoras
Yes : it does work with xampp on windows (it worked for me)
don't forget two things : edit zf.bat and change the lines
SET PHP_BIN= (...)
SET PHP_DIR= (...)
to
SET PHP_BIN=C:\(...)\xampp\php\php.exe
SET PHP_DIR=C:\(...)xampp\php
I also had to copy zf.bat and zf.php to the htdocs folder, so that when you create a new project, it'll be created in the htdocs folder.
Thanks for keeping this tutorial up! It's been very helpful for my project.
Thank's, I`m starting and this video is fantastic.
@webfacer The permissions can be changed through your terminal (where the version and projects can be checked/created) I actually have another video I created called CHMOD, just click my name and find it. Basically the folder that is holding your Zend download either does not allow writeable/executable permission or a parent folder (since it could be inherited)...go ahead and check out my other video and try it out, if you still have a problem send me another message to my inbox.
@webfacer Also (ran out of characters) try typing in the word "sudo" before your declaration...like this:
alias zf=/path/to/zf.sh [enter]
sudo zf show version
That will give you "super user" control which will allow you to execute some files that may only be available to 'root' aka the system.
Good luck!
Helpful video - thanks!
nice one just what I needed
Thank you very much, it really helped me!
Try running that command again and adding "sudo" to the front ... for example sudo zf show
Thanks a lot, it really helped ! =)
Keep it up ! =)
Thank you very much!!!
Good tutorial, thanks!
@maeishoj I reinstalled Zend and upgraded MAMP and am having the same "issue". The project is still made just fine you're just not getting an additional action. I've been able to do unit testing just fine later on manually...but I guess with this newer version Zend is trying to be a little more helpful and set things up for you. I'm trying to find a solution but not having much luck so far. Just know your project is still being created.
tnx from Brasil ..
Thank you!
when i look for the php.ini file, i see A LOT of them with different php versions. i didn't know which one to choose, so i chose one randomly and did what you did in your video, but it didn't work for me... the wildfire page still wasn't working. help pls
Hi, could you please tell me how I create the project in the terminal for windows users. the line alias zf=/path/path/... does not work for me?? Thanks
Hey mate, I'm searching for the php ini file but I can't locate it on the wamp folder.
I did found one but it doesn't really match the same as yours.
I don't got Apple like you , I hate them so I'm using wamp instead.
Can you perhaps give me a download link for the php ini file?
@maeishoj check your inbox, gonna run outta characters on this one :)
I get a blank screen once I get to wildfire/public, does anyone else have that issue or know how to solve that?
I guess, you need to turn on "showing errors"
Thank you!