我正在尝试禁用服务器上的open_basedir。我补充道:
php.ini中的open_basedir = none
httpd.conf中的php_admin_value open_basedir none
<Directory /var/www/mysite.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
php_admin_value open_basedir none在/etc/apache2/sites available/mysite.com.vhost中,但我的问题仍然存在:
Warning: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in (...)Ps。safe_mode已关闭。有什么想法吗?
发布于 2013-10-07 19:16:12
只需在php.ini中注释掉open_basedir即可。如果找不到该指令,则默认为wide open。
https://stackoverflow.com/questions/19223227
复制相似问题