Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions error following the guide #8

Open
poltak opened this issue Jun 9, 2016 · 1 comment
Open

Permissions error following the guide #8

poltak opened this issue Jun 9, 2016 · 1 comment

Comments

@poltak
Copy link

poltak commented Jun 9, 2016

I've followed the blog post you wrote exactly, using the docker-laravel-composer to create a new laravel project, using the same command in the blog post, however after all the containers have been run I cannot get the page to load. I am getting permissions errors in my nginx log in myapp/www/logs/error.log. My page accesses are being logged correctly in access.log.

Here is the message I'm getting:

PHP message: PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream o$
 file "/data/www/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
' in /data/www/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:97
Stack trace:
#0 /data/www/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handl
er\StreamHandler->write(Array)
#1 /data/www/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\Handler\AbstractProcessingHandl
er->handle(Array)
#2 /data/www/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\Logger->addRecord(400, Object(S
ymfony\Component\Debug\Exception\FatalErrorException), Array)
#3 /data/www/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\Logger->error(Object(S
ymfony\Component\Debug\Exception\FatalErrorException), Array)
#4 /data/www/vendor/laravel/framework/src/Illuminate/Log/Writer.php(113)

I've tried changing the ownership on the myapp/www directory as a whole, but still no progress.

I am running on a Linux host, but also tried on my local OS X macbook using boot2docker, or whatever they call it now. Same thing on both.

Did you ever run into this issue?

@GAN-ofm
Copy link

GAN-ofm commented May 2, 2018

I had the same.
change the permissions from the directories 'storage' and 'bootstrap'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants