Skip to main content
Post Closed as "Duplicate" by miken32 php
added 28 characters in body; edited title
Source Link
Dynelight
  • 2.2k
  • 4
  • 28
  • 51

What are the right Proper group ownership & permissions to the Laravel app/storage folder on an *nixvagrant?

I have successfully set up a Vagrant environment to put my laravel application with all its dependencies, as well as configuring the web server as required. I set this up using ubuntu.

The problem that I have is the app/storage folder. I noticed that the first time I loaded the site, it gave me an error with permissions. I then ran a:

chmod -R a+rwx app/storage 

... And that made me load my file properly. When I refreshed, I got a blank screen.

I ran chmod once again, and I had access to my mainpage once again.

I tested my routes only to come with the problem that my application randomly crashed. Running chmod yet again solved this.

I came to the conclusion that my problem is related with group ownership and not so much permissions themselves, because files are being created constantly on the app/storage folder and they are not being created with permissions.

How can I add write permissions to the app/storage folder so everytime new files are made, will have the permissions I need?

What are the right ownership & permissions to the Laravel app/storage folder on an *nix?

I have successfully set up a Vagrant environment to put my laravel application with all its dependencies, as well as configuring the web server as required.

The problem that I have is the app/storage folder. I noticed that the first time I loaded the site, it gave me an error with permissions. I then ran a:

chmod -R a+rwx app/storage 

... And that made me load my file properly. When I refreshed, I got a blank screen.

I ran chmod once again, and I had access to my mainpage once again.

I tested my routes only to come with the problem that my application randomly crashed. Running chmod yet again solved this.

I came to the conclusion that my problem is related with group ownership and not so much permissions themselves, because files are being created constantly on the app/storage folder and they are not being created with permissions.

How can I add write permissions to the app/storage folder so everytime new files are made, will have the permissions I need?

Proper group ownership & permissions to the Laravel app/storage folder on vagrant?

I have successfully set up a Vagrant environment to put my laravel application with all its dependencies, as well as configuring the web server as required. I set this up using ubuntu.

The problem that I have is the app/storage folder. I noticed that the first time I loaded the site, it gave me an error with permissions. I then ran a:

chmod -R a+rwx app/storage 

... And that made me load my file properly. When I refreshed, I got a blank screen.

I ran chmod once again, and I had access to my mainpage once again.

I tested my routes only to come with the problem that my application randomly crashed. Running chmod yet again solved this.

I came to the conclusion that my problem is related with group ownership and not so much permissions themselves, because files are being created constantly on the app/storage folder and they are not being created with permissions.

How can I add write permissions to the app/storage folder so everytime new files are made, will have the permissions I need?

Source Link
Dynelight
  • 2.2k
  • 4
  • 28
  • 51

What are the right ownership & permissions to the Laravel app/storage folder on an *nix?

I have successfully set up a Vagrant environment to put my laravel application with all its dependencies, as well as configuring the web server as required.

The problem that I have is the app/storage folder. I noticed that the first time I loaded the site, it gave me an error with permissions. I then ran a:

chmod -R a+rwx app/storage 

... And that made me load my file properly. When I refreshed, I got a blank screen.

I ran chmod once again, and I had access to my mainpage once again.

I tested my routes only to come with the problem that my application randomly crashed. Running chmod yet again solved this.

I came to the conclusion that my problem is related with group ownership and not so much permissions themselves, because files are being created constantly on the app/storage folder and they are not being created with permissions.

How can I add write permissions to the app/storage folder so everytime new files are made, will have the permissions I need?