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

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

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

define('FS_METHOD', 'direct');
define('WP_TEMP_DIR', '/opt/bitnami/apps/wordpress/tmp');
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *