Page tree
Skip to end of metadata
Go to start of metadata

Overvierw

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.

The /scripts/wwwacct script

To use the /scripts/wwwacct script, run the following command as the root user:

/usr/local/cpanel/scripts/wwwacct <argument>

Arguments and inputs

You can use the following arguments with the /scripts/wwwacct script:

ArgumentTypeDescriptionPossible valuesExample
domainstringThe account's main domain name.A valid domain name.example.com
userstringThe account's username.A valid username.user
passstringThe account's password.A secure password.12345luggage
quotaintegerThe account's disk space quota.
  • An integer value between one and 999999 that represents a disk space quota in Megabytes (MB).
  • 0 — The account possesses unlimited disk space.
0
cpmodstringThe account's cPanel theme.
  • paper_lantern
  • Another valid theme on the server.
paper_lantern
ipstring

Whether the account has a dedicated IP address.

This parameter defaults to n.

  • y — The account possesses a dedicated IP address.
  • n — The account does not possess a dedicated IP address.
n
cgistringWhether the account has CGI access.
  • y — CGI access.
  • nNo CGI access.
y
frontpagestringWhether Microsoft® FrontPage® Extensions exist on the account.
  • y — Installed.
  • nNot installed.

    Note:

    In cPanel & WHM version 11.46 and later, this value is always n.

n
maxftpstringThe account's maximum number of FTP accounts.
  • A positive integer between one and 999,999.
  • 0, unlimited, or null — Unlimited.
0
maxsqlstringThe account's maximum number of SQL databases
  • A positive integer between one and 999,999.
  • 0, unlimited, or null — Unlimited.
0
maxpopstringThe account's maximum number of email addresses.
  • A positive integer between one and 999,999.
  • 0, unlimited, or null — Unlimited.
0
maxlststringThe account's maximum number of Mailman mailing lists.
  • A positive integer between one and 999,999.
  • 0, unlimited, or null — Unlimited.
0
maxsubstringThe account's maximum number of subdomains.
  • A positive integer between one and 999,999.
  • 0, unlimited, or null — Unlimited.
0
bwlimitstringThe account's bandwidth quota.
  • A positive integer between one and 999,999.
  • 0, unlimited, or null — Unlimited.
0
hasshellstringWhether the account has shell access.
  • y — Shell access.
  • n — No shell access.
y
ownerstringThe WHM account that owns this account.
  • A valid reseller's username.
  • root
root
planstringThe account's hosting plan (package).A valid package name.reseller_gold
maxparkstring

The account's maximum number of parked domains (aliases).

This parameter defaults to unlimited.

  • A positive integer between one and 999,999.
  • 0, unlimited, or null — The account possesses unlimited parked domains.
unlimited
maxaddonstring

The account's maximum number of addon domains.

This parameter defaults to unlimited.

  • A positive integer between one and 999,999.
  • 0, unlimited, or null — The account possesses unlimited addon domains.
unlimited
featureliststring

The account's feature list.

If you do not use this parameter, the function assigns the default feature list to the account.

A valid feature list name on the server.feature_list
contactemailstringThe account's contact email address.A valid email address.user@example.com
use_registered_nameserversBooleanWhether to use the domain's registered nameservers instead of the server's nameservers.
  • y — Use the domain's nameservers.
  • n — Use the server's nameservers.
0
languagestringThe account's locale.A valid locale name.en

Example

The following example creates the example.com cPanel account:

/usr/local/cpanel/scripts/wwwacct example.com user 12345luggage 0 paper_lantern n n n 0 0 0 0 0 0 y root reseller unlimited unlimited feature_list user@example.com y en

Additional documentation

There is no content with the specified labels

There is no content with the specified labels

There is no content with the specified labels