Skip to content

Instantly share code, notes, and snippets.

@anguschiu1
Last active September 6, 2022 23:02
Show Gist options
  • Save anguschiu1/60883b1ccd916f609421b14bf8cfc311 to your computer and use it in GitHub Desktop.
Save anguschiu1/60883b1ccd916f609421b14bf8cfc311 to your computer and use it in GitHub Desktop.
[Bitnami management] Managing AWS Lightsail Bitnami Wordpress image

Managing AWS Lightsail Bitnami Wordpress

WordPress Packaged By Bitnami For AWS Cloud

SSH access to

Run the following command to see your application credentials:

sudo cat /home/bitnami/bitnami_credentials

Show PHP version

php -v

Reset The WordPress Administrator Password

Reset The WordPress Administrator Password

  • First, obtain the user ID for the WordPress administrator account from the command line:

mysql -u root -p bitnami_wordpress -e "SELECT * FROM wp_users;"

  • Then, use the command below to reset the administrator password from the command line. Remember to replace the NEWPASSWORD placeholder with your desired password and the ADMIN-ID placeholder with the user ID obtained from the first command.

mysql -u root -p bitnami_wordpress -e "UPDATE wp_users SET user_pass=MD5('NEWPASSWORD') WHERE ID='ADMIN-ID';"

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