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
  • 6 Votes
    36 Posts
    15k Views
    phenomlab
    @justoverclock said in Digitalocean step by step guide to nginx configuration: i’m learning And that’s the whole point of this site If you don’t learn anything, you gain nothing.
  • auto create flarum new discussions in wordpress

    Configure flarum wordpress
    2
    1 Votes
    2 Posts
    1k Views
    phenomlab
    @Hari I think you’re referring to this https://sudonix.com/topic/170/creating-posts-from-rss-feeds-in-flarum However, this code was never designed to work with WordPress, but you could leverage the WP-CLI to do something similar without too much effort.
  • Configure SMTP for Nodebb

    Solved Configure
    14
    5 Votes
    14 Posts
    5k Views
    phenomlab
    @marusaky based on the work completed thus far (in relation to PM exchanges), I’m going to mark this completed. Sending email from the server itself works fine without issue, and DNS appears to be clean (valid SPF, DMARC, and DKIM records). It appears that only Gmail marks incoming messages from your domain as spam - perhaps because of the domain age, which there is nothing we can do to prevent this. Mail delivery to all other domains appears to work fine in al of my tests.
  • installing flarum with plesk

    Solved Configure flarum
    78
    26 Votes
    78 Posts
    39k Views
    Hari
    @phenomlab thanks a lot, have a nice day
  • how to change flarum configuration from apache to nginx?

    Solved Configure flarum
    3
    0 Votes
    3 Posts
    1k Views
    phenomlab
    See https://sudonix.com/topic/226/issues-getting-flarum-to-work-on-new-host/28?_=1645013723672
  • Issues getting Flarum to work on new host

    Solved Configure virtualmin
    65
    14 Votes
    65 Posts
    30k Views
    phenomlab
    @crazycells huh. Thanks. Will need to check that as well.
  • moving flarum from sub directory to subdomain

    Solved Configure flarum
    15
    2 Votes
    15 Posts
    4k Views
    Hari
    @phenomlab yes, created different app and moved files and DB now everything is working thanks
  • is my DMARC configured correctly?

    Solved Configure
    3
    2
    3 Votes
    3 Posts
    2k Views
    Hari
    @phenomlab said in is my DMARC configured correctly?: you’ll get one from every domain that receives email from yours. Today I have received another mail from outlook DMARC, i was referring to your reply again and found it very helpful/informative. thanks again. I wish sudonix 100 more great years ahead!