Skip to content

Instantly share code, notes, and snippets.

@chrisdavidmiles
Last active December 7, 2021 18:06
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 chrisdavidmiles/2fba167c97008ef220793d49f62a89d0 to your computer and use it in GitHub Desktop.
Save chrisdavidmiles/2fba167c97008ef220793d49f62a89d0 to your computer and use it in GitHub Desktop.
Bitnami AWS WordPress Image Setup Notes

Bitnami AWS WordPress Image Setup Notes

Credentials post install

Import your SSH key and login as bitnami@ip.of.server and you can find the credentials in ~/bitnami_credentials

Let's Encrypt Cert stuff

Start the process manually with: sudo /opt/bitnami/bncert-tool
More info: https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl

Perm fixes

See perm fix bash script below

More reference docs

https://docs.bitnami.com/aws/apps/wordpress/get-started/
https://docs.bitnami.com/aws/apps/wordpress/configuration/
https://docs.bitnami.com/aws/apps/wordpress/administration/
https://docs.bitnami.com/aws/apps/wordpress/troubleshooting/

if [ -d "$1" ]
then
ls -lah "$1"
else
echo "Usage: ${0##*/} path/to/wordpress"
fi
echo -en "Fix perms and ownership of WP in this folder?
Press ENTER to continue"
read -n 1 confirm && if [ ! "$confirm" = "" ]; then echo "Cancelling" ; exit; fi
echo "
sudo chown -R bitnami:daemon "$1"
sudo chown -R bitnami:daemon "$1/wp-content"
sudo chown -R bitnami:daemon "$1/wp-content/"
sudo find "$1" -type d -exec chmod 775 {} \;
sudo find "$1/wp-content" -type d -exec chmod 775 {} \;
sudo find "$1/wp-content/" -type d -exec chmod 775 {} \;
sudo find "$1" -type f -exec chmod 664 {} \;
sudo find "$1/wp-content" -type f -exec chmod 664 {} \;
sudo find "$1/wp-content/" -type f -exec chmod 664 {} \;
#sudo chmod 640 "$1"/wp-config.php
Press ENTER to run these commands"
read -n 1 confirm && if [ ! "$confirm" = "" ]; then echo "Canceled" ; exit; fi
sudo chown -R bitnami:daemon "$1"
sudo chown -R bitnami:daemon "$1/wp-content"
sudo chown -R bitnami:daemon "$1/wp-content/"
sudo find "$1" -type d -exec chmod 775 {} \;
sudo find "$1/wp-content" -type d -exec chmod 775 {} \;
sudo find "$1/wp-content/" -type d -exec chmod 775 {} \;
sudo find "$1" -type f -exec chmod 664 {} \;
sudo find "$1/wp-content" -type f -exec chmod 664 {} \;
sudo find "$1/wp-content/" -type f -exec chmod 664 {} \;
#sudo chmod 640 "$1"/wp-config.php
echo "Done."
echo "starting"
sudo wp --skip-plugins --skip-themes plugin install loggedin
sudo wp --skip-plugins --skip-themes plugin auto-updates enable --all
sudo wp --skip-plugins --skip-themes option update loggedin_maximum '50'
sudo wp --skip-plugins --skip-themes option update loggedin_rating_notice '1639074426'
sudo wp --skip-plugins --skip-themes option update loggedin_logic 'allow'
sudo wp --skip-plugins --skip-themes plugin activate loggedin
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment