Skip to content

Instantly share code, notes, and snippets.

@loorlab
Created June 21, 2019 22:03
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 loorlab/e1f6a734d0e08f7da640795ff9ebd3c0 to your computer and use it in GitHub Desktop.
Save loorlab/e1f6a734d0e08f7da640795ff9ebd3c0 to your computer and use it in GitHub Desktop.
WordPress on EC2 Requires FTP Credentials to Install Plugins - AWS

sudo chown -R apache:apache /var/www/html/blog/

@loorlab
Copy link
Author

loorlab commented Jan 19, 2022

sudo chown -R www-data:www-data /var/www/html/blog

@loorlab
Copy link
Author

loorlab commented Mar 14, 2023

sudo chown -R <username>:<username> * Changes ownership of all files and folders to your user account and user group.

sudo chown www-data:www-data -R wp-content/ Changes ownership of all files and folders in wp-content folder to www-data user and group. Www-data is the default Apache user and group.

find . -type d -exec chmod 755 {} \; Set all directories permissions to 755

find . -type f -exec chmod 644 {} \; Set all files permissions to 644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment