【问题标题】:Ubuntu. Disable open_basedir and safemodeUbuntu。禁用 open_basedir 和安全模式
【发布时间】:2011-08-15 09:28:08
【问题描述】:

我正在使用 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?

感谢大家的帮助!

【问题讨论】:

    标签: ubuntu-10.04 open-basedir safe-mode


    【解决方案1】:

    只需注释掉php.ini 中的open_basedir 行,你可能会在这里找到它:

    /etc/php5/apache2/php.ini
    

    然后重启Apache:

    sudo /usr/sbin/apache2ctl restart
    

    您可能还想read about the implications 关闭此功能。

    【讨论】:

      猜你喜欢
      • 2016-11-26
      • 2012-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-10
      • 1970-01-01
      • 2022-08-04
      相关资源
      最近更新 更多