About Chris Morrell

I am a Philadelphia web designer and developer who focuses on PHP development and usable design. I am also the Director of IT for the International Association of Certified Home Inspectors.

Please Note: My site fell victim to a Wordpress security flaw a few weeks ago, and I'm just getting everything back to normal. Please bear with me.

I am currently not accepting any new clients.

Other Sites/Clients

Contact Me

If you need to get in touch with me, my name is Chris and my domain name is cmorrell.com. Think about it.

Installing Zend Server & Zend Framework on OS X

Posted by Chris Morrell on May 3rd, 2009 in Web Development (tagged , , , )

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:

Installing Zend Server CE

If Zend Server is already installed, you need to remove it:

  • For older versions of Zend Server:
    1. Run /Applications/ZendServer/bin/zendctl.sh stop
    2. Remove /etc/zce.rc
    3. Double-check that no instances are running (you can use ps ax|grep -i zend)
  • For newer versions of Zend Server
    1. Run /usr/local/zend/bin/uninstall.sh

Now 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/php
  • Please note that this step is optional

Installing the Zend Framework

Now download the latest version of the Zend Framework

Unzip and copy the following files:

  • library/Zend to /usr/local/zend/share/ZendFramework/library/Zend
  • extras/library/ZendX to /usr/local/zend/share/ZendFramework/library/ZendX
  • bin to /usr/local/zend/share/ZendFramework/bin
  • Please note that if you don’t need the zf command line tool, and the version of the Zend Framework that came with Zend Server is up-to-date, these steps are unnecessary

Finally, link the zf.sh file so you can access it easily:

  • sudo ln -s /usr/local/zend/share/ZendFramework/bin/zf.sh /usr/bin/zf

That’s it for now.  Hope that helps someone else out.

5 Comments »

5 Responses to “Installing Zend Server & Zend Framework on OS X”

  1. Theresa

    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?

  2. Theresa

    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

  3. Chris Morrell

    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

  4. Theresa

    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

  5. Chris Morrell

    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.

Leave a Reply

Additional comments powered by BackType

Comments & Trackbacks

You can leave a response, or trackback from your own site. Follow any responses to this entry through the RSS 2.0 feed.

More...

@inxilpro

  • Wet Hot American Summer at World Cafe Live. It's free and dead. 2 days ago
  • Would really like something that combines Twitter starred + Google Reader starred/liked + Delicious.com. Does such a thing exist? 6 days ago
  • Also, how can OS X be so rock solid and other Apple-developed software be so buggy? 1 week ago
  • More updates...
Copyright © Chris Morrell, Powered by WordPress, Entry RSS Feed / Comment RSS Feed