乌班图。禁用 open_basedir 和安全模式
我正在运行带有 PHP 5.3 的 Ubuntu 10.04 VPS 服务器。 我收到一条错误消息,指出curl 不适用于安全模式并且已激活open_basedir
Severity: Warning
Message: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
Filename: libraries/Curl.php
Line Number: 213
如何禁用安全模式和open_basedir?
感谢所有帮助!
I am running an Ubuntu 10.04 VPS server with PHP 5.3.
I got an error saying that curl does not work with safe mode and open_basedir activated
Severity: Warning
Message: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
Filename: libraries/Curl.php
Line Number: 213
How can I disable safe mode and open_basedir?
Thankful for all help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需注释掉
php.ini
中的open_basedir
行,您可能会在这里找到它:然后重新启动 Apache:
您可能还想 了解关闭此功能的影响。
Just comment out the
open_basedir
line inphp.ini
, you'll probably find it here:Then restart Apache:
You probably also want to read about the implications of turning this off.