exists a file to config "LSAPI_MAX_PROCESS_TIME" for all server? where it is?

#1
hello,

I need run by weeks ("eternally")
Code:
/home/website.com/pubic_html/apps/socket.php
from browser ( yes, mi PC never is turned off )

but ever the process dead exactly 3 hours after (why 3h ?)


in this forums I find """LSAPI_MAX_PROCESS_TIME"""
but ever to put into .htacces file
is possible edit to all server ?


exists a file to edit and no open "panel control OLS" ???

thanks.




this is my box:

[root@pepsi ~]# php -v
PHP 8.0.30 (cli) (built: May 13 2025 19:33:03) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
[root@pepsi ~]#


[root@pepsi ~]# more /etc/redhat-release
AlmaLinux release 9.6 (Sage Margay)
[root@pepsi ~]#


[root@pepsi ~]# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.8.4 Open (BUILD built: Mon Sep 29 17:17:57 UTC 2025)
module versions:
lsquic 4.3.1
modgzip 1.1
cache 1.66
mod_security 1.4 (with libmodsecurity v3.0.14)
[root@pepsi ~]#


[root@pepsi ~]# echo -n 'CyberPanel versión ';head -1 /usr/local/CyberCP/version.txt
CyberPanel versión 2.4
[root@pepsi ~]#
 
#4
...
exists a file to edit and no open "panel control OLS" ???
...[root@pepsi ~]#
YES!,

the file is:

Code:
/usr/local/lsws/conf7httpd_config.conf
and you will need edit the block:

Code:
extprocessor lsphp {
  type                    lsapi
  address                 uds://tmp/lshttpd/lsphp.sock
  maxConns                10
  env                     PHP_LSAPI_CHILDREN=10
  env                     LSAPI_AVOID_FORK=200M
  ...
  ...
  ...

}
then you will can ADD this two lines:

Code:
### allow process running by 1 month:
LSAPI_MAX_PROCESS_TIME=2592000
and of course: not forget RESTART your LSWS
 
Top