Resetting the WordPress administrator password
If you forget your WordPress administrator password and cannot use the email recovery option, you can still reset it using alternative methods. On ruachost.com, there are three main approaches: via Softaculous, WP‑CLI, or directly in the database.
Why Reset the Password?
Section titled “Why Reset the Password?”- Regain access if locked out of the admin dashboard.
- Fix issues when email recovery is unavailable.
- Maintain site security by updating compromised credentials.
Methods to Reset the Administrator Password
Section titled “Methods to Reset the Administrator Password”Method 1: Reset via Softaculous
Section titled “Method 1: Reset via Softaculous”- Log in to cPanel.
- In the Softaculous Apps Installer section, click the icon.
- At the top right, click the All Installations icon.
- Locate your WordPress installation and click the Admin icon.
- Softaculous logs you in automatically.
- In WordPress, go to Users → All Users.
- Locate the administrator account → Click Edit.
- Under Account Management, click Generate Password or type a new one.
- Click Update Profile.
✅ You can now log in with the new password.
Method 2: Reset via WP‑CLI
Section titled “Method 2: Reset via WP‑CLI”If WP‑CLI is installed on your server:
-
Log in via SSH.
-
Navigate to your WordPress directory.
-
Run the following command:
wp user update admin_username --user_pass=new_passwordReplace
admin_usernamewith your admin login andnew_passwordwith the new password.
Method 3: Reset via Database (phpMyAdmin)
Section titled “Method 3: Reset via Database (phpMyAdmin)”-
Log in to cPanel.
-
Under Databases, click phpMyAdmin.
-
Select your WordPress database (usually
username_wpXXX). -
Click the wp_users table.
-
Locate the administrator account.
-
Click Edit.
-
In the
user_passfield, enter:MD5('new_password')Replace
new_passwordwith your chosen password. -
Click Go to save changes.
✅ You can now log in with the new password.