Cannot login to webadmin console

jamsheer

Active Member
#1
After upgrading to LSWS 5.4.1,while logging into webadmin console it is showing many warning and not able to login.I even downgraded to 5.4 and still the error is not resolved. The warnings displayed are below.

Warning: session_start(): open(/usr/local/lsws//admin/tmp/sess_5eb82f48d749e76982605bd32e6a8383, O_RDWR) failed: Permission denied (13) in /usr/local/lsws/admin/html.5.4/classes/ws/CLIENT.php on line 57
Warning
: fopen(/usr/local/lsws/admin/conf/htpasswd): failed to open stream: Permission denied in /usr/local/lsws/admin/html.5.4/classes/ws/CLIENT.php on line 168
Warning
: file_get_contents(/usr/local/lsws/admin/conf/admin_config.xml): failed to open stream: Permission denied in /usr/local/lsws/admin/html.5.4/classes/ConfigFileEx.php on line 9
Warning: Unknown: open(/usr/local/lsws//admin/tmp/sess_5eb82f48d749e76982605bd32e6a8383, 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

Please let me know why these warnings are shown. Thanks in Advance!
 

Jon K

Administrator
Staff member
#2
Please try upgrading to latest 5.4.1 and running `/usr/local/lsws/bin/lswsctrl stop` and `/usr/local/lsws/bin/lswsctrl start` it should fix the issue.
 

mistwang

LiteSpeed Staff
#3
those session files under /usr/local/lsws/admin/tmp/ should be owned by
lsadm:lsadm with permission 0600
/usr/local/lsws/admin/tmp/ itself should be owned by lsadm:nobody with permission mask 0710.
, please check if those permissions has been changed.
 

jamsheer

Active Member
#4
Please try upgrading to latest 5.4.1 and running `/usr/local/lsws/bin/lswsctrl stop` and `/usr/local/lsws/bin/lswsctrl start` it should fix the issue.
Tried this, but no luck. Still the same error persists.
Thanks for the review!
 
Last edited:

jamsheer

Active Member
#5
those session files under /usr/local/lsws/admin/tmp/ should be owned by
lsadm:lsadm with permission 0600
/usr/local/lsws/admin/tmp/ itself should be owned by lsadm:nobody with permission mask 0710.
, please check if those permissions has been changed.
The permission for session files and tmp folder are correct. I checked and verified this.
 

mistwang

LiteSpeed Staff
#6
is admin_php running as "lsadm" user?
lsws/admin permission is like
drwx--x--- 3 root nobody 58 Sep 16 19:10 cgid
drwx------ 3 lsadm lsadm 98 Aug 27 10:33 conf
drwxr-xr-x 2 root root 24 May 18 09:37 fcgi-bin
lrwxrwxrwx 1 root root 13 Sep 12 21:53 html -> ./html.5.4.1/
\drwxr-xr-x 8 root root 148 Aug 14 22:28 html.5.4
drwxr-xr-x 8 root root 148 Sep 12 21:53 html.5.4.1
drwxr-xr-x 2 lsadm nobody 20 May 17 03:17 htpasswds
drwxr-x--- 2 root nobody 41 May 1 20:33 logs
drwxr-xr-x 2 root root 95 Jul 23 03:30 lscdata
drwxr-xr-x 2 root root 4096 Sep 12 21:53 misc
drwx--x--- 2 lsadm nobody 4096 Sep 16 19:10 tmp
does file /usr/local/lsws//admin/tmp/sess_5eb82f48d749e76982605bd32e6a8383 exits?
 

jamsheer

Active Member
#7
is admin_php running as "lsadm" user?
lsws/admin permission is like

does file /usr/local/lsws//admin/tmp/sess_5eb82f48d749e76982605bd32e6a8383 exits?
The issue has been solved by applying the correct ownership you listed above. Some of the directories were having "lsadm" ownership in place of "nobody". Correcting those ownership has resolved the issue.
Session file was already present.

Thank you so much !
 

jamsheer

Active Member
#9
Which directory has ownership problem? Is it from our update script? or was changed manually?
"htpasswds" and "tmp" was having ownership problems. It was from the update scrips> now when I changed it manually from the example you listed above, all works fine.
 
Top