Warning: file_get_contents(): open_basedir restriction in effect. File(/proc/uptime) is not within the allowed path(s)解决方法

  今天一位客户问ytkah网站后台出现了Warning: file_get_contents(): open_basedir restriction in effect. File(/proc/uptime) is not within the allowed path(s):提示错误,如下图所示,这个是因为php的open_basedir设置引起的。客户的运行环境是宝塔面板,那设置就很方便了

  进入站点设置,将防跨站攻击(open_basedir)前的勾去掉,刷新一下后台,提示消失了

   但是为了安全起见,在不影响网站运行的情况下,建议还是把防跨站攻击开启。

原文地址:https://www.cnblogs.com/ytkah/p/13475411.html