Skip to content

Instantly share code, notes, and snippets.

@uakhan
Last active December 21, 2018 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uakhan/f5575cc7a12f57f3c03d979866472cfb to your computer and use it in GitHub Desktop.
Save uakhan/f5575cc7a12f57f3c03d979866472cfb to your computer and use it in GitHub Desktop.
ssh wordpress permissions reset for ec2 when you manually install wordpress.
SOURCE: https://community.bitnami.com/t/installing-updating-theme-plugin-on-amazon-aws-bitnami-worpress-installation-failing-with-errors-relating-to-permission-issues/50243/5
I recommend you to restore the permissions/owner configuration by running the commands below:
sudo find /opt/bitnami/apps/wordpress/htdocs -type d -exec chmod 0775 {} \;
sudo find /opt/bitnami/apps/wordpress/htdocs -type f -exec chmod 0664 {} \;
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs
Finally restart Apache:
sudo /opt/bitnami/ctlscript.sh restart apache
(permission issue)
sudo chown -R bitnami:daemon *
After that, your site would have a secure owner/permissions configuration and you should be able to install/update every plugin theme from the Admin Panel.
Best Regards,
Juan Ariza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment