Description:
Adds a new web domain.
Input Variables:
$session_id, $client_id, $params
Parameters (in $params):
server_id (int(11))
ip_address (varchar(39))
domain (varchar(255))
type (varchar(32))
parent_domain_id (int(11))
vhost_type (varchar(32))
document_root (varchar(255))
system_user (varchar(255))
system_group (varchar(255))
hd_quota (bigint(20))
traffic_quota (bigint(20))
cgi (enum('n','y'))
ssi (enum('n','y'))
suexec (enum('n','y'))
errordocs (tinyint(1))
is_subdomainwww (tinyint(1))
subdomain (enum('none','www','*'))
php (enum('n','y'))
ruby (enum('n','y'))
redirect_type (varchar(255))
redirect_path (varchar(255))
ssl (enum('n','y'))
ssl_state (varchar(255))
ssl_locality (varchar(255))
ssl_organisation (varchar(255))
ssl_organisation_unit (varchar(255))
ssl_country (varchar(255))
ssl_domain (varchar(255))
ssl_key (mediumtext)
ssl_request (mediumtext)
ssl_cert (mediumtext)
ssl_bundle (mediumtext)
ssl_action (varchar(16))
stats_password (varchar(255))
stats_type (varchar(255))
allow_override (varchar(255))
apache_directives (mediumtext)
php_open_basedir (mediumtext)
custom_php_ini (mediumtext)
backup_interval (varchar(255))
backup_copies (int(11))
active (enum('n','y'))
traffic_quota_lock (enum('n','y'))
Output:
Returns the ID of the newly added web domain.