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

  • Indexing users that belong to groups with ancestry and thinking sphinx
  • Avoiding Ruby hash conditionals in Ruby on Rails
  • 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

Latest Comments

  • 08.05 | Marc-André Lafortune in Testing CKEditor in Ruby on Rails with Cucumber/Ca…
  • 01.05 | Charles in ImageMagick: "convert: color profile operates on a…
  • 25.02 | Stanislaw in Testing CKEditor in Ruby on Rails with Cucumber/Ca…
  • 24.02 | admin in Avoiding Ruby hash conditionals in Ruby on Rails
  • 24.02 | Pam in Avoiding Ruby hash conditionals in Ruby on Rails
May 2012
S M T W T F S
« Mar    
 12345
6789101112
13141516171819
20212223242526
2728293031  
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?