Author Topic: not able to login to admin panel after password restart  (Read 121 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
not able to login to admin panel after password restart
« on: August 21, 2025, 11:33:46 PM »
hello, i changed root password and since then i am not able to login to admin cwp panel its giving login failed. i am able to login fine via SSH and even tried to change password again from SSH using passwd root but still not able to login to cwp admin panel at https://cpanel.sws.net.pk:2087

i am using almalinux 9 and its updated. can somebody suggest me how to fix cwp admin panel login .

Regards,

Zeej

Offline
*
Re: not able to login to admin panel after password restart
« Reply #1 on: August 22, 2025, 12:30:23 AM »
 8) 8) 8) ISSUE RESOLVED  8) 8) 8)

To fix the CWP/cPanel login issue after a password change on AlmaLinux 9, you need to access the server via SSH and use the passwd command with the correct username, such as passwd root, to ensure the password change is applied correctly to the system and CWP. Additionally, you may need to disable a specific line in /etc/login.defs and restart services to resolve incompatibility issues with CWP on AlmaLinux 9, especially after a fresh installation.

1. Use SSH to Access Your Server

    Connect to your AlmaLinux 9 server using an SSH client.

2. Reset the Password Using passwd

    Execute the passwd command, replacing root with the appropriate username (e.g., passwd root or passwd cwp_user).
    Enter the new password twice when prompted.

3. Apply a CWP-Specific Fix

    Edit /etc/login.defs:
        Open the file using nano /etc/login.defs.

Comment out the line SHA_CRYPT_MAX_ROUNDS 5000 by adding a # at the beginning.

after commenting above line change password again using SSH command #passwd root and you are all done.

Restart CWP Services:

    Run sh /usr/local/cwpsrv/htdocs/resources/scripts/restart_cwpsrv.sh or similar commands to restart the CWP services.

Enjoy  8)
« Last Edit: August 22, 2025, 12:33:43 AM by zeejdeej »

Offline
*****
Re: not able to login to admin panel after password restart
« Reply #2 on: August 22, 2025, 02:12:03 AM »
How did you do it?  ???

Any root password change should be from the CLI, simply after logging in as 'root', use:
Code: [Select]
passwd
Change password, done...