How To Change What Version of PHP Apache2 Uses?
Posted
by nicorellius
on Server Fault
See other posts from Server Fault
or by nicorellius
Published on 2010-06-07T21:40:33Z
Indexed on
2010/06/07
21:53 UTC
Read the original article
Hit count: 577
I just discovered that I am using the wrong version of PHP for a CRM application. Once I figured out how to make a simple phpinfo()
script to tell me what Apache2 is using, I tried changing the php.ini
such that my webserver would use the PHP I want. Well, this is my problem. Not sure how to do that.
I compiled the version of PHP I want to /etc
here:
/etc/php-5.2.8/
Inside this, there was a php.ini-recommended
file that I made some changes to and renamed to php.ini
so PHP would use it. But when I opened my browser and cleared my history and went to the http://localhost<CRM dir>/install.php
address, the wizard still says I'm not usign the correct version of PHP.
Based on this post what do I have to do to change the version of PHP that shows up after I run my test.php
script? In other words, phpinfo()
says I'm running PHP 5.3.2, but I want to change it to my compiled 5.2.8 version located in /etc
.
© Server Fault or respective owner