@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.
@Hari no, that setting means it will execute at one minute past each hour.
@phenomlab how to select 1min intervel?
@Hari you should select every single minute from 00 - 59
@phenomlab what does this setting mean? will it always runs?
@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
@Hari yes
@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
@phenomlab like this?
@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
@phenomlab Now i understood will do it tomorrow.
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
What command do you do for create the cron ?
Task present in /etc/cron.daily ?
Result of crontab -l ?
/etc/init.d/cron start|stop|restart
maybe :
@daily USERWHORUNCOMMAND cd /home/master/applications/blabla/public_html/ && /usr/bin/php flarum fof:sitemap:build
EDIT: Phenomlab is here
@Hari can you post the output of crontab -e
?
it’s taking me to a random new window. i have deleted the existing sitemap. currently, my server time is 18hr and i have set it to @daily
I will wait for a few hours and see if it creates a sitemap
it’s taking me to a random new window.
Can you elaborate on this ? Not sure I fully understand.
when i enter crontab -e
it is taking me to GNU some kind of editor.
anyway, i waited for 24hr now i can see @ daily
is working
Solved
very good
@Hari yes, correct, but that editor also has the configuration of the Cron task
@DownPW hi, i have recently migrated to Plesk could you help me set up cron job with the new command
old :
@daily cd /home/master/applications/jm/public_html/ && /usr/bin/php flarum fof:sitemap:build
the formula is
* * * * * /pathTOphp/php /pathTOflarum/flarum queue:work --stop-when-empty
my flarum path is
var/www/vhosts/domain.com/ask.domain.com
what would be the new cron job line?
@Hari said in help me configuring cron job for fof/sitemap - flarum:
cd /home/master/applications/jm/public_html/ && /usr/bin/php flarum fof:sitemap:build
this actually worked
/usr/bin/echo php flarum fof:sitemap:build
Solved