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 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler