Control Web Panel

WebPanel => Installation => Topic started by: Nagataka on October 10, 2025, 02:26:43 PM

Title: Cannot login into the admin panel anymore
Post by: Nagataka on October 10, 2025, 02:26:43 PM
Hi all,

Sorry if i post this question in the wrong section.
For a while i am running CWP without any problems.
Last week, i decided to change the root password on the server itself, so not through the controlpanel.
After that, i cannot login into the admin panel anymore.
Also, all the packages i created, cannot login to the client area.

To be honest i was thinking, those passwords would be the same as in /etc/passwd, but i guess i am wrong.
Is there anyway i can retrieve access again to the admin area?
Title: Re: Cannot login into the admin panel anymore
Post by: overseer on October 10, 2025, 03:06:24 PM
When changing the root password outside of CWP, make sure to update these two files so they agree with the current PW:
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
/root/.my.cnf
Title: Re: Cannot login into the admin panel anymore
Post by: Nagataka on October 11, 2025, 02:01:40 PM
When changing the root password outside of CWP, make sure to update these two files so they agree with the current PW:
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
/root/.my.cnf


Thanks for your reply, i can try that, but i didn't change the password of the database.
Or doesn't that have todo with this? Cause these files are for the database connection right?
Title: Re: Cannot login into the admin panel anymore
Post by: overseer on October 11, 2025, 11:52:49 PM
Sorry, that advice was if you had changed the MariaDB root password. You mean the system user root password! Are you on an EL9 distribution (AlmaLinux 9, Rocky Linux 9)?

If so open /etc/login.defs
Find:
SHA_CRYPT_MAX_ROUNDS 10000
Replace with:
#SHA_CRYPT_MAX_ROUNDS 10000

Reboot. Now re-set the root's password and it will login successfully.
Title: Re: Cannot login into the admin panel anymore
Post by: Nagataka on October 12, 2025, 09:56:23 AM
Sorry, that advice was if you had changed the MariaDB root password. You mean the system user root password! Are you on an EL9 distribution (AlmaLinux 9, Rocky Linux 9)?

If so open /etc/login.defs
Find:
SHA_CRYPT_MAX_ROUNDS 10000
Replace with:
#SHA_CRYPT_MAX_ROUNDS 10000

Reboot. Now re-set the root's password and it will login successfully.

Sorry for the lack of information, i am indeed running CentOS 9
Code: [Select]
[mothew@server01 ~]$ hostnamectl
 Static hostname: server01.soberlife.nl
       Icon name: computer-vm
         Chassis: vm 🖴
      Machine ID: 432a6a92f65e49c3b3181e8f0e7f2cab
         Boot ID: bc1q4h3rk4hgruu7auyf0dpxtx6hsh86xpq04jx5g5
  Virtualization: vmware
Operating System: CentOS Stream 9
     CPE OS Name: cpe:/o:centos:centos:9
          Kernel: Linux 5.14.0-522.el9.x86_64
    Architecture: x86-64
 Hardware Vendor: VMware, Inc.
  Hardware Model: VMware Virtual Platform
Firmware Version: 6.00

I did as you suggested, but still cannot login to CWP.
But thanks for the tip at least! :)
Title: Re: Cannot login into the admin panel anymore
Post by: overseer on October 12, 2025, 10:51:43 AM
CWP is in beta for EL9 distributions, so there are still some bugs and this is definitely one of them. But CentOS Stream is definitely a beta quality OS, so a shaky foundation on which to build a server. A piece of friendly advice: consider using AlmaLinux 9 instead. It is definitely firmly in the EL tradition! Meanwhile, that is the advice offered by the CWP devs to resolve the issue:
We are working on resolving this issue, a quick fix is ​​to go to this file
Code: [Select]
nano /etc/login.defs


and comment out the following line

Code: [Select]
SHA_CRYPT_MAX_ROUNDS 5000


to

Code: [Select]
#SHA_CRYPT_MAX_ROUNDS 5000

After this you can change the user's password from the cwp administration panel and you will be able to login.
Title: Re: Cannot login into the admin panel anymore
Post by: Nagataka on October 12, 2025, 01:02:05 PM
Thanks again for your quick reply.
The good thing, no serious stuff is running on this, so a reinstall shouldn't be a problem.

Again thanks for your help.
Title: Re: Cannot login into the admin panel anymore
Post by: Nagataka on October 12, 2025, 03:29:12 PM
Thanks again for your help!
I did not read it all proper, the most important bit, after the reboot i didn't do this:

Code: [Select]
After this you can change the user's password from the cwp administration panel and you will be able to login.
I just did read this, did this and it solved the problem.
Super many thanks!