知識庫
The wwwacct Script 列印本文
Overview:
This script creates a cPanel account. This script also sets up the new account’s domain information.
Note:
You can also create a account with the WHM API 1
createacct
function.Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/wwwacct domain user pass [options]
Options
Use the following options with this script:
Options | Type | Description | Possible values | Example |
---|---|---|---|---|
domain |
string | Required - The account’s main domain name. | ItemFour | example.com |
user |
string | Required - The account’s username. | ItemFour | user |
pass |
string | Required - The account’s password. | ItemFour | 12345luggage |
quota |
integer | The account’s disk space quota. This parameter defaults to 0 . (unlimited) |
ItemFour | 0 |
cpmod |
string | The account’s cPanel theme. This parameter defaults to the default package’s Theme setting. | ItemFour | paper_lantern |
ip |
string | Whether the account possesses a dedicated IP address. This parameter defaults to n . |
ItemFour | n |
cgi |
string | Whether the account has CGI access. This parameter defaults to the default package’s CGI Access setting. | ItemFour | y |
frontpage |
string | Whether Microsoft® FrontPage® Extensions exist on the account. | ItemFour | n |
maxftp |
string | The account’s maximum number of FTP accounts. This parameter defaults to unlimited . |
ItemFour | 0 |
maxsql |
string | The account’s maximum number of SQL databases. This parameter defaults to unlimited . |
ItemFour | 0 |
maxpop |
string | The account’s maximum number of email addresses. This parameter defaults to unlimited . |
ItemFour | 0 |
maxlst |
string | The account’s maximum number of Mailman mailing lists. This parameter defaults to unlimited . |
ItemFour | 0 |
maxsub |
string | The account’s maximum number of subdomains. This parameter defaults to unlimited . |
ItemFour | 0 |
bwlimit |
string | The account’s bandwidth quota. This parameter defaults to unlimited . |
ItemFour | 0 |
hasshell |
string | Whether the account has shell access. This parameter defaults to the default package’s Shell Access value | ItemFour | y |
owner |
string | The WHM account that owns this account. This parameter defaults to the user who runs the script. | ItemFour | root |
plan |
string | The account’s hosting plan (package). This parameter defaults to unlimited . |
ItemFour | default |
maxpark |
string | The account’s maximum number of parked domains (aliases). This parameter defaults to the selected package’s Maximum Parked Domains value. | ItemFour | unlimited |
maxaddon |
string | The account’s maximum number of addon domains. This parameter defaults to the selected package’s Maximum Addon Domains value. | ItemFour | unlimited |
featurelist |
string | The account’s feature list. This parameter defaults to the selected package’s Feature List value. | A valid feature list name on the server. | default |
contactemail |
string | The account’s contact email address. This parameter defaults to a null value. |
A valid email address. | [email protected] |
use_registered_nameservers |
string | Whether to use the domain’s registered nameservers instead of the server’s nameservers. This parameter defaults to n . |
|
n |
language |
string | The account’s locale. This parameter defaults to the selected package’s Locale value. | A valid locale name. | en |
spamassassin |
string | Whether Apache SpamAssassin™ is enabled on the account.
Note:
We added this parameter in cPanel & WHM version 70.
y |
|
y |
spambox |
string | Whether to enable Spam Box on the account.
Note:
y (enabled). |
|
y |
max_emailacct_quota |
string | The maximum quota for each email address in MB.
Note:
We added this parameter in cPanel & WHM version 70.
|
|
unlimited |
這篇文章有幫助嗎?
相關文章
WHM Scripts
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
The dbmaptool Script
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
The servers_queue Script
Overview: This script allows you to manage the task queue system. The task queue system allows...
Overview: This script allows you to manage the task queue system. The task queue system allows...
The auto-adjust-mysql-limits Script
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
The autossl_check Script
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...