Keywords: LAMP/MAMP/WAMP - Google Cloud Platform - Technical issue - Permissions
Ok, I have a LAMP stack virtual machine that I'm using to host my Laravel application. The application works fine locally and also on other hosting services. But I can't get past the permission issues on Bitnami. After I upload my files via SFTP, I hit one of the several errors. Sometimes it is the storage directory, sometimes its the vendor library. But mostly its a single file in the logs folder (laravel.log) that keeps bringing up errors when I try to run commands such as
php artisan migrate.
I understand that there are a quite a few users on the VM with each having its own permissions.
bitnami is the user I get when I try to SSH and etc. But this account is virtually useless because I keep adding
sudo to all my commands for them to execute successfully. For example
composer install will throw permission warnings and then fail at the final stages of the install. Adding
sudo fixes the issue.
I have changed the ownership of the folder where the system resides to the
daemon user and also
root user. But I always end up getting permission errors. Usually related to the
I'm sure I'm missing something silly here. So can anyone help me in setting up the system on the Bitnami LAMP stack (Bitnami Google Cloud Platform)?