Laravel directory permission problem

problem description

laravel framework, you need to change the permissions of storage and bootstrap directories to 777 before you can access them, otherwise you will not have permission. Change it locally to 777, no problem. After the completion of functional development, the submission of git, at this time foolish thing appeared, the local code to submit git is 777 Filter git should be automatically 777 files, pulled down from the git library into 755, the company"s test environment and development environment are not allowed to modify the code, now testers from the git library deployed to the test environment, still reported that storage and bootstrap directories do not have access. Check and find that the permissions of these two directories have become 755. Both the test environment and the production environment are not allowed to modify program and directory permissions, how to solve this situation? Online and other great gods to save

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

May.22,2021

git will not Filter 777 files, it should be that the umask on your server is set to 022. do not set it to 777 *


try giving www user rights
 

you don't need to turn on 777. In fact, you only need to set the directory to nginx. For example, all nginx execution users in all environments of our company are www

.

then simply execute chown-R www. under the Laravel project directory.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf5e6c-31fbc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf5e6c-31fbc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?