I need to install php5.3 for my cake php project. I installed php5.3.29 and apache separately. now in terminal it shows the php version as 5.3.29 and while i run localhost/info.php it shows the following output on browser
<?php
phpinfo();
?>
Tried many solutions here but none worked
How can i solve this?