I have just installed the latest PHP in my Mac OS X from entrophy.ch.
I set the /etc/apache/httpd.conf like that:
LoadModule php5_lib local/php5/libphp5.so
Where local/php5/libphp5.so is the latest one.
I have also started apache by :
apachectl restart
Then I run php.
in browser: localhost/phpinfo.php i get the latest version 5.3 that’s good.
however, in command line, I’m still running the old 5.2.1 version. What should I do to make the command line run the latest one?
Try this:
This assumes that your PHP 5.3 binary is at /usr/local/php5/bin/php and that your 5.2 binary was at /usr/bin/php