WordPress – Cron job is not working

by | 11 Apr 2020 | PHP, Wordpress | 0 comments

  1. Add this code to wp-config.php
    define( 'DISABLE_WP_CRON', true );
  2. SSH into web server.
  3. Run bash command and an editor in nano will appear.
    export VISUAL=nano; crontab -e
  4. Add line to editor. Note: to replace “yourdomain” with the URL of your WordPress site.
    */1 * * * * curl -s -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)" https://yourdomain/wp-cron.php?doing_wp_cron > /dev/null 2>&1
  5. That’s it. This should run your WordPress cron jobs every 1 minute.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related Posts

APCCentOSFedoraLinuxOSPHPProgrammingServerTechnology
Install APC (Alternative PHP Cache) in CentOS 5/6/7 and Fedora 20/21

Install APC (Alternative PHP Cache) in CentOS 5/6/7 and Fedora 20/21

APC (Alternative PHP Cache) is a free and open source tool to cache PHP codes. 1. Install Dependency Packages for APC yum install php-pear php-devel httpd-devel pcre-devel gcc make -y 2. Install APC using PECL (PHP Extension Community Library) pecl install apc...