Online Chat
 Call Us: 
Browse Submit a Ticket
Advanced Search
Rss Categories

Using CRON via SSL

Author: Edward Hardin Reference Number: AA-00655 Views: 11962 Last Updated: 09/27/2012 01:06 PM 0 Rating/ Voters

KMP v6.0.2 and earlier

This article applies to KMP v6.0.2 and earlier versions. The lines mentioned below have been already added in v6.0.3 and subsequent versions.

If you knowledge base runs via https:// (i.e. with SSL) just add the following lines (highlighted in yellow) to the /admin/CRON/cron.php file:

define("BASEPATH", true);
include '';
$sysConfig = __getConfig();
$base_url = $sysConfig['base_url'] . $sysConfig['index_postfix'];
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $base_url . 'cron/start');

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

// grab URL and pass it to the browser
// close cURL resource, and free up system resources

Custom Fields
This article applies to the following versions of Knowledgebase Manager Pro:6.0, 6.0.1, 6.0.2, 6.0 and earlier