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

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

 

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

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

 

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

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2021-10-23
  • 2021-11-13
  • 2021-05-15
  • 2021-08-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案