Mac OS PHP upgrade Issue- Mountain Lion Server

I am trying to upgrade PHP from 5.3 to 5.4 on Mountain Lion Server. Im following the steps given here.

Upgrade runs without any problem. both
Code:
php -v
php 5.4.16 (cli) (built: Jun 15 2013 02:54:05)
and
Code:
which php
/usr/local/php5/bin/php
both points to updated PHP path

But apache server still points to old php installations when i run phpinfo().
So does phpmyadmin. Which also points to php5.3. (It still resides in path /usr/local/php/bin/php

I have checked bash_profile, restarted apache. Still cannot get the upgraded PHP active.

I have tested the same upgrade on my local machine running Mountain Lion and works fine.

Is there any other setting on Mountain Lion Server that needs to be updated for PHP upgrade?
 
Came across this discussion in apple communities.

Apple recommends not to upgrade inbuilt PHP, Since its used by other applications running inside server. PHP upgrade will be done along with Apple updates after apple test next version of PHP.
Disappointing to see Apple still stickimng to very old version of PHP and recommends not to upgrade
 
Back
Top