php - centos + vestacp 上的安全模式和 Open_basedir 问题

标签 php apache centos cakephp-2.5

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/

相关文章:

linux - 使用剧本的 YAML 语法错误 (Ansible)

centos - 重启状态为down的节点

centos - 在 jupyterHub 上为 jupyterLab 获取 404

php - 如何避免/解决 PHP 自动换行删除空格的问题

php - 我在哪里可以获得 PHP 7 的 php-mcrypt?

security - apache 的密码文件放在哪里?

Python 请求 : having a space in header for posting

php - 无法在 laravel 项目的文件中加载 FFMpeg

javascript - 为什么 javascript 协议(protocol)会自动解码 URL?

apache - 使用 Tomcat 使用 HTTPS 反向代理配置 Bitbucket Server 的问题