The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to change the file name rp1982 UNIX for Dummies Questions & Answers 2 11-30-2007 12:49 AM
Change format to file II DebianJ UNIX for Advanced & Expert Users 0 03-07-2006 02:25 PM
Help to change value from a file. GCTEII Shell Programming and Scripting 15 03-07-2006 11:54 AM
How to change this file with SED? bejgirl Shell Programming and Scripting 4 01-03-2006 09:23 AM
Help with multiple file rename - change case of part of file name steve7 UNIX for Dummies Questions & Answers 7 06-30-2005 01:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-05-2008
JJ07 JJ07 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 1
Change 'which' file is used

Hi All.

I have 2 copies of PHP on my machine, one is version 4 and one is version 5, installed by MAMP.

When i type: which php it defaults to /usr/php but i want it to use: /Applications/MAMP/bin/php5/php

How can i change this? Im guessing i need to change some variable but im not sure which one.

Oh btw, i am using mac, but i also use openBSD.

Thanks
  #2 (permalink)  
Old 01-05-2008
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
It would seem you would have a couple of choices here:
a. Remove version 4
b. Move version 4 and link /usr/php to version 5
c. Set your PATH variable to find version 5 directory, then version 4 directory.

The choice matters on if you still need version 4 for something.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0