Skip to main content


!Friendica Admins I've switched to PHP 8.2 for the cronjob after updating my instance to 2023.04-1. Since then I receive e-mails from cron with the content "Terminated".

The cron entry looks like this:

*/5 * * * * cd /path-to-installation/htdocs/ && /usr/bin/php8.2 --define apc.enable_cli=1 -f bin/worker.php


Any idea what might be wrong? Or is it normal to receive "Terminated" with PHP 8.2? I'm happy for any resource pointing me to more info as well.

reshared this

We do terminate PHP processes from time to time. So this could be the origin. Please have got a look at your logfiles to see if everything is fine.

Friendica Admins reshared this.

The current situation results in cronjob spamming me with emails cause of the output. How do you handle that? Redirect output to /dev/null?

Friendica Admins reshared this.

@Daniel Siepmann I'd probably do that. Or maybe there is a way to just start it and then abandon it?
Did you consider using the daemon instead, you could try it by manually starting it (disable the cron job first) and see how that works.

You need something like this in the config:
'pidfile' => '/tmp/friendica_daemon.pid',

@Michael Vogel

Friendica Admins reshared this.

@Daniel Siepmann I also have this in the config:
// daemon interval
'cron_interval' => '1',

Friendica Admins reshared this.

@Michael Vogel I could solve the issue by adjusting the php_path option, as suggested in another answer here.
Thanks for your suggestion.

Friendica Admins reshared this.

@Daniel Siepmann also check the timeout setting for cli is long and maybe also check that in the Friendica config you also use the same path for php as in the cron job.
'php_path' => '/usr/bin/php8.2',

I think it does not matter to have no such parameter, but in case you use php_path it should probably be the same value for this as the php 8.2 path.

Friendica Admins reshared this.

@utzer [Friendica] thanks, I indeed still hat php8.1 within the configuration. I've now adjusted the configuration.

Friendica Admins reshared this.

@Daniel Siepmann also not sure if that was the reason, probably not, but I remembered that I forgot that once.

Friendica Admins reshared this.

@utzer [Friendica] I didn't receive any email anymore since adjusting the configuration. So it seems like that missconfiguration caused the trouble. Thank you.

Friendica Admins reshared this.

@Daniel Siepmann In the past, at least on my server, #APC has caused some instability issues, so can you please try to temporary remove the --define apc.enable_cli=1 part from it?

Friendica Admins reshared this.

@Roland Häder I could solve the issue by adjusting the php_path option, as suggested in another answer here.
Thanks for your suggestion.

Friendica Admins reshared this.