Hi,
I have big probem....
I have on server newest Alma Linux 8 and newest DA etc.
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:
Cron job command in DA:
Exec shell in that above PHP script:
.htaccess in that Path where is that script.php and script2.php:
Anyone have any idea why it's ending after 60 minutes?.... what I have to configure?
I have big probem....
I have on server newest Alma Linux 8 and newest DA etc.
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:
Cron job command in DA:
Code:
/usr/bin/lynx -dump https://domain.com/script.php > /dev/null 2>/dev/null &
Exec shell in that above PHP script:
PHP:
shell_exec(escapeshellcmd('/usr/bin/nohup /usr/bin/lynx -dump ' . $domain . '/script2.php > /dev/null 2>&1 &'));
Code:
<IfModule Litespeed>
RewriteEngine On
RewriteRule ^/dir/script.php?$ - [E=noabort:1, E=noconntimeout:1]
RewriteRule ^script.php?$ - [E=noabort:1, E=noconntimeout:1]
</IfModule>
Last edited: