如何在运行 Plesk Virtuozzo 的服务器上升级 php?

发布于 2024-09-01 19:39:51 字数 195 浏览 3 评论 0原文

Plesk 到底是如何运作的?我有一个 Centos 5.2 上的 VPS,并且有 php 5.1.6。我已经将 plesk 更新到版本 9.52,它声称可以进行某种形式的 php 更新,但据我所知还没有。如何在不破坏 plesk Virtuozzo 的情况下更新到 php 5.2 (centos 5.4)?

Plesk 似乎是某种我无法理解的疯狂黑魔法。

How on earth does plesk actually work? I have a VPS which is on centos 5.2 and has php 5.1.6. I have updated plesk to version 9.52 and it claimed to do some form of php update but it hasn't as far as i can see. How can i update to php 5.2 (centos 5.4) without breaking plesk Virtuozzo?!

Plesk seems to be some kind of crazy black magic that i just don't understand.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身骄傲 2024-09-08 19:39:52

Plesk 使用服务器上当前安装的任何 PHP 版本。

您可以从 IUS 存储库将 PHP 更新到版本 5.2 或更高版本,但由于 Plesk 在 RPM 数据库中专门查找软件包“php”而不是“php52”,因此会显示 PHP 未安装,并且 PHP 将崩溃。我通过编译一个虚拟的 php 包来解决这个问题,其中没有任何内容,只是称为“php”,这样 Plesk 就不会禁用 PHP 功能,但这不是最好的方法。

Plesk uses whatever version of PHP is currently installed on the server.

You can update PHP to version 5.2 or higher from the IUS repository, but because Plesk looks in the RPM database specifically for the package "php" and not "php52" it will show that PHP is not installed, and PHP will break. I've gotten around this by compiling a dummy php package, with nothing in it, just called "php" so that Plesk won't disable PHP functionality, but that's not the best way to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文