Reset Joomla Password

Method 1: Edit configuration.php File

If you have access to your configuration.php file for the Joomla installation on your server, then you can recover the password using the following method.

1. Login to cPanel and scroll down to the Files section. Click on the File Manager icon, which will open the File Manager in a new window. Please ensure your browser is not blocking this new window.

2. Find the configuration.php file in your public_html folder and change the file permissions to 644. This will help prevent issues when saving the changed configuration.php file later in this process.

3. Right click on the configuration.php file and select the edit option. Add the following line to the bottom of the file, where myname is a username with administrator access that you know the password for:

public $root_user='myname';

4. Click on the Save Changes button. You may leave the permissions on the configuration.php file at 644. This user will now be a temporary super administrator.

5. Login to the Joomla administrator and change the password of the user you don't have the password for or create a new super admin user. If you create the new user you may want to block or delete the old user depending on your circumstances.

6. When finished click on the "Click here to try to do it automatically" link that appears in the alert box. If using the link was not successful, then go back and delete the added line from your configuration file.

7. Using File Manager, ensure the file permissions of the configuration.php file are 444. If you manually removed the added line, then change the file permissions on the configuration.php file to 444.

Method 2: Edit Joomla Database

If the admin user is still defined, the simplest option is to change the password in the database to a known value. This requires that you have access to the MySQL database using phpMyAdmin or another client. Make sure you change your password once you regain access. These instructions show how to manually change a password to the word "secret"

1. Login to cPanel and scroll down to the Databases section. Click on the phpMyAdmin icon, which will open the MySQL database editor in a new window. Please ensure your browser is not blocking this new window.

2. Find your Joomla database in the left hand navigation column, and click on the plus symbol next to the database. You will then click on the USERS table which stores the Joomla admin information. In most cases this will have random characters in the name, such as: xyz123_users

4. Identify the user that requires a password reset, and click on the Edit link on the same line. Doing this will take you to another page which will enable you to edit each value stored in the users table.

5. A form will display that allows you to edit the password field. Copy the value d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199 into the password field and press the Go button. The password should now be changed to "secret".

6. Log in with this user and password and change the password of this user to a secure value. Check all of the users using the User Manager to make sure they are legitimate. If you have been hacked, you may want to change all of the passwords on the site.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Change WordPress URL

Changing your WordPress URL can be a headache if you have modified your hosting account before...

Reset WordPress Password

WordPress password resets are one of the most common support requests received by the Cloudslices...

Joomla and the ini_set() Error Message

On all Cloudslices shared hosting servers ini_set() has been disabled for security reasons....

Password Protect WordPress Admin

1. Login to cPanel from the client area and click on Files >> Directory Privacy. You will...