gilogo13
24th July 2006, 23:36
I'm having a problem with ispconfig not accepting some of my parameters,
through the remoting plugin. the values for web_mysql_anzahl_dbs and web_dns_mx seem to be ignored when creating a new web. I have also tried creating a web and then updating the values wich gives me the error "Status field is not empty".
The code for creating a web:
$params = array ( 'sid'=> $session_id,
'module' => 'web',
'function' => 'web_add',
'params' => array ( 'kunde_id'=> $kunde_id,
'web_title' => $web_domain,
'web_host' => 'www',
'web_domain' => $web_domain,
'web_ip' => 'XXX.XXX.XXX.XXX',
'web_dns' => 1,
'web_dns_mx' => 1,
'web_speicher' => 250, // MB
'web_userlimit' => 5,
'web_domainlimit' => 2,
'web_shell' => 0,
'web_cgi' => 1,
'web_standard_cgi' => 1,
'web_php' => 1,
'web_php_safe_mode' => 0,
'web_ssi' => 0,
'web_ftp' => 1,
'web_frontpage' => 0,
'web_mysql' => 1,
'web_mysql_anzahl_dbs' => 5,
'web_ssl' => 0,
'web_anonftp' => 0,
'web_anonftplimit' => 0,
'web_wap' => 1,
'web_individual_error_pages' => 0
));
$web_id = $soapclient->call('service',$params);
if($err = $soapclient->getError()) die("Error: ".$err);
Any help would be appreciated.
Thank You.
Gilogo13
through the remoting plugin. the values for web_mysql_anzahl_dbs and web_dns_mx seem to be ignored when creating a new web. I have also tried creating a web and then updating the values wich gives me the error "Status field is not empty".
The code for creating a web:
$params = array ( 'sid'=> $session_id,
'module' => 'web',
'function' => 'web_add',
'params' => array ( 'kunde_id'=> $kunde_id,
'web_title' => $web_domain,
'web_host' => 'www',
'web_domain' => $web_domain,
'web_ip' => 'XXX.XXX.XXX.XXX',
'web_dns' => 1,
'web_dns_mx' => 1,
'web_speicher' => 250, // MB
'web_userlimit' => 5,
'web_domainlimit' => 2,
'web_shell' => 0,
'web_cgi' => 1,
'web_standard_cgi' => 1,
'web_php' => 1,
'web_php_safe_mode' => 0,
'web_ssi' => 0,
'web_ftp' => 1,
'web_frontpage' => 0,
'web_mysql' => 1,
'web_mysql_anzahl_dbs' => 5,
'web_ssl' => 0,
'web_anonftp' => 0,
'web_anonftplimit' => 0,
'web_wap' => 1,
'web_individual_error_pages' => 0
));
$web_id = $soapclient->call('service',$params);
if($err = $soapclient->getError()) die("Error: ".$err);
Any help would be appreciated.
Thank You.
Gilogo13