English | Español | Català

KNEWS PLUGIN FOR WORDPRESS:

FINALLY NEWSLETTERS ARE MULTILINGUAL, QUICK AND PROFESSIONAL

Configure Webserver CRON

CRON or CRONTAB is a system to run scheduled scripts in Linux and Unix servers, typically database backups, cleanings, etc.

Knews can work using this feature to assure correct scheduled submits without depends of web traffic.

Get Knews ProConfigure webserver’s CRON JOB is hard and confuse. We know. Knews Pro offers an one-click configure option.

If your website is in Windows webserver, please go to the end of the page.

The goal is invoke the file knews_cron.php every 10 minutes. In your admin’s panel Knews>Configuration can copy the full path of the file in your website.

AN EXTERNAL AND FREE CRON WEB SERVICE

There is a new web service that calls your knews_cron.php file without configure your webserver. We don’t know how reliable is this service, but can be a good way for the newbies users and the webservers than don’t bring Crontab service to his users. The service is: https://www.setcronjob.com/

THE OLD WAY

The old way, configure your webserver, is more complicated, but you are independent from third-party services. Firstly, you must have access to the webserver crontab. Some webservers have access through control panel, this is the easy way, here a two different hostings screenshots:

   

Some Webservers has a manual console without wizard, here an example:

And then you must add this line in the crontab:

*/10 * * * * wget –q –O /dev/null http://www.yoursite.com/wp-content/plugins/knews/direct/knews_cron.php

The major part of webservers can accept this format (*/10), and when we list again crontab  (crontab –l) you can see the line you entered de-multiplexed in our webserver, other servers lists */10 but works too:

If you can configure CRON trough control panel, you are ended the CRON configuration. Wait about 15 minutes and go to WordPress Knews configuration page, if all go right, Knews tell you the last CRON input time.

Otherwise, continue reading:

WINDOWS USERS

If you are a Windows user, and can’t configure CRON trough your hosting control panel, you will need putty, a free software, can download here: http://www.putty.org/

After install, run it. You must put your domain:

Then, click Open. If your webserver allow this it ask you user and password. Then put your control panel webserver login user and password.

MACINTOSH USERS

If you are a Macintosh user, you must use Terminal, comes by default in the Mac OSX.
Open Terminal.app

ssh -l username ip_address
or
ssh username@ip_address

You can use a hostname instead of an IP address as well.

ALL USERS

Now the process is similar for Windows and Mac users, we continue for all:

type: crontab -l

If there is a crontab created, you see this file listed, can contains some data inside or be empty. If there isn’t crontab, you must install PICO editor and create crontab, see the next screenshot:

You must learn how PICO editor works, here have a list of commands: http://www.cs.colostate.edu/helpdocs/pico.html

And then you must add this line in the crontab:

*/10 * * * * wget –q –O /dev/null http://www.yoursite.com/wp-content/plugins/knews/direct/knews_cron.php

Now wait about 15 minutes and go to WordPress Knews configuration page, if all go right, Knews tell you the last CRON input time.

WINDOWS WEBSERVERS

Windows hasn’t CRON, if your site is in a Windows webserver, you must get an alternative way to do the same: Scheduled Tasks.

The goal is always run the knews_cron.php every 10 minutes, like you do it if enter directly with the browser to the full URL (get it from Knews>config page). We need a wget function that emulates the browser request.

Here you can found a complete explanation: http://blog.simonholywell.com/post/374209271/linux-to-windows-server-migrating-and-securing-your-cron

VIDEO DEMO

Video demo

NEWSLETTER

Subscribe to our newsletter and we will keep you up-to-date with the improvements introduced in Knews:

Fatal error: Call to undefined function knews_plugin_form() in /home/knewsplugin/www/wp-content/themes/knews_site/sidebar.php on line 12