I'm new to Bitnami and currently using a Google Cloud Platform for my VMs. I'm trying to password protect a wordpress installation for 1 of my VMs. It's a dev site so only going to be using the IP address to access the site.
However following the instructions I found here, I am unable to write in the opt/bitnami/apache2/ folder. Everytime I try to run the commands in the above linked instruction, I get the following error /opt/bitnami/apache2/bin/htpasswd.bin: cannot create file opt/bitnami/apache2/wordpress_users
I've tried to manually change the permissions on the folder and it doesn't work. I can't seem to run any commands with SU because there is no password provided for shell access (using only a ssh cert file)
Can anyone can offer help as to what I'm doing wrong or what I'm missing?
Thanks
Thanks for the idea but it didn't work, I tried with sudo having my apache2/ folder set to 755 and ownership back to it's original setting.
On the other hand.... I manage to solve my problem. Seems that in the original on how to call your command there is a part missing! Well it's missing for me cause by adding the fullpath to the original file I was able to successfully get a password in place and things are now working perfectly
$ opt/bitnami/apache2/bin/htpasswd -cb apache2/wordpress_users username password
Took me too long to get that working... Thanks for the help, without you I wouldn't have made a typo that made me rethink the error! Thanks again