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)前的勾去掉,刷新一下后台,提示消失了

 

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

posted @ 2020-08-11 14:29  ytkah  阅读(1886)  评论(0编辑  收藏  举报
IPO发家故事 网址导航 gg N / G Sitemap

部分内容来源于网络,如有版权问题请联系删除