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

喜夏-厌秋 提交于 2020-01-11 13:56:20

问题


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 !!!

-Pravin


回答1:


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.



来源:https://stackoverflow.com/questions/3583017/how-to-configure-local-web-server-such-that-it-should-switch-between-one-php-ver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!