Home » Kerio User Forums » Kerio Control » kerio api script error (500 - Internal server error on remote server https://server_address:4081/admin/api/jsonrpc/)

Messages: 2
Karma: 0
Send a private message to this user
this is my code
ini_set('display_errors', 'on');

require_once(dirname(__FILE__) . '/../../src/KerioControlApi.php');
require_once(dirname(__FILE__) . '/../class/HtmlHelper.php');
require_once(dirname(__FILE__) . '/../config.php');

$api = new KerioControlApi($name, $vendor, $version);

$html = new HtmlHelper();

/* Main application */
try {
	/* Login */
	$session = $api->login($hostname, $username, $password);
	/* Get data */
	$params = array('countLines' => '334','fromLine' => '-1', 'logName' => 'web');
	$result = $api->sendRequest('Logs.get', $params);

catch (KerioApiException $error) {

	/* Catch possible errors */

/* Logout */
if (isset($session)) {

after run code i get this error :
500 - Internal server error
on remote server server_address:4081/admin/api/jsonrpc/

[Updated on: Tue, 04 March 2014 11:15]

Previous Topic: Pages sometime cannot be opened.
Next Topic: Kerio en Linux
Goto Forum:

Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Fri Oct 19 12:56:37 CEST 2018

Total time taken to generate the page: 0.68963 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.