Problems accessing LSWS admin

#1
Hi there

I recently transferred my files over to a new server and migrated my LSWS license. Prior to migrating, I had no problems accessing the LSWS control panel but after migrating, I upgraded to (what turned out to be) a problematic build of 4.0.12 so was forced to revert back to my previous version of 4.0.6 via the control panel. Since then, I have been unable to access due to error messages, yet my websites are working fine.

I am receiving the following errors when accessing the CP:

Code:
Warning: session_start() [function.session-start]: open(/usr/local/lsws//admin/tmp/sess_7721f8609f0725ccbdc865d7566b63da, O_RDWR) failed: Permission denied (13) in /usr/local/lsws/admin/html.4.0.6/classes/ws/CLIENT.php on line 40

Warning: Unknown(): open(/usr/local/lsws//admin/tmp/sess_7721f8609f0725ccbdc865d7566b63da, 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 (/usr/local/lsws//admin/tmp) in Unknown on line 0
When attempting to login with my credentials, I receive (in addition to the above):

Code:
Warning: fopen(/usr/local/lsws/admin/conf/htpasswd) [function.fopen]: failed to open stream: Permission denied in /usr/local/lsws/admin/html.4.0.6/classes/ws/CLIENT.php on line 124
Here are the permissions in /usr/local/lsws/admin/conf/

Code:
# ls -al /usr/local/lsws/admin/conf/

total 60
drwx------   2 lsadm  lsadm   4096 Jan 14 02:02 .
drwxr-xr-x  19 root   root    4096 Dec 28 03:49 ..
-rw-------   1 lsadm  lsadm   1019 Dec  8  2007 admin_config.xml
srwx------   1 nobody nobody     0 Apr 13  2008 .cgid.sock
srwx------   1 nobody nobody     0 Dec 22 19:00 .cgid.sock.079
srwx------   1 nobody nobody     0 Mar  1  2009 .cgid.sock.148
srwx------   1 nobody nobody     0 Jan 12 23:49 .cgid.sock.152
srwx------   1 nobody nobody     0 Jan 14 01:32 .cgid.sock.188
srwx------   1 nobody nobody     0 Dec 28  2008 .cgid.sock.200
srwx------   1 nobody nobody     0 Dec 28 03:49 .cgid.sock.203
srwx------   1 nobody nobody     0 Dec  6  2008 .cgid.sock.216
srwx------   1 nobody nobody     0 Dec  8  2008 .cgid.sock.289
srwx------   1 nobody nobody     0 May  5  2008 .cgid.sock.421
srwx------   1 nobody nobody     0 Jan 13 23:29 .cgid.sock.499
srwx------   1 nobody nobody     0 Sep 23 01:41 .cgid.sock.517
srwx------   1 nobody nobody     0 Mar 20  2008 .cgid.sock.536
srwx------   1 nobody nobody     0 Jan  3 01:44 .cgid.sock.582
srwx------   1 nobody nobody     0 Mar 10  2009 .cgid.sock.607
srwx------   1 nobody nobody     0 Sep 18  2008 .cgid.sock.720
srwx------   1 nobody nobody     0 Dec  2  2008 .cgid.sock.805
srwx------   1 nobody nobody     0 Jan 14 02:02 .cgid.sock.824
srwx------   1 nobody nobody     0 Nov 17 22:58 .cgid.sock.827
srwx------   1 nobody nobody     0 Dec 16  2008 .cgid.sock.855
srwx------   1 nobody nobody     0 Mar 21  2009 .cgid.sock.965
srwx------   1 nobody nobody     0 May 13  2009 .cgid.sock.970
srwx------   1 nobody nobody     0 Apr 24  2008 .cgid.sock.981
srwx------   1 nobody nobody     0 Nov 27  2008 .cgid.sock.999
-rw-------   1 lsadm  lsadm     41 Jul 12  2009 htpasswd
-rw-------   1 lsadm  lsadm    528 Dec 26 02:58 jcryption_keypair
-rw-------   1 lsadm  lsadm  38417 Dec  8  2007 php.ini
Any help would be appreciated.

Thanks

Mark
 

mistwang

LiteSpeed Staff
#2
You should try a manual upgrade to 4.0.12 again.
If still have trouble login, run command

/usr/local/lsws/admin/misc/create_admin_keypair.sh

and try again.
 

NiteWave

Administrator
#3
permission of
/usr/local/lsws/admin/conf/
looks ok.

what's permission of
/usr/local/lsws/admin/tmp ?

and which user running lshttpd? nobody, lsws or ...?

also please give output of
groups lsadm
 
Top