To modify a domain's information or Service Plan, use the EditVirtDomain
script. The script allows you to update domain information and service settings, and enable or disable Power Tools and other services for a domain. Refer to the examples for help on usage of the script.
/usr/local/bin/EditVirtDomain
[-p
<source plan>| -s
<source site>| -d
<source domain>|
-i
<source IP>|-t
<source path>]
[-c
<service>,
<option>=
<value>,[on|off],... ...]
[-f | --force]
[
<target site>| -I
<target IP>| -D
<target domain>]
where:
is the name of an existing Service Plan you want to use as the foundation or template to edit when editing the site. This option can be omitted, in which case the target site's current service options are used as the basis of the edit operation.Note: If the -t option is used, the path will be /home/virtual/
<sourcepath>/info/current.
My User
) or a list (for example, \[1, 2, 3\]
).enabled
option, which may be used to enable or disable the service by setting this option to 1 or 0, respectively. Alternatively, the strings on and off may be used as abbreviations for the strings: enabled=1 and disabled=0.For a list of service options you can change or add to a domain, as well as the options' values, see the Service Plan services and options table.
The following section lists some examples of this syntax.
In this example, the script changes the Service Plan of the domain example.com to Gold, disables the formmail-4.2b tool, and enables the phpnuke-6.9 tool and CGI service for the domain, not originally a part of the Gold Service Plan.
EditVirtDomain -p Gold -c cgi,on, -c scriptsmgr,on,formmail-4.2b=0,phpnuke-6.9=1 example.com
In this example, the script changes the Service Plan of the domain example.com to Basic, disables the Spam Filtering service, disables virus scanning for outgoing emails, and enables the aliases service for the domain.
EditVirtDomain -p Basic -c spam_filter,off \
-c mailscanner,on,scan_outgoing=0 \
-c aliases,on,aliases=\[domainname.org,domainname.net\] \
-c aspmgr,siteopti_add=1,siteopti_manage=1,emailmark_manage=0 \ example.com