开发者

How to configure local web server such that it should switch between one php version to another

I'm developing one web application, using PHP eclipse IDE. For an instance i want to switch from one PHP version to another version which resides in different location.

Below is my working environment :

1) Having Centos OS

2) PHP 5.1.6 have installed already while installing centos OS

3) Above PHP is installed in /usr/bin/ path

4) I have installed LAMPP in /opt/lampp

5) In LAMPP present PHP 5.2.6 version

I want to configure local web server such that lampp should choose PHP 5.1.6 (which resides in /opt/lampp ) I am not aware of this switching of PHP version.

Please suggest me how should i configure this switching of PHP version in my local web server. Which configuration file should i choose for modifying this change.

Thanks a lot !!开发者_Go百科!

-Pravin


http://gggeek.altervista.org/2007/07/21/running-multiple-php-versions-on-a-single-apache-install/

This guide is a great guide and will get you started!

Another alternative would be to install Xampp, as I believe they provide a batch file that helps you switch versions of PHP in a second.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜