Setting up your MAMP Environment for Zend Tool

I wanted to get a bit more familiar with Zend Tool and so I set out setting it up on my machine.

I am currently using MAMP Pro, with PHP 5.3.5.

You will need to copy the Zend library folder into:


And your Zend ‘bin’ folder contents into:


Then setup an alias in your terminal to reference the the file – to do so, run the following commands:
cd /etc
sudo vi profile

—- Then go down to the end of the file and paste:

alias zf=/Applications/MAMP/bin/php5.3/bin/
export PATH=/Applications/MAMP/bin/php5.3/bin/:$PATH
export ZF_HOME=/Applications/MAMP/htdocs

This will set your default project path to be in the htdocs folder, and your php version to reference the 5.3 instance in MAMP.

Save the file by hitting the Escape key, then type:

This will save and exit the file. Go ahead and close your terminal, and re-open it.

Try typing:
zf show version

You should now be greeted with the current version of the Zend Framework that the script is connected with.


After attempting to create a new zend framework project, I ran into a problem with the home path not being picked up correctly… So I had to set it at a deeper level within OSX – please see:


Thursday, June 30th, 2011 Uncategorized

Leave a Reply

You must be logged in to post a comment.

[ad code=1 align=center]