Skip to content

help me configuring cron job for fof/sitemap - flarum

Solved Configure
36 3 13.2k 1
  • wrote on last edited by phenomlab
    #1

    i am setting a corn job for flarum fof sitemap

    the first corn job is for reference and it is working correctly ✔

    */1 * * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum queue:work --stop-when-empty
    

    new corn job suggestion needed for sitemap and i modified considering this reference at flarum’s sitemap page

    */1 * * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --stop-when-empty
    

    should i just need set as

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --stop-when-empty
    

    or

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache
    

    do I need to add the timer?

  • i am setting a corn job for flarum fof sitemap

    the first corn job is for reference and it is working correctly ✔

    */1 * * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum queue:work --stop-when-empty
    

    new corn job suggestion needed for sitemap and i modified considering this reference at flarum’s sitemap page

    */1 * * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --stop-when-empty
    

    should i just need set as

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --stop-when-empty
    

    or

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache
    

    do I need to add the timer?

    wrote on last edited by phenomlab
    #2

    @hari this one will work fine

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache
    
    

    You’ll need to run a schedule. Typically, once every few hours should be enough. It doesn’t need to run continuously

  • @hari this one will work fine

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache
    
    

    You’ll need to run a schedule. Typically, once every few hours should be enough. It doesn’t need to run continuously

    wrote on last edited by Hari
    #3

    @phenomlab said in help me configuring corn job for fof/sitemap - flarum:

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache

    so we need not to add something like

    *******24
    

    (stars) something like that? 24hr

    just the command which you have mentioned will be automatically called every 24hr? without the stars? (trying to understand corn jobs) 😊

  • @phenomlab said in help me configuring corn job for fof/sitemap - flarum:

    cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache

    so we need not to add something like

    *******24
    

    (stars) something like that? 24hr

    just the command which you have mentioned will be automatically called every 24hr? without the stars? (trying to understand corn jobs) 😊

    wrote on last edited by
    #4

    @hari not quite. Have a look at this

  • @hari not quite. Have a look at this

    wrote on last edited by
    #5

    @phenomlab that is really one easy and interesting website to understand corn jobs

    * 23 * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --write-xml-file
    

    just need final confirmation, so will this line make to run once for every 23 hour? (once per day?)

    when i enter 24hr it is not showing 24, so i have selected 23hr

    1281a71d-9e6e-4efd-b148-2d6deb651906-image.png

  • @phenomlab that is really one easy and interesting website to understand corn jobs

    * 23 * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --write-xml-file
    

    just need final confirmation, so will this line make to run once for every 23 hour? (once per day?)

    when i enter 24hr it is not showing 24, so i have selected 23hr

    1281a71d-9e6e-4efd-b148-2d6deb651906-image.png

    wrote on last edited by phenomlab
    #6

    @hari yep. Looks good. 24 would in fact be 00

  • @phenomlab that is really one easy and interesting website to understand corn jobs

    * 23 * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --write-xml-file
    

    just need final confirmation, so will this line make to run once for every 23 hour? (once per day?)

    when i enter 24hr it is not showing 24, so i have selected 23hr

    1281a71d-9e6e-4efd-b148-2d6deb651906-image.png

    wrote on last edited by
    #7

    @hari said in help me configuring corn job for fof/sitemap - flarum:

    that is really one easy and interesting website to understand corn jobs

    Yes, super easy, and a good reference guide I’ve used for years

  • phenomlab phenomlab unlocked this topic on
  • phenomlab phenomlab referenced this topic on
  • wrote on last edited by
    #8

    Old

    */2 * * * * cd /home/master/applications/jmzhcbrggs/public_html/ && /usr/bin/php flarum schedule:run >> /dev/null 2>&1
    */1 * * * * cd /home/master/applications/jmzhcbrggs/public_html/ && /usr/bin/php flarum queue:work --stop-when-empty
    

    new

    */2 * * * * cd /home/ask/public_html/ && /usr/bin/php flarum schedule:run >> /dev/null 2>&1
    */1 * * * * cd /home/ask/public_html/ && /usr/bin/php flarum queue:work --stop-when-empty
    

    are these correct for my Virtualmin environment?

  • Old

    */2 * * * * cd /home/master/applications/jmzhcbrggs/public_html/ && /usr/bin/php flarum schedule:run >> /dev/null 2>&1
    */1 * * * * cd /home/master/applications/jmzhcbrggs/public_html/ && /usr/bin/php flarum queue:work --stop-when-empty
    

    new

    */2 * * * * cd /home/ask/public_html/ && /usr/bin/php flarum schedule:run >> /dev/null 2>&1
    */1 * * * * cd /home/ask/public_html/ && /usr/bin/php flarum queue:work --stop-when-empty
    

    are these correct for my Virtualmin environment?

    wrote on last edited by
    #9

    @Hari Yep 🙂

  • wrote on last edited by
    #10

    @phenomlab am i entering correctly sorry for asking step to step 😢 i am not sure how many extensions i need to fix more for flarum

    18d6fcba-cd82-4dcc-9209-4e8b96b851f7-image.png

  • @phenomlab am i entering correctly sorry for asking step to step 😢 i am not sure how many extensions i need to fix more for flarum

    18d6fcba-cd82-4dcc-9209-4e8b96b851f7-image.png

    wrote on last edited by
    #11

    @Hari No, this isn’t correct. You need to enter it like the below (for example)

    20db80e6-b9e5-4116-86ed-4a1798da1625-image.png

    d658b40b-132f-4763-b4ba-fd6f4264cfaa-image.png

  • @Hari No, this isn’t correct. You need to enter it like the below (for example)

    20db80e6-b9e5-4116-86ed-4a1798da1625-image.png

    d658b40b-132f-4763-b4ba-fd6f4264cfaa-image.png

    wrote on last edited by Hari
    #12

    @phenomlab

    Failed to save cron job : The user 'schedule' is not allowed to access cron
    

    now opening flarum schedule instructions 😄

    do i need to install these via ssh? or we already have corn?

    got it i have to mention user name

    8650bb9d-bd07-46c4-a0bc-49e629963a9b-image.png

  • @phenomlab

    Failed to save cron job : The user 'schedule' is not allowed to access cron
    

    now opening flarum schedule instructions 😄

    do i need to install these via ssh? or we already have corn?

    got it i have to mention user name

    8650bb9d-bd07-46c4-a0bc-49e629963a9b-image.png

    wrote on last edited by
    #13

    @Hari Yes.

  • wrote on last edited by Hari
    #14

    @phenomlab does these settings mean run for every one min?

    when i am using like this its not running for every one minute

    429ab089-3803-46c4-bd12-b30b2b5f2ea6-image.png

    edit

    • Solved
  • @phenomlab does these settings mean run for every one min?

    when i am using like this its not running for every one minute

    429ab089-3803-46c4-bd12-b30b2b5f2ea6-image.png

    edit

    • Solved
    wrote on last edited by
    #15

    @Hari no, that setting means it will execute at one minute past each hour.

  • @Hari no, that setting means it will execute at one minute past each hour.

    wrote on last edited by
    #16

    @phenomlab how to select 1min intervel?

  • @phenomlab how to select 1min intervel?

    wrote on last edited by
    #17

    @Hari you should select every single minute from 00 - 59

  • @Hari you should select every single minute from 00 - 59

    wrote on last edited by Hari
    #18

    @phenomlab what does this setting mean? will it always runs?

    ac3f6d52-f623-4345-adfd-d1dbce7d0035-image.png

    @phenomlab said in help me configuring cron job for fof/sitemap - flarum:

    you should select every single minute from 00 - 59

    could you share one example setting for 2min

  • @phenomlab what does this setting mean? will it always runs?

    ac3f6d52-f623-4345-adfd-d1dbce7d0035-image.png

    @phenomlab said in help me configuring cron job for fof/sitemap - flarum:

    you should select every single minute from 00 - 59

    could you share one example setting for 2min

    wrote on last edited by
    #19

    @Hari yes

  • @phenomlab what does this setting mean? will it always runs?

    ac3f6d52-f623-4345-adfd-d1dbce7d0035-image.png

    @phenomlab said in help me configuring cron job for fof/sitemap - flarum:

    you should select every single minute from 00 - 59

    could you share one example setting for 2min

    wrote on last edited by
    #20

    @Hari said in help me configuring cron job for fof/sitemap - flarum:

    could you share one example setting for 2min

    If you want to select every two minutes, you need to select 00, 02, 04 etc until you reach 58


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics