如何配置本地Web服务器,使其应在一个php版本与另一个php版本之间切换 [英] How to configure local web server such that it should switch between one php version to another
问题描述
我正在使用PHP eclipse IDE开发一个Web应用程序. 对于一个实例,我想从一个PHP版本切换到另一个位于不同位置的版本.
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.
下面是我的工作环境:
1)具有Centos操作系统
1) Having Centos OS
2)在安装centos操作系统时已经安装了PHP 5.1.6
2) PHP 5.1.6 have installed already while installing centos OS
3)上面的PHP安装在/usr/bin/路径中
3) Above PHP is installed in /usr/bin/ path
4)我已经在/opt/lampp中安装了LAMPP
4) I have installed LAMPP in /opt/lampp
5)在LAMPP中,当前的PHP 5.2.6版本
5) In LAMPP present PHP 5.2.6 version
我想配置本地Web服务器,使lampp应该选择PHP 5.1.6(位于/opt/lampp中) 我不知道PHP版本的这种切换.
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.
请建议我如何在本地Web服务器中配置此PHP版本的切换. 我应该选择哪个配置文件来修改此更改.
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.
非常感谢!
-普拉文
推荐答案
This guide is a great guide and will get you started!
另一种选择是安装Xampp,因为我相信它们提供了一个批处理文件,可以帮助您在一秒钟内切换PHP版本.
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.
这篇关于如何配置本地Web服务器,使其应在一个php版本与另一个php版本之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!