Setting Up Permissions for Wordpress on Amazon Ec2 (Amazon Linux)

AWS Wordpress Configuration for Apache & EC2 User Access

add your user to the same user group of apache.

sudo usermod -a -G apache ec2-user

then exit your account then change ownership that include ec2-user in the path

sudo chown -R ec2-user:apache /var/www

Correct permissions for Bitnami / EC2 WordPress

I left owners as daemon:bitnami and set wp-content to 775 permissions. To get plugin updates to work, I also needed to add the following to wp-config.php:

define('FS_METHOD', 'direct');
define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/tmp/');

And create the tmp directory under wp-content.



Related Topics



Leave a reply



Submit