本文介绍了laravel.log:对远程AWS EB实例的PHP工匠迁移的PHP致命错误权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我SSH到我的AWS EB实例来运行 PHP工匠迁移,我收到以下错误信息:

下面

链接到图片的尺寸较大

我完全糊涂了。首先,我不明白在本地服务器上此错误。二,什么是一个简单的日志文件都与迁移呢?他们由混帐默认忽略,因此,日志文件被上传。

唉...我如何能够被允许运行任何想法,我 PHP工匠迁移

它总是存储文件夹。空白页或拒绝的权限,这是该死的存储文件夹。

我不知道EB是如何工作的,如果它是一个常规的发行或什么的,但你应该改变存储文件夹的所有权到Web服务器(WWW的数据最有可能的),所以它可以构建然后将意见 775 的权限,所以你可以读/写日志。

所以是这样的:

 须藤CHOWN -R WWW的数据:WWW的数据存储/
须藤搭配chmod -R 775存储/
 

When I SSH into my AWS EB instance to run php artisan migrate, I get the following error message:

Link to bigger size of picture below

I am completely confused. First, I don't get this error on the local server. Second, what does a simple log file have to do with migrations anyway? They are ignored by git by default, so no log files are uploaded.

Sigh... Any ideas on how I can be allowed to run my php artisan migrate?

解决方案

It's always the storage folder. Blank pages or permission denied, it's the darn storage folder.

I don't know how EB works, if it's a regular distro or what, but you should change ownership of the storage folder to the web server (www-data most likely) so it can build the views then set 775 permission so you can write/read logs.

So something like:

sudo chown -R www-data:www-data storage/
sudo chmod -R 775 storage/

这篇关于laravel.log:对远程AWS EB实例的PHP工匠迁移的PHP致命错误权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:35
查看更多