The environment of the subject is vmware+ubuntu+laravel+nginx+mysql
Set the address of the vm’s shared folder under ubuntu/mnt/hgfs/htdocs/data_web
The permissions of htdocs are as follows
##The permissions of laravel project are as follows
The permissions of nginx are as follows
file_put_contents(/mnt/hgfs/htdocs/data_web/storage/ad_110309.html): failed to open stream: Permission denied
php artisan cache:clear
chmod -R 777 storage
composer dump-autoload
But it’s useless. I wonder if the user www needs to be added to the vm’s shared folder user permissions, similar to the solution to this problem of /a/11..., but I don’t know how to add it?
This directory is mounted locally. Check the permissions of local files.