如何配置PHP以在Web服务器上运行与后台进程中相同的版本 [英] How to configure PHP to run the same version on the web server as in a background process

查看:72
本文介绍了如何配置PHP以在Web服务器上运行与后台进程中相同的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从命令行:

php --info
//⇒ PHP Version => 5.5.18

在后台进程的命令行中:

From the command line within a background process:

exec('php --info>>logs/phpVersion.txt');
//⇒ PHP Version => 5.5.14

我希望后台进程运行5.5.18版(或与Web服务器相同的版本).在哪里配置?

I want the background process to run version 5.5.18 (or the same version as the web server). Where is that configured?

推荐答案

您必须重新安装5.5.18才能替换5.5.14.这不是配置文件,有两个PHP实例.

You must reinstall 5.5.18 to replace 5.5.14. It's not a configuration file, there are two instances of PHP.

如果您在OS上指定,我将通过进一步的说明来更新此答案. (或者只是Google)

If you specify on OS, I will update this answer with further instruction. (Or just Google it)

这篇关于如何配置PHP以在Web服务器上运行与后台进程中相同的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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