VPS( digital ocean 提供商):CentOS 6.8 x64
管理员:灶神星CP
我正在尝试从另一台服务器同步我的网站。 Rsync 运行良好。
当我尝试访问该站点(新站点,rsynced 到此服务器)时,我的 cakephp 日志中出现错误:
2016-07-21 22:09:28 Warning: Warning (2): curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in
我试图通过以下方式禁用/etc/php.ini 中的 openbasedir:openbasedir = none
我在这个 php.ini 中没有找到任何安全模式
在/usr/local/vesta/php/lib/php.ini 中,safemode = Off 和 openbasedir = none
服务 httpd 重新启动后我仍然收到错误
我能做些什么 ?
谢谢。
最佳答案
经过几次尝试,我找到了问题所在。
要编辑的文件是:
/home/admin/conf/web/httpd.conf
我不得不评论:
php_admin_value open_basedir /home/admin/web/xxx.com/public_html:/home/admin/tmp
关于php - centos + vestacp 上的安全模式和 Open_basedir 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38526456/