【问题标题】:Laravel: Move files from local server to Production server and I am getting this error open_basedir restriction in effectLaravel:将文件从本地服务器移动到生产服务器,我收到此错误 open_basedir 限制生效
【发布时间】:2020-04-08 03:38:19
【问题描述】:

当我检查我的网站时,我成功地将我的 Laravel 应用程序上传到我的服务器。我收到了这个错误

file_exists():open_basedir 限制生效。 文件(/Applications/XAMPP/xamppfiles/htdocs/RPI/storage/logs/laravel-2019-12-15.log) 不在允许的路径内: (C:/Inetpub/vhosts/isky.io\;C:\Windows\Temp)

之后我根据此链接更改了 bootstrap/cache 中的文件名,请查看此https://laracasts.com/discuss/channels/laravel/is-dir-open-basedir-restriction-in-effect 好的,现在我的主页已加载,但是当我现在单击登录按钮时,我再次收到此错误

file_exists():open_basedir 限制生效。 文件(C:\Inetpub\vhosts\i-skyhr.io\RPI\resources\lang/en/Forgot Password?.php) 不在允许的路径内: (C:/Inetpub/vhosts/i-skyhr.io\;C:\Windows\Temp) (查看: C:\Inetpub\vhosts\i-skyhr.io\RPI\resources\views\auth\login.blade.php)

请帮助我不知道为什么会出现此错误

【问题讨论】:

  • 在你的根目录中尝试composer du
  • 面临同样的错误

标签: php mysql laravel server


【解决方案1】:

清除缓存和配置,然后部署到实时服务器。请尝试以下命令:

php artisan route:clear

php artisan config:clear

php artisan cache:clear

如果您已经上传到直播服务器,那么您必须按照以下步骤操作:

  1. 删除bootstrap/cache/config.php
  2. 删除所有日志文件 存储/日志。

【讨论】:

    猜你喜欢
    • 2014-05-05
    • 2022-01-08
    • 2019-05-08
    • 1970-01-01
    • 1970-01-01
    • 2016-04-08
    • 2010-10-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多