Granting Write Permissions on AWS EC2 Instance

213 Views Asked by At

when I connect with FileZilla to EC2 and when I try to edit and save a file, I get this error:

templates/user_memebership_profile.php: open for write: permission denied
Error: File transfer failed

What do I need to do to be able to edit and save files with FileZilla (or if you know a more convenient tool)?

Admittedly, I am not an infra expert. For this reason, I'd appreciate very much precise (if possible step-by-step) instructions on how to clear the cache.

Thanks!

1

There are 1 best solutions below

0
Dantes On

This solved the issue:

sudo chown -R bitnami:daemon /opt/bitnami/wordpress
sudo find /opt/bitnami/wordpress -type d -exec chmod 775 {} \;
sudo find /opt/bitnami/wordpress -type f -exec chmod 664 {} \;
sudo chown -R bitnami:daemon /bitnami/wordpress
sudo find /bitnami/wordpress -type d -exec chmod 775 {} \;
sudo find /bitnami/wordpress -type f -exec chmod 664 {} \;
sudo chmod 640 /bitnami/wordpress/wp-config.php