[solved] Can not login to Web Console

#1
I can not log in to litespeed Web Console :/

In admin/logs/error.log i found that :
Code:
2010-12-26 23:34:40.088 [INFO] [89.72.106.13:52076-3#_AdminVHost] ExtConn timed out while processing.
2010-12-26 23:34:40.088 [INFO] [89.72.106.13:52076-3#_AdminVHost] connection to [/tmp/lshttpd/admin_php.sock] on request #0, confirmed, 0, associated process: 12140, running: 1, error: Connection timed out! 
2010-12-26 23:34:40.088 [NOTICE] [89.72.106.13:52076-3#_AdminVHost] Suspicious request timeout, associated process: 12140, running: 1. 
2010-12-26 23:34:40.194 [NOTICE] [89.72.106.13:52076-3#_AdminVHost] [STDERR] XML error: syntax error at line 1<br> Failed to parse file /usr/local/lsws/conf/httpd_config.xml 
2010-12-26 23:35:31.478 [INFO] [89.72.106.13:52076-3#_AdminVHost] Connection idle time: 61 while in state: 5 watching for event: 25,close! 
2010-12-26 23:35:31.479 [NOTICE] [89.72.106.13:52076-3#_AdminVHost] Content len: 0, Request line: 'GET /login.php?generateKeypair=true HTTP/1.1' 
2010-12-26 23:35:31.479 [INFO] [89.72.106.13:52076-3#_AdminVHost] Cookie len: 384, pmaCookieVer=4; __utmz=9165413.1292196939.8.4.utmcsr=xxxx.xxxxx.xx|utmccn=(referral)|utmcmd=referral|utmcct=/search.php; PHPSESSID=b8cc560ea08ae23fd5c619b7fead5512; __utma=9165413.264094497.1291595541.1293365921.1293397573.18; __utmc=9165413; __utmz=9165413.1291595541.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=9165413.264094497.1291595541.1292972472.1293292024.11 2010-12-26
23:35:31.479 [INFO] [89.72.106.13:52076-3#_AdminVHost] HttpExtConnector state: 8, request body sent: 0, response body size: 0, response body sent:0,
left in buffer: 1149, attempts: 0.
Other info :

admin_php is running (www-data user), also lsphp5 is running (www-data user).
owner of /tmp/lshttpd/admin_php.sock is www-data user.
owner of /usr/local/lsws/conf/httpd_config.xml is also www-data user.

Litespeed Web Server Standard v4.0.18

HELP! :)
 
Last edited by a moderator:
#3
I was searching this forum to find answer for my problem, so I have also readed threat that you found. After reading it i was playing with owners,groups of varius files.. but with no luck.

Right now :
I have changed owner:group of /usr/local/lsws to lsadm.
I have edited my httpd_config.xml and set user to lsadm.

After reset of lsws :

12223:/usr/local# ps aux | grep admin_php
lsadm 1703 12.1 0.5 8448 6180 ? R 01:52 0:10 admin_php -c ../conf/php.ini
but it did not resolve my problem :/
 

webizen

Well-Known Member
#4
lsws admin console (port 7080) should run as lsadm user.
lsws regular service (port 80) should run as www-data user (*NOT* lsadm).
lsadm should be a member of the run group of lsws regular service.

so owner:group of /usr/local/lsws should be root.root if you installed lsws as root user.

Try followings:
1. revert back your changes (ownership of /usr/local/lsws and run user of lsws in httpd_config.xml)
2. make sure user 'lsadm' is a member of lsws run group (e.g. if lsws run group is www-data, make sure lsadm is member of www-data in /etc/group file).
3. do '/usr/local/lsws/bin/lswsctrl restart' from command line as root.
 
#5
* Whole /usr/local/lsws is now owned by root:root
* In httpd_config.xml user is set to www-data and group to www
* Group www has members : www-data, lsadm, root, przemk0

Why group www, not www-data ? because i had Apache before Litespeed and i was using www group.

Result :
* litespeed, lsphp5 is runnig as www-data
* admin_php is runnig as www-data :/

Question is how to force admin_php to run as lsadm?
 

webizen

Well-Known Member
#6
Not the entire /usr/local/lsws directory (including subdirectories) needs to be owned by root:root.

ownership and permission should be as follows:

/usr/local/lsws/conf --> lsadm:lsadm (700)
/usr/local/lsws/admin/conf --> lsadm:lsadm (700)
/usr/local/lsws/admin/tmp --> lsadm:www (710)
/usr/local/lsws/admin/cgid --> root:www (710)

then restart lsws from command line.

/usr/local/lsws/autoupdate --> lsadm:lsadm (700)
 
Last edited:
#7
Nope, it (admin_php) still runs as www-data and right now have also problems accessing /usr/local/lsws/admin/tmp to some session files... ofcourse because tmp is now owned by lsadm.
 

webizen

Well-Known Member
#8
all the files under /usr/local/lsws/admin/tmp should be owned by lsadm given admin_php runs as lsadm.

you can reinstall lsws (run install.sh from source package) as root user to set everything right (better shutdown lsws first).

if still not working, send in temporary server access via pm for further investigation.
 
Last edited:
#9
Reinstaling lsws resolved the problem. Thank you all for you help and time!!

ps. i hoped that there will be more sophisticated fix for my problem than just reinstall... like reinstaling windows when something is mess up :) but it is good to have web console back, anyway.
 

webizen

Well-Known Member
#10
Good to hear the problem is resolved.

We could spend more time troubleshooting further and figured out exactly where the problem (ownership and file permission issue) resided. But reinstall should get everything straight in a fast manner. In the future, you can mirror the lsws directory (/usr/local/lsws) in question to a different folder preserving ownership and permission (say cp -rp /usr/local/lsws /usr/local/lsws.problem) and reinstall or upgrade lsws to get problem fix and find out the differences between lsws/* (fixed) and lsws.problem/*.

Did you install lsws using a non-root user? Was your admin console working for while and all the sudden this problem came up or your admin console was never working?
 
Last edited:
Top