Confused about installing PHP5 cli

S. M. Ibrahim (Lavlu) smibrahim at
Mon Jul 13 21:56:58 PDT 2009

looks like php5 cli already installed, try in terminal
which php (will show /opt/local/bin/php)
php -v

it will show which php version is installed. still if you want to upgrade try

sudo port upgrade php5 +apache2

2009/7/14 mrbigpants <johnbkim at>:
> I need php5 to work in cli. I just did 'sudo port install php5' and it says,
> Image error: Another version of this port (php5 @5.2.10_1+apache2+macosx) is
> already active.
> So apparently php5 is already installed as an apache module. At this point,
> what must I do to get it to work on the command line? Do I have to somehow
> uninstall and reinstall the port?
> (There is php available to cli currently, but it's php4.)
> Thanks.
> -Noob
> --
> View this message in context:
> Sent from the MacPorts - Users mailing list archive at
> _______________________________________________
> macports-users mailing list
> macports-users at

S. M. Ibrahim Lavlu
software engineer, php
somewhere in...

bangla blog:
my blog:
mac blog: htttp://

More information about the macports-users mailing list