how to point apache to different version of php

Posted by user1218776 on Server Fault See other posts from Server Fault or by user1218776
Published on 2012-06-10T02:43:46Z Indexed on 2012/06/10 4:42 UTC
Read the original article Hit count: 476

Filed under:
|

I installed apache on ubuntu like so:

apt-get install apache2

I initially had installed PHP by doing:

apt-get install php5

That gave me php 5.3.x. Now I want to use the latest version php 5.4.x so I installed from source. Through the cli

$ php -v

outputs the correct version PHP 5.4.3

When I run phpinfo() through the web, I still get php5.3.x. How would I point apache to use my newly installed php instead?

© Server Fault or respective owner

Related posts about apache2

Related posts about php5