Sara Trice
Just a programmin', bellydancin', cake bakin' kinda girl

  • RSS-Feed posts
  • RSS-Feed comments

  • gallery
  • livejournal
  • résumé
  • website portfolio

Pages

  • gallery
  • livejournal
  • résumé
  • website portfolio

Fun Stuff

  • My Amazon Wish List

Webcomics

  • Dark Legacy Comics
  • Erfworld
  • Questionable Content

New Posts

  • Quickie: How to add a blank option to options_from_collection_for_select
  • Using javan/whenever on Engine Yard Cloud
  • Illinois Home Bakeries – for farmer’s markets only
  • jsTree: adding Expand All and Collapse All buttons
  • Uploadify: changing scriptData with dropdowns

Latest Comments

  • 02.02 | Marc Seifert in Using mysql2 on Windows
  • 31.12 | jeferson in Uploadify: changing scriptData with dropdowns
  • 19.12 | Belinda Darcey in Images showing negative in Safari, and not display…
  • 02.11 | Zhangjian in Github, https, and you
  • 16.10 | Christine in My least favorite phrase
February 2012
S M T W T F S
« Dec    
 1234
567891011
12131415161718
19202122232425
26272829  
23
Sep

Setting the PHP path in OS X

So this will be obvious to you unix/linux geeks, but it took me a while to remember, so I’m putting it here.

I was trying to use the new install of PHP (on the command line) that I’d added instead of the default 4.4.7 install that comes with OS X 10.4. But nobody really says how to do that anywhere.

When I ran “which php” it said I was using /usr/bin/php. I wanted to be using usr/local/php5.

So, in .bash_profile for my user, I added the line:
# Set PATH for php (override default /usr/bin/php)
export PATH=/usr/local/php5/bin/:$PATH

then I saved that and ran “source .bash_profile”.

Now when I run “which php” it says /usr/local/php5/bin//php.

Yay!

by admin in Uncategorized
no comment

Meta

  • Log in
© 2008 - 2012
Design & CSS by
Freizeitler

Blogroll

    Dark Legacy Comics Yay MMORPGs!
    Erfworld Rob Balder writes this
    My Amazon Wish List Buy me somethin’!
    Questionable Content Am I more like Faye or Dora?