我实际上没有这样的问题/错误,我开发了一个触发PHP脚本的小应用程序,使用cpanel xmlapi它创建了一个插件域,代码非常基本:
<?php
if (isset($_GET['a']))
{
// include the xml class
include('xmlapi.php');
// try...
try {
// credentials username,password,host(ip)
$cpanelU = $_GET['cpu'];
$cpanelP = $_GET['cpp'];
$cpanelH = $_GET['cph'];
$cpanelD = $_GET['cpd'];
// execute the addondomain query
$xmlapi = new xmlapi($cpanelH);
$xmlapi->password_auth($cpanelU,$cpanelP);
$xmlapi->set_debug(1);
$xmlapi->set_port(2083);
$domainRegistration = $xmlapi->api2_query($cpanelU, "AddonDomain", "addaddondomain", array(newdomain=>$cpanelD, dir=>"public_html/".$cpanelD, subdomain=>$cpanelD, pass=>$cpanelP));
print_r($domainRegistration);
echo $domainRegistration;
} catch (Exception $e) {
echo $e;
}
//var_dump($_GET);
} else {
header("Location: http://www.site.info/");
}
exit();
?>
一旦脚本激活它就完美地创建了一个插件域,问题是脚本一直在运行并导致超时问题,即使作业正在完成它也没有停止,我不确定最好的方法去解决这个问题,任何帮助将不胜感激!