Search code examples
phpwordpressbitnamiamazon-lightsail

Cannot Sign-in to Wordpress Admin Panel


Problem

I cannot access the admin panel for my wordpress website. I use the same login I have been using for months and all that happens is the site refreshes with no error code to speak of.

Envoirnment:

  • Wordpress 5
  • AWS Lightsail micro instance running Bitnami's Wordpress configs

Troubleshooting steps I have tried (none of which has worked):

  1. Disabling all the plugins (This used to work 100% of the time with this issue but isn't now)
  2. Disabling all the themes
  3. Replacing the the wp-login file with a fresh one
  4. Deleting the .htaccess file
  5. Restarting the lightsail instance via the command line and the lightsail console
  6. Clearing my cache/cookies
  7. Create a new instance using a snapshot
  8. Creating a new user via phpMyAdmin and attempting to login (I would get a message saying I entered the wrong password)

Is there another troubleshooting step I can take? If I cannot access the admin panel is there a way I can copy the content of the site to a new server and start fresh there?


Solution

  • Bitnami Engineer here,

    You can take a look at the list of users in the database to see if your user there.

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

    You can update the user's password by running this command

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

    Please substitute NEW_PASSWORD_HERE with the password you want to use.

    You can learn more about this here

    https://docs.bitnami.com/aws/apps/wordpress/administration/reset-wp-admin-password/