Online Chat
 Call Us: 
1-877-744-1221
Browse Submit a Ticket
 
Advanced Search
Tools
Rss Categories

Using CRON via SSL

Author: Edward Hardin Reference Number: AA-00655 Views: 17072 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:

<?php
chdir(dirname(__FILE__)."/../");
define("BASEPATH", true);
include 'config.inc.php';
$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
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
?>



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