• Resolved david

    (@dskirk)


    My site is working very well, except the site Health page shows that Wordfence reports that the cron job is not running. Tech support for my webhost suggested I set my cpanel to run my own cron job. Command they gave me is /usr/bin/lynx –dump https://domain.com/script.php

    That doesn’t seem to be working. Do you have any advice on how I can get the cron job running? Thanks for your help.
    david

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks for reaching out. This is kind of out scope for our support but I thought I’d try to point you in the correct direction.

    I checked the URL and it doesn’t appear that /script.php is available. It returns a 404 error so any cron that calls that specific URL wouldn’t be able to run it.

    Was there any reason why support didn’t use this URL instead of creating a script to run it.
    https://davidsplace.org/wp-cron.php

    This is a guide from our friends at Kinsta that show how to setup a manual cron job.
    https://kinsta.com/knowledgebase/disable-wp-cron/ There are a few more steps to setting it up so you’d want to walk through them to make sure the changes to wp-config, etc are done too.

    You could use this command to set a cron up which is what I’ve seen most people use.
    wget -q -O - https://davidsplace.org/wp-cron.php?doing_wp_cron >/dev/null 2>&1
    That’s not to say that you can’t execute crons and scripts with the lynx browser, but when I looked there seemed to be a fair amount of people that had trouble with that. And if the script you are trying to call isn’t there, you’ll certainly have problems running it.
    Google Search

    Hope this helps.

    Tim

    • This reply was modified 3 years, 3 months ago by WFSupport.
    • This reply was modified 3 years, 3 months ago by WFSupport.
    Thread Starter david

    (@dskirk)

    A BIG thanks to you. Worked fine. I’ve been struggling with this for months and months. cron stuff is greek to me, and I am very appreciative. I posted here because it was affecting Wordfence and I felt you would have a good suggestion – which you did. Thanks again.
    david

    No problem ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cron Job not running’ is closed to new replies.