admin login proboem after upgrade to 4.0.12

#1
After I upgraded the lsws server from 4.0.9 to 4.0.12, it shows the following error at the login page. Websites work but can't login admin. Any idea? Thanks

Warning: session_start() [function.session-start]: open(/opt/lsws//admin/tmp/sess_5665af9d474038650d9f9a01cd898ff6, O_RDWR) failed: Permission denied (13) in /opt/lsws/admin/html.4.0.12/classes/ws/CLIENT.php on line 41

Warning: Unknown(): open(/opt/lsws//admin/tmp/sess_5665af9d474038650d9f9a01cd898ff6, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/opt/lsws//admin/tmp) in Unknown on line 0
 
#3
chmod tmp to 777, the error gone but it just stays at the login page a minute after clicking the login button then shows "503 Service Unavailable "
 
Last edited:

mistwang

LiteSpeed Staff
#4
Please close the browser window and try again, the permission mask of /opt/lsws/admin/tmp should not be changed.

try

/opt/lsws/admin/misc/create_admin_keypair.sh

if it still does not work.
 
#5
Still doesn't work. Here is what I found in the error log:

2010-02-17 12:53:06.265 [NOTICE] [202.67.247.86:50465-0#_AdminVHost] [STDERR] /opt/lsws/conf/httpd_config.xml is not a valid file.
2010-02-17 12:53:39.047 [INFO] [202.67.247.86:50467-0#_AdminVHost] ExtConn timed out while processing.
2010-02-17 12:53:39.047 [INFO] [202.67.247.86:50467-0#_AdminVHost] connection to [/tmp/lshttpd/admin_php.sock.929] on request #0, confirmed, 0, associated process: 30276, running: 1, error: Connection timed out!
2010-02-17 12:53:39.047 [NOTICE] [202.67.247.86:50467-0#_AdminVHost] Suspicious request timeout, associated process: 30276, running: 1.
2010-02-17 12:53:44.880 [NOTICE] [202.67.247.86:50468-1#_AdminVHost] [STDERR] /opt/lsws/conf/httpd_config.xml is not a valid file.
 

mistwang

LiteSpeed Staff
#9
admin_php is running as user apache. I tried to change the user to lsadm in httpd_config.xml but it fails to startup.
You need to check if user "lsadm" has been added to /etc/passwd or not.
you can run the installer from lsws-4.0.12 package and do a manual update.
Then restart LSWS.
 
Top