Hi,
I have big probem....
I have on server newest Alma Linux 8 and newest DirectAdmin, Litespeed 6.0.x
I need to have cron job script working more than 60 minutes.... it's not working like I need...script (PHP) in litespeed is ending after 60 minutes everytime.... I need to run it more than 60 minutes...
What I did and it's not working (with your tutorial in your website...):
Cron job command in DA:
Shell_exec in that above PHP script, I can confirm also max_execution_time is 0 in phpinfo() :
.htaccesses in root domain where are both script.php :
Anyone have any idea why it's ending after 60 minutes?....
I have big probem....
I have on server newest Alma Linux 8 and newest DirectAdmin, Litespeed 6.0.x
I need to have cron job script working more than 60 minutes.... it's not working like I need...script (PHP) in litespeed is ending after 60 minutes everytime.... I need to run it more than 60 minutes...
What I did and it's not working (with your tutorial in your website...):
Cron job command in DA:
Code:
/usr/bin/lynx -dump https://domain.com/crons/script.php > /dev/null 2>/dev/null &
PHP:
set_time_limit(0);
ini_set('max_execution_time', 0);
shell_exec(escapeshellcmd('/usr/bin/nohup /usr/bin/lynx -dump ' . $domain . '/crons/script.php > /dev/null 2>&1 &'));
echo date("H:i:s d.m.Y",time()).' - '.$domain.'- done<br>';
Code:
<IfModule Litespeed>
RewriteEngine On
RewriteRule ^crons/script.php?$ - [E=noabort:1, E=noconntimeout:1]
RewriteRule ^script.php?$ - [E=noabort:1, E=noconntimeout:1]
</IfModule>
Anyone have any idea why it's ending after 60 minutes?....