F
F
fcsd2020-11-20 20:28:50
PHP
fcsd, 2020-11-20 20:28:50

Running PHP scripts run via CRON for at least 5 minutes?

Hello, I have a VPS CentOS 7 ISPmanager, the CRON task only runs for 47 seconds, how can I configure the execution of PHP scripts launched via CRON for at least 5 minutes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Sherman, 2020-11-26
@freehostua

How is a php script actually executed? after all, it can be launched as a cli using the php interpreter or, say, in an http context using curl or wget.
If as cli then add cron | mail -s "report" [email protected] and you will receive a script output with errors by mail.
If executed in an http context, then check the apache error log for the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question