0

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!

Jonathan Clark
  • 19,726
  • 29
  • 111
  • 175

1 Answers1

1

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.

Sam Starling
  • 5,298
  • 3
  • 35
  • 52