
Run the following command in shell to get the current php version
php -v
If you are using Lion like me, and never update php, then you may get 5.3.10.
Unfortunately today I spent a few hours trying to make fuelphp 1.4 oil work normal like when I was using 1.3.
At the moment, the lastest php version is 5.3.19.
In order to update PHP5 CLI on OSX using LIIP package, use the following command.
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.3
# rename the old php
sudo mv /usr/bin/php /usr/bin/php_old
# copy the new package to /usr/bin
sudo cp /usr/local/php5-20121126-082829/bin/php /usr/bin/php
# test version
php -v
# get phpinfo, useful to locate php.ini file
php -i
# test fuel php oil
oil console
Now fuelphp oil should work normally, using 5.3.19 fixed the problem (at least for me)
.
EDIT:
Rather than rename old php file, it is better to set PATH to new php location
Edit ~/.bashrc using nano or vim.
Add /usr/local/php5/bin, so you might have something like this:
PATH=/usr/local/php5/bin;$PATH:$HOME/.rvm/bin