dsh7551 2018-05-24 05:31
浏览 726
已采纳

Laravel file_exists():open_basedir限制在共享主机中生效

Hi everyone we developed project with laravel framework and everythings ok in local and vps server, when we want to move the project to shared host , we just move the project files and clear cache files ans setup database confog in env file, but when refresh the site we face the error:

file_exists(): open_basedir restriction in effect. File(/home/loca/domains/loca.cf/libs/storage/framework/sessions/JPdCM3pG7UDe6fIPXwyxSzfCRJuqCAn8xYDXRW7B) is not within the allowed path(s): (/home/amenc/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/)

our php version is 7 but the host version is 5.6, is that make problem? we try more than two days to solve that but we cannot please help us to upload the site, thanks alot :)

  • 写回答

2条回答 默认 最新

  • dousou1878 2018-05-24 07:43
    关注

    Laravel 5.5 requires PHP 7 or above. You need to upgrade your PHP to version 7. If problem still persist after upgrade, try to clear cache using php artisan cache:clear and make sure that laravel /storage directory is accessible for web server user.

    https://laravel.com/docs/5.5#server-requirements

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题