【问题标题】:Laravel 5 application moved from local machine to hosting server causing errorsLaravel 5 应用程序从本地机器移动到托管服务器导致错误
【发布时间】:2017-09-10 09:28:27
【问题描述】:

我在本地机器上使用 xampp 在 laravel 5.0 中开发了一个应用程序,它运行良好。在我使用 ftp 将项目上传到托管服务器后,现在我出现以下错误。

【问题讨论】:

    标签: php web laravel-5 ftp hosting


    【解决方案1】:

    问题是您没有project/storage/framework/sessions 文件夹的正确权限,因此将权限授予0777,即read write execute,然后运行以下命令:

    php artisan config:cache
    

    通过服务器上的terminalputty,一切都会好起来的。

    【讨论】:

    • 在哪里运行?你的意思是在服务器中?
    • 我手动删除了以下文件夹 project/storage/framework/cacheproject/storage/framework/sessionsproject/storage/framework/views 中的文件,但仍然出现相同的错误。
    • 运行命令看看会发生什么:php artisan config:cache
    猜你喜欢
    • 1970-01-01
    • 2014-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-13
    • 1970-01-01
    • 2020-01-31
    • 2016-11-17
    相关资源
    最近更新 更多