Skip to content

help me configuring cron job for fof/sitemap - flarum

Solved Configure
36 3 13.2k 1
  • @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

  • @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

    wrote on last edited by
    #21

    @phenomlab like this?

    3e4c747d-0c68-46b4-9d7a-f910be002ffc-image.png

  • @phenomlab like this?

    3e4c747d-0c68-46b4-9d7a-f910be002ffc-image.png

    wrote on last edited by
    #22

    @Hari no. Select all for everything assist from minutes, then in the minutes section, hold the Ctrl key and use the mouse to select every even number, so 00, 02, 04, 06 etc up to 58

  • @Hari no. Select all for everything assist from minutes, then in the minutes section, hold the Ctrl key and use the mouse to select every even number, so 00, 02, 04, 06 etc up to 58

    wrote on last edited by
    #23
  • wrote on last edited by
    #24
    This post is deleted!
  • wrote on last edited by Hari
    #25

    when i set this cron job it is not running once a day, any suggestions?

    @daily cd /home/master/applications/blabla/public_html/ && /usr/bin/php flarum fof:sitemap:build
    

    https://sudonix.com/assets/uploads/files/1645111363100-0ac7c914-5536-4aac-9fd5-374a277fe08b-image-resized.png


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.
  • iFramely self host help

    Solved Configure iframely hosting
    10
    9 Votes
    10 Posts
    4k Views
    phenomlab
    @DownPW https://sudonix.com/topic/331/how-to-install-a-self-hosted-instance-of-iframely-for-use-with-nodebb
  • 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
  • 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!