Skip to content

Instantly share code, notes, and snippets.

@feliperomero3
Last active April 9, 2022 22:19
Show Gist options
  • Save feliperomero3/45ae0960a674991b00b0b8e124c964e7 to your computer and use it in GitHub Desktop.
Save feliperomero3/45ae0960a674991b00b0b8e124c964e7 to your computer and use it in GitHub Desktop.
WordPress Utilities
# https://wp-cli.org/#installing
wp plugin install limit-login-attempts --activate
wp plugin install check-email --activate
wp plugin install contact-form-submissions --activate
wp plugin install preferred-languages --activate
wp plugin install duplicator --activate
wp plugin install smtp-mailer --activate
wp plugin install login-logo --activate
wp plugin install disable-xml-rpc --activate
wp plugin install antispam-bee --activate
# Go to wordpress installation root directory
cd /path/to/wordpress
# Give ownership to Apache2's PHP process
sudo chown -R www-data:www-data .
# Apply files and directories permissions
sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 644 wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment