Which version of the application are you using?: Wordpress 4.8.3–ja
Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX): Google Cloud Platform
Have you installed any plugin or modified any configuration file?: Installed plenty of plugins but I think unrelated
Describe here your question/suggestion/issue (expected and actual results):
Hi - I'm setting up my first site on Google Cloud Platform, moving it from a cPanel-enabled host and I'm just struggling a bit to understand how I should configure permissions.
Initially the Wordpress side of things was working fine. I could install plugins and the daemon account would happily do it's thing.
Then I tried to upload via FTP a language file that I had created elsewhere. I found that, while logged in with "bitnami" I couldn't upload the language file to any folders created by the daemon account (ie owner/group was daemon daemon).
So I ran the commands here:
Is there a code i can put into the ssh pannel in my google app engine console that will allow me to edit from the wordpress dashboard themes and pluggins? I found this but it didn't work..
THank you.. AJ
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/your_plugin_directory sudo chmod -R g+w /opt/bitnami/apps/wordpress/your_plugin_directory
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs
sudo chmod -R g+w /opt/bitnami/apps/wordpress/htdocs
Now I could upload via FTP files to folders which now have bitnami/daemon as the Owner/Group!
However... the uploaded language file has owner/group set to bitnami/bitnami, so now I cannot save changes done via Wordpress (I assume with the daemon account).
Also, new files created by Wordpress continue to have the owner/group as daemon/daemon. So I can't easily manipulate them via FTP.
I looked at the old cpanel site to see how file permissions were configured there, and they're all using the same root/root owner/group permissions.
So I'm thoroughly confused as to what the "correct" way is to do this. Should I be logging in to FTP with "daemon"? Is there a way to simplify this?