Level 1
give permission to storage folder 777
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have been trying to deploy my Laravel application to Google Cloud through the Bitnami LAMP stack. I keep getting permission errors from left and right. It seems like everything I try fails with some permission error. Currently, I'm getting:
SQLSTATE[HY000] [1130] Host '127.0.0.1' is not allowed to connect to this MySQL server (SQL: select * from `collections`) (View: /opt/bitnami/apps/photoarchive/resources/views/homepage.blade.php)
when I try to access the app through a web browser. I know I have not migrated the database but when I try to run php artisan migrate I get another permission error.
UnexpectedValueException : The stream or file "/opt/bitnami/apps/photoarchive/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
Its really frustrating. How can I fix the issue?
Please or to participate in this conversation.