I've been unsuccessful in trying to connect to the API (via PHP) using the methods commonly found online.
e.g.
$client = new \PleskX\Api\Client($host);
$client->setCredentials($username, $password);
$customers = $client->customer()->getAll();
and
$client = new PleskApiClient($host);
$client->setCredentials($username, $password);
$request = <<<EOF
<packet>
<server>
<get_protos/>
</server>
</packet>
EOF;
$response = $client->request($request);
But both methods throw an exception: "Failed connect to [host]:8443; No route to host". Any ideas what could be causing that?
e.g.
$client = new \PleskX\Api\Client($host);
$client->setCredentials($username, $password);
$customers = $client->customer()->getAll();
and
$client = new PleskApiClient($host);
$client->setCredentials($username, $password);
$request = <<<EOF
<packet>
<server>
<get_protos/>
</server>
</packet>
EOF;
$response = $client->request($request);
But both methods throw an exception: "Failed connect to [host]:8443; No route to host". Any ideas what could be causing that?