Reputation: 246
I have setup an installation of Bitnami Wordpress Multisite in google cloud. I have also setup the SSH, and I am able to connect through SSH, but I want to go to the wordpress installation and edit files / upload plugins / edit permissions. Any idea of how I am able to do that. I followed bitnami's guide but it still does not allow me.
Upvotes: 0
Views: 799
Reputation: 11
For security reasons, WordPress files are not editable from the WordPress application itself. We would suggest using an FTP client to edit the files remotely.
Another option is to change the permissions to be able to edit from the WordPress application temporarily. Note that this configuration is not secure so please revert it after editing the files temporarily:
sudo chown daemon:daemon /opt/bitnami/apps/wordpress/htdocs/
For /wp-content folder
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content
sudo chmod -R g+w /opt/bitnami/apps/wordpress/htdocs/wp-content
https://docs.bitnami.com/google/apps/wordpress/
Upvotes: 0
Reputation: 191
The cloud image of Bitnami WordPress Multisite is already configured with the right permissions to allow you install or upload plugins, edit any file, etc using the WordPress administration panel.
However, if you are using an old version of WordPress you may find some permissions problems. If it is your case, you can try the following workaround:
/opt/bitnami/apps/wordpress/htdocs/wp-config.php
define('FS_METHOD', 'ftptext');
define('FS_METHOD', 'direct');
/opt/bitnami/apps/wordpress/htdocs
to allow the server user (daemon
) to make the modifications. You can do that by executing sudo chown -R daemon /opt/bitnami/apps/wordpress/htdocs
Hope it helps.
Upvotes: 1