Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误
Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误
Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误
Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误
Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误
Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误

心 无 引 擎 眼 无 流 

宝塔部署时,出现“open_basedir restriction in effect”错误

 

下面是错误代码:

1
2
Warning: require(): open_basedir restriction in effect.
Warning: require(XXXXXXXXXXX): failed to open stream: Operation not permitted in XXXX

  

以下有两种解决方案:

1.去掉网站目录下的勾选,防跨站攻击(open_basedir),然后重启php服务。

Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误

 

2.方案2,修改目录下的.user.ini的隐藏文件

1
2
3
chattr -i .user.ini
vi .user.ini
追加 “:/www/wwwroot/XXXXX/”

 

 

最后最重要的就是重启php服务!!!

下面是错误代码:

1
2
Warning: require(): open_basedir restriction in effect.
Warning: require(XXXXXXXXXXX): failed to open stream: Operation not permitted in XXXX

  

以下有两种解决方案:

1.去掉网站目录下的勾选,防跨站攻击(open_basedir),然后重启php服务。

Warning: require(): open_basedir restriction in effect. 宝塔错误
    





            
宝塔部署时,出现“open_basedir restriction in effect”错误

 

2.方案2,修改目录下的.user.ini的隐藏文件

1
2
3
chattr -i .user.ini
vi .user.ini
追加 “:/www/wwwroot/XXXXX/”

 

 

最后最重要的就是重启php服务!!!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2023-03-08
猜你喜欢
  • 2021-10-06
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案