开发者

Ubuntu. Disable open_basedir and safemode

开发者 https://www.devze.com 2023-03-28 16:44 出处:网络
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

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 al开发者_Python百科l help!


Just comment out the open_basedir line in php.ini, you'll probably find it here:

/etc/php5/apache2/php.ini

Then restart Apache:

sudo /usr/sbin/apache2ctl restart

You probably also want to read about the implications of turning this off.

0

精彩评论

暂无评论...
验证码 换一张
取 消