skiabox — 2012-10-11T07:14:47-04:00 — #1
I have installed the latest php version on my mac.
The problem is that when I create a simple script (with the function phpinfo() in it) the script still uses the old 5.3.x php version that comes with the system.
Any ideas on how to fix that?
PS : I followed these instructions (http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/)
PS2 : I've already put /usr/local/bin first in the path variable, so php -v at the command line gives the latest version (5.4.x)
kduv — 2012-10-11T13:44:34-04:00 — #2
Installing and updating PHP on my Mac has always been a pain if I do it manually IMO. I've always found it easier to just use MAMP or XAMP.
cpradio — 2012-10-11T13:58:49-04:00 — #3
Did you restart the apache process after doing your changes/upgrade?
skiabox — 2012-10-11T15:10:31-04:00 — #4
Ok, finally I managed to install it and it is working fine.You must just pay attention to all the answers on the above thread.
I manually compiled the IMAP libarries and after removing them from the configuration file I changed icu-config directory from /usr to /usr/local.