How do I reset my joomla password / lost joomla admin password
Author: admin admin Reference Number: AA-00392 Views: 26164 Created: 2013-06-07 07:52 Last Updated: 2025-08-13 15:03 0 Rating/ Voters

How to Reset Your Joomla Admin Password

Overview

If you've lost access to your Joomla admin panel due to a forgotten password, there are several methods to regain access. This guide covers two reliable methods for resetting your Joomla administrator password.

Before You Begin

Accessing Your Hosting Control Panel

To perform these password reset methods, you'll need access to your hosting account:

  • Client Portal: Log in to your hosting account at https://ifastnet.com/portal/clientarea.php
  • cPanel Access: Once logged in, you can access cPanel directly from the client portal, or visit https://yourdomain.com/cpanel (replace "yourdomain.com" with your actual domain)

Getting Support

If you need assistance with any of these steps:

  • Visit our support portal: https://support.ifastnet.com/login.php
  • First-time users: You'll need to register for an account before creating your first support ticket

Method 1: Reset Password Using PHPMyAdmin (Recommended)

This method involves directly editing your Joomla database through PHPMyAdmin.

Step 1: Access PHPMyAdmin

  1. Log in to your cPanel
  2. Locate and click on PHPMyAdmin in the Databases section
  3. Select your Joomla database from the left sidebar

Step 2: Locate the Users Table

  1. Look for a table named #__users (the prefix may vary, such as jos_users or joom_users)
  2. Click on the table name to open it

Step 3: Find Your Admin User

  1. Click the Browse tab to view all users
  2. Locate your administrator account (usually the first user created or one with admin privileges)
  3. Click the Edit button (pencil icon) next to your user record

Step 4: Generate a New Password Hash

  1. Find the password field in the edit form
  2. Replace the existing encrypted password with a new one using this format:
    $2y$10$abcdefghijklmnopqrstuv0123456789
    
  3. For a quick solution, you can use this pre-generated hash for the password "admin123":
    $2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi
    

Step 5: Save Changes

  1. Click Go or Save to apply the changes
  2. Your password is now reset

Step 6: Log In and Change Password

  1. Go to your Joomla admin panel: https://yourdomain.com/administrator
  2. Log in with your username and the new password (in the example above, "admin123")
  3. Important: Immediately change your password to something secure through the Joomla admin interface

Method 2: Create a New Admin User via PHP Script

If you can't access the existing admin account, you can create a new administrator user.

Step 1: Create the PHP Script

  1. Access your cPanel File Manager
  2. Navigate to your website's root directory (usually public_html)
  3. Create a new file called reset-admin.php
  4. Add the following code to the file:
<?php
// Joomla Admin User Creator
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';

$app = JFactory::getApplication('site');

// User details - CHANGE THESE
$username = 'newadmin';
$password = 'newpassword123';
$email = '[email protected]';
$name = 'New Administrator';

// Create user object
$user = new JUser;
$user->set('username', $username);
$user->set('password', $password);
$user->set('email', $email);
$user->set('name', $name);
$user->set('groups', array(8)); // 8 = Super Administrator group

// Save the user
if ($user->save()) {
    echo "New admin user created successfully!<br>";
    echo "Username: " . $username . "<br>";
    echo "Password: " . $password . "<br>";
    echo "Please delete this file immediately!";
} else {
    echo "Error creating user: " . $user->getError();
}
?>

Step 2: Customize the Script

Before running the script, modify these values:

  • $username: Choose a new admin username
  • $password: Set a temporary password
  • $email: Use a valid email address
  • $name: Set the display name for the admin user

Step 3: Run the Script

  1. Save the file
  2. Visit https://yourdomain.com/reset-admin.php in your web browser
  3. If successful, you'll see a confirmation message

Step 4: Clean Up and Secure

  1. Immediately delete the reset-admin.php file from your server
  2. Log in to your Joomla admin panel with the new credentials
  3. Change the password to something more secure
  4. Consider removing the old admin account if it's no longer needed

Security Best Practices

After regaining access to your Joomla admin panel:

  1. Change your password immediately to a strong, unique password
  2. Enable two-factor authentication if available
  3. Update Joomla to the latest version
  4. Review user accounts and remove any unauthorized users
  5. Check for suspicious files or modifications

Troubleshooting

Common Issues:

  • Database connection errors: Verify your database credentials in configuration.php
  • Table prefix mismatch: Check your configuration.php file for the correct table prefix
  • Permission errors: Ensure your hosting account has proper database permissions

Still Need Help?

If these methods don't work or you encounter errors:

  1. Create a support ticket at https://support.ifastnet.com/login.php
  2. Include details about which method you tried and any error messages received
  3. Our support team can assist with more advanced troubleshooting

Important Notes

  • Always backup your database before making any changes
  • Delete any temporary files (like the PHP script) immediately after use
  • Never leave admin credentials in plain text files on your server
  • Consider implementing additional security measures after regaining access

Remember to keep your Joomla installation and extensions updated to prevent future security issues.

Quick Jump Menu