Installed new version of php but server still uses older version

view full story

http://serverfault.com – I just upgraded to PHP 5.4.11 from 5.3.15 following this link. After upgrading I ran php -v but it shows me following output Zafars-MacBook-Pro:php-5.4.11 zafar$ php -v PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies which says PHP 5.3.15. Then I issue this command /usr/local/bin/php -v which shows following output Zafars-MacBook-Pro:/ zafar$ /usr/local/bin/php -v PHP 5.4.11 (cli) (built: Jan 26 2013 20:10:19) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copy (HowTos)