This post is mostly a reminder to myself, but I thought I’d put it out there just in case other people wanted some help:
If Zend Server is already installed, you need to remove it:
/Applications/ZendServer/bin/zendctl.sh stop/etc/zce.rcps ax|grep -i zend)/usr/local/zend/bin/uninstall.shNow download the latest version of the Zend Server CE Installer and run the installer
Link the CLI binary so you can use PHP from the command line:
sudo ln -s /usr/local/zend/bin/php-cli /usr/bin/phpNow download the latest version of the Zend Framework
Unzip and copy the following files:
library/Zend to /usr/local/zend/share/ZendFramework/library/Zendextras/library/ZendX to /usr/local/zend/share/ZendFramework/library/ZendXbin to /usr/local/zend/share/ZendFramework/binzf command line tool, and the version of the Zend Framework that came with Zend Server is up-to-date, these steps are unnecessaryFinally, link the zf.sh file so you can access it easily:
sudo ln -s /usr/local/zend/share/ZendFramework/bin/zf.sh /usr/bin/zfThat’s it for now. Hope that helps someone else out.
Additional comments powered by BackType
You can leave a response, or trackback from your own site. Follow any responses to this entry through the RSS 2.0 feed.
Oh…..my………god THANK YOU!!!!!!!!!!
I have spent numerous hours and days trying to correctly install Zend_Tool with no luck, I have books and forums and no ones advice helped until yours.
All the books said ‘put into route’ but no one told me to link zf.sh file – THANK YOU!! I can actually start going the exercises now.
P.S. It works, but terminal throws up PHP error messages and timestamp error messages when i access zf – do you know why?
I get this error (following on from above post)
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/zend/lib/php_extensions/mime_magic.so’ – dlopen(/usr/local/zend/lib/php_extensions/mime_magic.so, 9): image not found in Unknown on line 0
Is this something to do with the zf.php file?
Thanks again
That sounds like Zend Server isn’t installed correctly. It doesn’t have anything to do with Zend_Tool as far as I can tell. I’d uninstall Zend Server and reinstall it.
Chris
Hi,
I re-installed Zend CE and re-followed the steps above, but unfortunately I have different problems now!
when i type
sudo zf create project /usr/local/zend/apache2/htdocs/newfile
an error occurs saying ‘the file already exists’
BUT the file def doesn’t exist and when it seems to be doing is creating the file the directory I specify but not putting all the sub-project files within it (testing, applications etc).
Any ideas as to what might be wrong?!
I’m feeling really low, still can’t start any projects because installation of zend framework is taking up days!
Thanks again for your help
If you just want a zf project in your document root, try:
cd /usr/local/zend/apache2/htdocs/
sudo zf create project .
If you’re trying to put a project in a subdirectory, make sure the directory exists and there isn’t a project ABOVE it (zf will error out if you try to create a project within another project) and then create the project the same way as above.