在 Rackspace 云站点上启用 PHP 的 POSIX 功能
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
像 --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.
不。他们因某种原因而残疾。这就是您使用 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.