Bitnami WordPress Failed to update Plugin
On a Bitnami WordPress server, plugin installation/upgrade failed with permission error. The error is because the web server in bitmai servers runs as user daemon. When you upload a file as user bitnami, you need to make sure you set file permission properly so anyone in the group can write.
To fix the error, run
1 2 3 4 |
sudo chown -R bitnami:daemon /home/bitnami/stack/wordpress sudo chown -R bitnami:daemon /bitnami/wordpress/wp-content sudo chmod -R 770 /bitnami/wordpress/wp-content sudo chmod -R 770 /home/bitnami/stack/wordpress |
Some bitnami installations use different file structure
1 2 |
sudo chown -R bitnami:daemon /home/bitnami/apps/wordpress/htdocs sudo chmod -R 770 /home/bitnami/apps/wordpress/htdocs |
in wp-config.php, added the following when I migrated a site, refer to original wp-config.php for your exact path
1 2 |
define('FS_METHOD', 'direct'); define('WP_TEMP_DIR', '/opt/bitnami/apps/wordpress/tmp'); |