Skip to content
Craftwebx
  • Home
  • About Us
  • Service Packages
    • WordPress Website Design
    • Wix Website Design
    • WordPress Website On Page and Technical SEO
    • Website Hosting
  • Portfolio
  • Blog
    • WordPress
    • Wix
    • Freelancing
    • Website Design
    • Passive Income
  • Contact Us
Menu Close

How to Fix Being Locked Out of WordPress Admin (wp-admin)

  • No Comments
How to Fix Being Locked Out of WordPress Admin (wp-admin)

How to Fix Being Locked Out of WordPress Admin (wp-admin)

Spread the love

Getting locked out of WordPress admin (wp-admin) is a common issue, and it can happen for several reasons, from incorrect login credentials to security plugins blocking access. This can be a frustrating experience, especially if you need to make urgent updates to your website.

In this post, we’ll explain why you might be locked out of your WordPress dashboard and provide solutions to regain access.


Table of Contents

Toggle
  • Why Are You Locked Out of wp-admin?
  • Step-by-Step Guide to Fix Being Locked out of WordPress admin
    •   Step 1: Reset Your Password
    •   Step 2: Disable Security Plugins
    •   Step 3: Disable All Plugins via FTP
    •   Step 4: Fix File Permissions
    •   Step 5: Create a New Admin User via phpMyAdmin
  • Conclusion

Why Are You Locked Out of wp-admin?

Here are a few common reasons for being locked out of WordPress admin:

  • Forgotten Password: You’ve forgotten or lost your password.
  • Corrupt Login File: The login file could be corrupted.
  • Plugin Conflicts: A faulty plugin might be preventing access.
  • Security Plugins: Some security plugins may block your login attempts if they detect suspicious activity.
  • Incorrect Permissions: File or folder permission issues can prevent access.

Step-by-Step Guide to Fix Being Locked out of WordPress admin

  Step 1: Reset Your Password

If you’ve forgotten your password, the first step is to reset it.

  1. Go to the WordPress login page and click on Lost your password?.
  2. Enter your email address and follow the instructions to reset your password.
  3. Check your email for the password reset link.

  Step 2: Disable Security Plugins

Sometimes, security plugins like Wordfence or iThemes Security may lock you out due to suspicious activity or multiple failed login attempts. You can disable these plugins to regain access.

  1. Access your website via FTP or your hosting provider’s file manager.
  2. Navigate to the wp-content/plugins folder.
  3. Rename the security plugin’s folder to deactivate it.
  4. Try logging into your WordPress dashboard again.

 

  Step 3: Disable All Plugins via FTP

If disabling security plugins doesn’t work, another plugin might be causing the issue. You can deactivate all plugins to see if one is the culprit.

  1. Access your website via FTP.
  2. Navigate to wp-content/plugins.
  3. Rename the plugins folder to plugins_old. This will deactivate all plugins.
  4. Try logging into your WordPress dashboard.

  Step 4: Fix File Permissions

Incorrect file permissions can prevent you from accessing your WordPress admin.

  1. Access your website via FTP.
  2. Right-click the wp-admin folder and set its permissions to 755.
  3. Do the same for the files inside the folder, setting them to 644.

  Step 5: Create a New Admin User via phpMyAdmin

If you’re still locked out, you can create a new admin user via phpMyAdmin.

  1. Access your hosting control panel and open phpMyAdmin.
  2. Select your WordPress database and navigate to the wp_users table.
  3. Insert a new user with the following values:
    • user_login: NewAdminUsername
    • user_pass: NewPassword (make sure to use the MD5 function)
    • user_nicename: Your name
    • user_email: Your email
    • user_registered: The current date
    • user_status: 0
  4. Go to the wp_usermeta table and insert the following:
    • user_id: The ID of the new user you just created
    • meta_key: wp_capabilities
    • meta_value: a:1:{s:13:”administrator”;b:1;}
  5. Log in with your new credentials.

Conclusion

Being locked out of wp-admin can be stressful, but by following the steps in this guide, you should be able to regain access. If you’re still having trouble, reach out to Craftwebx for expert WordPress support.

PrevPreviousHow to Fix WordPress Login Page Redirecting or Refreshing Issue
NextHow to Fix the Memory Exhausted Error in WordPress: A Step-by-Step GuideNext

Leave a Reply Cancel reply

Search
Recent Posts
  • How to Avoid Scams and Fake Crypto Bots – A Complete Safety Guide
  • Top Affiliate Programs for Crypto Bot Platforms – Earn Passive Income
  • How to Track Your Performance with Automated Crypto Bots
  • How to Build a Long-Term Passive Income Strategy with Crypto Bots
  • Complete Guide to Earning Passive Income with Crypto Bots
Categories

About Us

Our Mission: Delivering High-Quality, Customized Website Design

We aim to exceed expectations by creating high-quality, responsive websites tailored to your specific needs and goals.

Contact Us

  • +447878798338
  • Craftwebx@gmail.com
  • United Kingdom
© COPYRIGHT 2025 ALL RIGHTS RESERVED
  • Home
  • About Us
  • Service Packages
    • WordPress Website Design
    • Wix Website Design
    • WordPress Website On Page and Technical SEO
    • Website Hosting
  • Portfolio
  • Blog
    • WordPress
    • Wix
    • Freelancing
    • Website Design
    • Passive Income
  • Contact Us
×

Hello!

Click one of our contacts below to chat on WhatsApp

Tahir Saleem
Web Developer Tahir Saleem

Social Chat is free, download and try it now here!

× Need help? Contact Now!