
ISSUE RESOLVED

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
