在 Rackspace 云站点上启用 PHP 的 POSIX 功能

发布于 2024-10-05 01:18:10 字数 326 浏览 1 评论 0原文

我使用 Rackspace 云站点进行网络托管。我尝试使用几个 posix_* 函数,但发现它们不可用。使用 phpinfo() 我能够看到 --disable-posix 是“配置命令”的一部分。此外,disable_functions 指令具有此字符串 leak,posix_getpwuid,posix_getpwnam,posix_getgrid,posix_getgrnam,posix_getgroups

有没有办法使用 .htaccess 覆盖它?我在手册中没有看到任何提及。

I use Rackspace Cloud Sites for web hosting. I was trying to use a couple of the posix_* functions and noticed that they aren't available. Using phpinfo() I was able to see that --disable-posix is part of the "Configure Command". Also, the disable_functions directive has this string leak,posix_getpwuid,posix_getpwnam,posix_getgrid,posix_getgrnam,posix_getgroups.

Is there a way to override this using .htaccess? I didn't see any mention of it in the manual.

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

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

发布评论

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

评论(2

浮云落日 2024-10-12 01:18:10

像 --disable-posix 这样的配置命令是编译过程的一部分。

除非他们让您编译并运行您自己的 PHP 版本(我对 RackSpace Cloud 不熟悉),否则您无法更改这一点。

Configure commands like --disable-posix are part of the compilation process.

Unless they let you compile and run your own build of PHP (I'm not familiar with RackSpace Cloud), you can't change that.

娇纵 2024-10-12 01:18:10

不。他们因某种原因而残疾。这就是您使用 Rackspace 云站点所支付的价格。如果您需要启用某些内容并更改超出 .htaccess 允许您执行的配置设置,则需要为您的 Web 托管设置 Rackspace 云服务器(顺便说一句,该服务器不是由 Rackspace 管理的)

编辑:虽然我应该澄清我的内容意思是“不由 Rackspace 管理”...他们管理硬件,但不管理服务器上的软件。这完全取决于你。

No. They are disabled for a reason. That's the price you pay for using Rackspace Cloud Sites. If you need to enable stuff and change configuration settings beyond what .htaccess allows you to do, you'll need to setup a Rackspace Cloud Server for your web hosting (which is not managed by Rackspace b.t.w.)

Edit: Though I should clarify what I meant by "not managed by Rackspace"... They manage the hardware, but not the software that goes on your server. That's completely up to you.

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