Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8461185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:48:37+00:00 2026-06-10T13:48:37+00:00

I have been fighting to set up Zend Framework’s CLI tool on OS X

  • 0

I have been fighting to set up Zend Framework’s CLI tool on OS X for ages. I have followed the manual, but I can’t get it to work.

The most common setup in the *nix environment, is to copy the zf.sh
and zf.php into the same directory as your PHP binary.

[…]

To find out the location of your PHP binary, you can execute ‘which
php’ on the command line. This will return the location of the PHP
binary you will be using to run PHP scripts in this environment.

When I do this, it says /usr/bin/php. So, I have put zf.sh and zf.php into /usr/bin.

Now, the next step is where I get really confused.

The next order of business is to ensure that Zend Framework library is
set up correctly inside of the system PHP include_path. To find out
where your include_path is located, you can execute php -i and look
for the include_path variable, or more succinctly, execute php -i |
grep include_path. Once you have found where your include_path is
located (this will generally be something like /usr/lib/php,
/usr/share/php, /usr/local/lib/php, or similar), ensure that the
contents of the /library/ directory are put inside your include_path
specified directory.

Running php -i | grep include_path returns include_path => .: => .:, which I am not really sure what means (I am new to *nix). I have tried to copy the contents of the library folder to /usr/share/php/, but without luck.

So I guess my problem is figuring out where my include path is so I can put the contents of the library folder there. I figured I would find my php.ini. When I run phpinfo() from a script, it says that my php.ini is located at /etc, but there is no php.ini in that folder. Also, executing php -i shows the following:

Configuration File (php.ini) Path => /etc
Loaded Configuration File => (none)

I guess my PHP is running with default settings since no config file is loaded. I am testing from the terminal with zf show version and get -bash: zf: command not found.

I am really, really confused!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:48:38+00:00Added an answer on June 10, 2026 at 1:48 pm

    I had similar problems once. If i remember correctly i was using WAMP and it had multiple php.ini files (3 i think), i had to track down the right one.

    i followed this tutorial and it worked for me
    http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf

    hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been fighting this for two days and am very frustrated but feel like
i feel dumb for asking this but i have been fighting with this for
I have been fighting with this for a couple of days now. I can't
I have been fighting for like 6 hours with this now. I have followed
I have a simple forms program that I have been fighting with for a
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
Have been searching how to convert a dictionary to a string. But the results
I have been fighting with this error for a while. The error is somewhere
I've been fighting this all day. Inside my styles.xml file I have color information
I've been fighting this for a while, seems I'm close but not quite there.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.