OpenLitespeed errors | cannot create /usr/local/lsws/bin/../logs/lsrestart.log

Hi

I run this command to cheek what is the issue of the openlitespeed

sudo systemctl status lsws

it shows me this:

● lshttpd.service - OpenLiteSpeed HTTP Server
     Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-02-20 15:15:51 +0330; 46min ago
    Process: 14304 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
   Main PID: 14419 (litespeed)
     CGroup: /system.slice/lshttpd.service
             ├─14419 openlitespeed (lshttpd - main)
             ├─14424 openlitespeed (lscgid)
             ├─14425 openlitespeed (lshttpd - #01)
             ├─14426 openlitespeed (lshttpd - #02)
             ├─14427 openlitespeed (lshttpd - #03)
             ├─14428 openlitespeed (lshttpd - #04)
             ├─14429 openlitespeed (lshttpd - #05)
             ├─14430 openlitespeed (lshttpd - #06)
             ├─14431 openlitespeed (lshttpd - #07)
             ├─14433 openlitespeed (lshttpd - #08)
             ├─14437 lsphp
             ├─14615 lsphp
             ├─14616 lsphp
             ├─14623 lsphp
             ├─14632 lsphp
             ├─14809 lsphp
             ├─15916 lsphp
             ├─15925 lsphp
             ├─15958 lsphp
             ├─15966 lsphp
             ├─17030 lsphp
             ├─18387 lsphp
             ├─18388 lsphp
             ├─19223 lsphp
             ├─19224 lsphp
             ├─19231 lsphp
             ├─19502 lsphp
             ├─19564 lsphp
             ├─20171 lsphp
             ├─20172 lsphp
             ├─20173 lsphp
             ├─20434 lsphp
             ├─20442 lsphp
             └─20443 lsphp

Feb 20 15:15:34 secondserverhpe systemd[1]: Starting OpenLiteSpeed HTTP Server...
Feb 20 15:15:34 secondserverhpe lswsctrl[14304]: /usr/local/lsws/bin/lswsctrl: 259: cannot create /usr/local/lsws/bin/../logs/lsrestart.log: Directory nonexistent
Feb 20 15:15:34 secondserverhpe lswsctrl[14304]: /usr/local/lsws/bin/lswsctrl: 260: cannot create /usr/local/lsws/bin/../logs/lsrestart.log: Directory nonexistent
Feb 20 15:15:34 secondserverhpe lswsctrl[14327]: 2023-02-20 15:15:34.487571 [ERROR] [config:server:basics:errorLog] log file is not writable - /usr/local/lsws/logs/error.log
Feb 20 15:15:34 secondserverhpe lswsctrl[14327]: 2023-02-20 15:15:34.487649 [ERROR] [config:server:basics:errorLog] failed to set up error log!
Feb 20 15:15:34 secondserverhpe lswsctrl[14304]: [ERROR] Failed to start litespeed!
Feb 20 15:15:51 secondserverhpe lswsctrl[14304]: [OK] litespeed: pid=14419.
Feb 20 15:15:51 secondserverhpe systemd[1]: Started OpenLiteSpeed HTTP Server.

I want to know how to fix the errors

now the openlitspeed work fine , but the error still there and I tink in future it will be make me in trouble

Hello @av_admin Happy you are here

Seems you have php sessions see this High CPU Usage, 4CPU 8GB RAM - #19 by josephgodwinke