KNOWNHOST WIKI

User Tools

Site Tools


cms:wordpress:cron-convert

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cms:wordpress:cron-convert [2018/02/09 16:59]
mscherf created (#186)
cms:wordpress:cron-convert [2019/10/10 18:31] (current)
Karson N.
Line 22: Line 22:
 Go to cPanel and click on "File Manager"​. Find the file ''​%%wp-config.php%%''​ which also resides in the site's root directory, and click on "​Edit"​ in the top menu: Go to cPanel and click on "File Manager"​. Find the file ''​%%wp-config.php%%''​ which also resides in the site's root directory, and click on "​Edit"​ in the top menu:
  
-{{:​cms:​wordpress:​wp_cron_wpsettings_open.jpg?​direct&600|}}+{{:​cms:​wordpress:​wp_cron_wpsettings_open.jpg?​nolink&600|}}
  
 Add the following line in the file: Add the following line in the file:
Line 28: Line 28:
 You may add this in any place between existing ''​%%define%%''​ directives, for example at the very top just after ''​%%<?​php%%''​ symbols: You may add this in any place between existing ''​%%define%%''​ directives, for example at the very top just after ''​%%<?​php%%''​ symbols:
  
-{{:​cms:​wordpress:​wp_cron_wpsettings_define.jpg?​direct|}}+{{:​cms:​wordpress:​wp_cron_wpsettings_define.jpg?​nolink|}}
  
 Click "Save Changes"​ and then "​Close"​. Click "Save Changes"​ and then "​Close"​.
Line 38: Line 38:
 Open cPanel and click on the **Cron Jobs** icon in the Advanced section: Open cPanel and click on the **Cron Jobs** icon in the Advanced section:
  
-{{:​cms:​wordpress:​cp_cron_open.jpg?​direct&600|}}+{{:​cms:​wordpress:​cp_cron_open.jpg?​nolink&600|}}
  
 You may choose a predefined running interval in the **Common Settings** section. For example, to run once per hour: You may choose a predefined running interval in the **Common Settings** section. For example, to run once per hour:
  
-{{:​cms:​wordpress:​cp_cron_hourly.jpg?​direct&600|}}+{{:​cms:​wordpress:​cp_cron_hourly.jpg?​nolink&600|}}
  
 Alternatively,​ you may combine predefined settings for each particular time/date section. For example, to run every 6 hours at 5 minutes after the hour: Alternatively,​ you may combine predefined settings for each particular time/date section. For example, to run every 6 hours at 5 minutes after the hour:
  
-{{:​cms:​wordpress:​cp_cron_6hours.jpg?​direct&600|}}+{{:​cms:​wordpress:​cp_cron_6hours.jpg?​nolink&600|}}
  
 And finally, you need to set up the command to run. Please note that you need to run the script with the specific PHP settings used by your site, e.g., the correct PHP version. That means that you need to invoke the ''​%%php%%''​ command from inside the root directory. For example, if the site's root directory is ''​%%/​home/​wp/​public_html%%'',​ the command would be: And finally, you need to set up the command to run. Please note that you need to run the script with the specific PHP settings used by your site, e.g., the correct PHP version. That means that you need to invoke the ''​%%php%%''​ command from inside the root directory. For example, if the site's root directory is ''​%%/​home/​wp/​public_html%%'',​ the command would be:
   cd /​home/​wp/​public_html;​ php -q wp-cron.php   cd /​home/​wp/​public_html;​ php -q wp-cron.php
  
-{{:​cms:​wordpress:​cp_cron_command.jpg?​direct&600|}}+{{:​cms:​wordpress:​cp_cron_command.jpg?​nolink&600|}}
  
 Click the "Add New Cron Job" button. You should see the added cron job below: Click the "Add New Cron Job" button. You should see the added cron job below:
  
-{{:​cms:​wordpress:​cp_cron_list.jpg?​direct&800|}}+{{:​cms:​wordpress:​cp_cron_list.jpg?​nolink&800|}}
  
 ===== Disabling wp-cron and Setting Up System Cron Job via SSH ===== ===== Disabling wp-cron and Setting Up System Cron Job via SSH =====
cms/wordpress/cron-convert.txt · Last modified: 2019/10/10 18:31 by Karson N.