tolgaaaltas Do I need to install any extensions beforehand?

I write the cron command written here to cron, but nothing changes from the admin panel. Should the text there change when I type the cron command?

  • * * * * cd /home/MY_username/public_html && /usr/local/bin/php flarum schedule:run >> /dev/null 2>&1
  • * * * * cd /home/MY_username/public_html && /usr/local/bin/ea-php80 flarum schedule:run
  • * * * * cd /home/MY_username/MY_domain && /usr/local/bin/php flarum schedule:run
  • * * * * cd /home/MY_username/public_html && /usr/local/bin/php flarum schedule:run >> /dev/null 2>&1

l use all ways but not change this word "Never work"

    Mirzaagha Do I need to install any extensions beforehand?

    Only certain extensions currently make use of the scheduler such as fof/sitemap so by default and I may be wrong the scheduler won’t run even if everything is setup right unless an extension makes use of it.

      ernestdefoe if configured the scheduler will always run, but will have nothing to do. It's not a bad thing, because it will be prepared when an extension is installed that relies on it.

      Mirzaagha can you try to execute any of these commands manually in your commandline to see if one of them works? Make sure to remove >> /dev/null 2>&1 to see output.

      Mirzaagha * * * * cd /home/MY_username/public_html && /usr/local/bin/php flarum schedule:run >> /dev/null 2>&1

      • * * * cd /home/MY_username/public_html && /usr/local/bin/ea-php80 flarum schedule:run
      • * * * cd /home/MY_username/MY_domain && /usr/local/bin/php flarum schedule:run
      • * * * cd /home/MY_username/public_html && /usr/local/bin/php flarum schedule:run >> /dev/null 2>&1

        Mirzaagha I meant run the command with the stars in front, so: cd /home/MY_username/public_html && /usr/local/bin/ea-php80 flarum schedule:run which should execute fine. Make sure to replace MY_username with your username or the whole path with the install path of flarum.

          luceos I received such a message. Is it working properly? delete the one at the end (> /dev/null)?

          Worked :

          • * * * * /usr/local/bin/php && cd /home/(username)/public_html/ flarum schedule:run > /dev/null

          Message : /bin/bash: line 0: cd: too many arguments

            Mirzaagha l wait more time and every minute send me mail this message but not working schedule my admin panel

            Mirzaagha /bin/bash: line 0: cd: too many arguments

            This is probably because you are trying to run the entire CRON configuration line as a bash command during testing. When testing, only run the bash command without the schedule part (* * * * is not part of the command, it's the interval definition for CRON)

              Mirzaagha it seems like you have switched the paths around and lost the cd command, take a look again at the suggested commands earlier in the discussion.

              It's cd /path/to/flarum/folder && /path/to/php flarum schedule:run > /dev/null

                ctml l try all variants in here but not working. Very bad situation

                • ctml replied to this.

                  Mirzaagha so there is no error at all, just not working? How are you determining it is not working? You need to describe the behaviour you are seeing.

                    Mirzaagha your command is wrong, clark showed you here clarkwinkelmann the command you need to use.

                    cd /home/codestac/public_html && /usr/local/bin/php flarum schedule:run > /dev/null

                    The path /home/codestac/public_html assumes your flarum file is located in there. Mine isn't setup quite the same way, so just make sure you are not exposing your config.php or any other sensitive configurations in public_html.