Page 1 of 1

command line mac os x

Posted: Wed Sep 13, 2006 2:39 pm
by fendtele83
Ok... so a while back i upgraded to PHP 5 on my 17" G4 Powerbook running OS X v.10.4.7.

Apache recognizes that i'm using the new version of PHP but the rest of my computer doesnt. What i mean, is that using php in the command line, it still uses php v4.

If i run the command php -v i get:

PHP 4.4.1 (cli) (built: Mar 5 2006 10:30:50)
...

I need the command line to know i'm using php 5, how do i accomplish this?

-Dave

Posted: Thu Sep 14, 2006 10:07 am
by pickle
It's possible when you upgraded to PHP5, that you didn't upgrade the CLI version - they are two different programs. If you did install it, then the problem likely is that you've still got the PHP4.4 CLI in your path. Find the PHP5 CLI program & make a shortcut to it from /usr/local/bin . That might involve overwriting the current 'php' program/shortcut (which shouldn't be a problem as it's likely the PHP 4.4 version.