Level 102
Sounds like your users does not have access to the folder. Is the user the same as the owner of the folder?
Hi,
file_put_contents(/var/www/html/.env): Failed to open stream: Permission denied
i got this error when i run php artisan key:generate on production server
what shall i do
@ashoor If you have sudo rights, you can do
sudo -u www-data php artisan key:generate
Please or to participate in this conversation.