Using the following:
I received the following error:
I have never actually gotten this cPanel class to work and have only had limited success with $xmlapi->api2_query. My only goal is to simply create an email account via PHP. If there is some higher level knowledge, permissions, etc that someone without a lot of experience using APIs should be made aware of please include those details.
PHP:
<?php
include('/__fake_path__/cpanel.php');
try
{
$cpanel = new CPANEL();
}
catch (Exception $e)
{
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
I read this post which did not make sense and tried the command on this page dotcult.com/what-the-hell-is-cpsrvd/ which had no effect.Caught exception: There was a problem fetching the env variablecontaining the path to the socket
I have never actually gotten this cPanel class to work and have only had limited success with $xmlapi->api2_query. My only goal is to simply create an email account via PHP. If there is some higher level knowledge, permissions, etc that someone without a lot of experience using APIs should be made aware of please include those details.
Last edited by a moderator: