I know this has been asked before, but I’ve followed all guides and somehow it still isn’t working
I have both open_basedir set not to work on my domain and safe_mode off completely, heres phpinfo(); print out for the two
safe_mode Off Off
open_basedir /home/proagent/:/home/proagent:/tmp/:/tmp:/usr/local/lib/php/:/home/proagent/domains/xxx.com/bot::/home/proagent/domains/xxx.com/bot/ no value
But yet i’m still getting
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/proagent/domains/xxx.com/public_html/bot/scrape.php on line 58
Any ideas would be good!
As long as you have
open_basedirset, and yourphpinfooutput shows that you have it set (the left value counts),CURLOPT_FOLLOWLOCATIONwill not work. Comment the line to allow access to all files, this is aphp.iniexample: