Cant'access to cwp pro admin

Started by f3biz, March 02, 2023, 01:50:28 PM

Previous topic - Next topic

f3biz

Hi to all, I can't access more to my Admin/root panel of CWP.

I do the login and get many redirects error.

I have tryed many cli command but nothing solve this error.
Reinstalled cwp, reloaded and restarted... nothing
Rebuilded apache too, but nothing.


Anyone can help me?

PakPos

how u can rebuild apache if you cant login?


btw turn off adblock and allow cookies and disable VPN

f3biz

Cookie is allowed, and adblock is not activated.

I rebuild it via cli

f3biz

Anyone can help me???

Users access to control panel, and root/admin can't accesso to cwp..

PakPos

if you can ping your server
then try change the root pwd
after that relogin to cwp using the new password (user root)


if you cant ping :D try to get in and disable csf


btw
can you screenshot what kind of error

f3biz

I think the problem is 2FA plugin for cwp.

Because when login I inser root username and password, then ask me the 2fa code, I put the code and will get many redirect error.


I have tryed to uninstall cwp 2FA plugin and get this error
setenforce: SELinux is disabled
uninstall.sh: line 7: syntax error near unexpected token `>'
uninstall.sh: line 7: `exec >  >(tee -ia $logFile)'


After that I have tryed to exec update admin script via sh /scripts/cwp_update_admin

and get this other error
cat: /usr/local/cwpsrv/htdocs/resources/admin/version.txt: No such file or directory
/scripts/cwp_update_admin: line 14: [[: 0.9.8.1140: syntax error: invalid arithmetic operator (error token is ".9.8.1140")


Could it be a token issue? Because I get an token error?

f3biz

I have tried to remove 2FA, and I do this command

sh /usr/local/src/cwp_2fa/uninstall.sh

and get this
[root@srv2 cwp_2fa]# ./uninstall.sh
setenforce: SELinux is disabled
0.9.8.1151
username
user1
user2
user3
user4
user5
user6
sed: -e expression #1, char 1: unknown command: `,'
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/admin/login//design
tail: cannot open '/usr/local/cwpsrv/htdocs/admin/login/index.php' for reading: No such file or directory
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/var/services/users/login//cwp_theme
tail: cannot open '/usr/local/cwpsrv/var/services/users/login/login.php' for reading: No such file or directory
/////Uninstalling User Panel Files/////


and now when I try to open cwp panel get 404 error