Charity I'm on shared hosting and using cron. I ran the command cd /path-to-your-project && php flarum schedule:run, but the forum backend says the scheduler isn't running. I don't know why.
Tutrix Charity cd /path-to-your-project && php flarum schedule:run >> /dev/null 2>&1 Replace “path-to-your-project” with the correct path
IanM Charity in the first instance, please refer to the documentation for this: https://docs.flarum.org/scheduler
huoxin Charity It should the path where your flarum is installed e.g. if your flarum is at /var/www/my-site/flarum, the path would be /var/www/my-site
Charity huoxin I'm using a shared hosting, and I set it up like this: cd /public_html && php flarum schedule:run >> /dev/null 2>&1
Charity Charity I tried two methods, but neither worked. cd /usr/bin/php /home/username/public_html && php flarum schedule:run >> /dev/null 2>&1 cd /home/username/public_html && php flarum schedule:run >> /dev/null 2>&1
Tutrix Charity try cd /my-site.com/httpdocs && php flarum schedule:run >> /dev/null 2>&1 Replace “my-site.com” with your domain
Tutrix Charity Have you tested the path that appears at the end of the system info? Tools > System Info
devnull @Charity Does your host offer any sort of control panel such as cPanel, Plesk or something else? Do you have SSH access to the server? There might be a couple of basic linux commands you can use to figure out the correct path, test the cron script works and get it set up.