一个开发LAMP服务器上如何运行多个版本的PHP 5.x? [英] How can one run multiple versions of PHP 5.x on a development LAMP server?

查看:59
本文介绍了一个开发LAMP服务器上如何运行多个版本的PHP 5.x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用多个版本的PHP 5.x(例如PHP 5.0.0和PHP 5.2.8)来测试我的PHP应用程序.

I need to test my PHP applications with multiple versions of PHP 5.x, such as PHP 5.0.0 and PHP 5.2.8.

是否可以配置开发LAMP服务器,以便快速测试具有多个PHP5版本的应用程序?

Is there a way that I can configure a development LAMP server so I can quickly test applications with multiple versions of PHP5?

推荐答案

一种方法是使用mod_php设置您的主要php版本,并通过不同端口上的快速cgi运行其他所有版本(例如81, 82、83等).但是,这不能保证行为完全一致.

One way to do this is to have your main version of php set up with mod_php and run all of the others through fast cgi on different ports (i.e. 81, 82, 83 etc). This won't guarantee totally consistent behavior though.

这篇关于一个开发LAMP服务器上如何运行多个版本的PHP 5.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆