cmsoc
flarum
is the php cmd you want to run, so you could point to it directly however I think when it comes to the scheduler there is a limitation where it must be executed from the directory where flarum resides which may or may not be an issue for your host.
So you could try pointing it directly at flarum
, which is a php file itself
$ head flarum
#!/usr/bin/env php
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
Scheduled command: flarum schedule:run >> /dev/null 2>&1
But if that doesn't work, you could try the shell_exec method from your own php script.
https://www.php.net/manual/en/function.shell-exec.php
<?php
$output = shell_exec('cd /path/to/directory && flarum schedule:run >> /dev/null 2>&1');
?>