More WebAdmin login issues

#1
As this thread I have had to comment out the SSL check in login.php to reach the login page.

https://forum.openlitespeed.org/threads/require-https-for-admin-panel-in-version-1-9-0.14507/

That worked for a while, but another update seems to have broken something else. When I try to log in with the correct password I get taken back to the blank login form with no error.

If I comment out these lines in login.php

PHP:
if (!$authorizer->ShowLogin($msg, $msgType)) {
      header('location:/index.php');
      exit();
}
...it gives an "Invalid credentials." error.

I have reset the admin password using lsws/admin/misc/admpass.sh but I'm still getting the same results. I have tried with two different browsers and a private browsing window.

If I try https:// I get a browser warning that I cannot get past so if it's SSL related I am at an impasse.

Is there a log or something that shows the real reason for logins failing (it's not sending any failure emails)? Is the above script still the correct way to change the admin password?

Any other ideas for how I can get into WebAdmin? In my situation I'd be happy with no login at all as there's no security risk.

It all worked well in version 1.8.x but changes in 1.9.0 seem to have made accessing WebAdmin impossible for those of us who just want to run it on a local dev server behind a firewall without SSL.
 
#2
In case it's relevant, admin/logs/error.log contains lots of these two warnings:

Code:
2026-05-29 16:28:50.224654 [NOTICE] [1151] [192.168.178.53:42834-1#_AdminVHost:lsapi] [STDERR] PHP Warning:  dirname() expects exactly 1 parameter, 2 given in /usr/local/lsws/admin/html.open/view/inc/header.php on line 20
2026-05-29 16:28:50.224672 [NOTICE] [1151] [192.168.178.53:42834-1#_AdminVHost:lsapi] [STDERR] PHP Warning:  dirname() expects exactly 1 parameter, 2 given in /usr/local/lsws/admin/html.open/view/inc/header.php on line 21
The relevant lines are:

PHP:
                $paths[] = dirname(__DIR__, 2) . $href;
                $paths[] = dirname(__DIR__, 4) . $href;
This makes no sense because the PHP manual details two parameters!
https://www.php.net/manual/en/function.dirname.php

The server is running AlmaLinux 9.8
 
Top