Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field NameDescription
Package NameEnter the name of this Package, it will be visible wherever services are listed and on any order forms.  A separate name can be defined for each language in the system.
DescriptionEnter a Description for this Package. HTML is allowed, and descriptions appear on order forms.  A separate name can be defined for each language in the system.
Status"Active" is the default, "Inactive", and "Restricted" are also available.
Quantity AvailableIf this Package has a limited quantity available, enter the quantity, or leave it as "Unlimited".
Use renewal prices for package upgradesWhen enabled, upgrading to this package will use renewal prices if they are set. The same will apply to any configurable options that are altered in the upgrade. The regular price  price that will be used if in this setting is disabled.
Configurable OptionsSelect the Configurable Option Group you created previously, to make those options available for this package.
ModuleSelect "DirectAdmin" for the module.

...

The Module Options section consists of the following options, which are specific to PleskDirectAdmin:

Field NameDescription
Server GroupSelect "Any" if you wish to specify a specific server, or select the Server Group to provision from. Selecting a group means that accounts will be provisioned from the group. Selecting a group is recommended.
ServerIf "Any" is selected above, select the server this package will use to provision accounts.
Account TypeSelect the appropriate account type, i.e. "User" for standard hosting accounts.
DirectAdmin PackageSelect the DirectAdmin Package to use when configuring accounts. These values are pulled from "Plans" created in DirectAdmin and specify resources for the plan.
IP AddressSelect the IP Address you would like to create the accounts on.

Pricing

Image RemovedImage Added

Field NameDescription
TermEnter the term for the desired pricing option. For example, if you wish to create a 3 month pricing option, enter 3 here.
PeriodSelect the period for this pricing option. "Day", "Week", "Month", "Year", and "One time" are options. The client will be invoiced every "term period", for example every 3 months if 3 is entered for term, and Month is selected for period.
CurrencySelect the currency this pricing option is available for.
PriceEnter the price for this pricing option.
Renewal PriceIf enabled, the renewal price will be used for service renewals and possibly prorated service changes, depending on the setting above.
Setup FeeIf there is a setup fee, enter it here.
Cancellation FeeIf there is a fee to cancel early, enter it here.

...

Code Block
languagephp
$this->apiUrl = rtrim($url, "/") . ":2222";

Change maximum username length

By default Directadmin usernames must be between 4 and 8 characters in length. You can change this by editing /components/modules/direct_admin/direct_admin.php, and within the method "getServiceRules", look for and update the following code block, changing the "8" to the new desired length limit.

Code Block
languagephp
                'length' => [
                    'if_set' => true,
                    'rule' => ['betweenLength', 4, 8],
                    'message' => Language::_('DirectAdmin.!error.direct_admin_username.length', true)
                ]

Common Issues

  • "That IP does not exist in your list"
    • This can happen after changing the IP of your DA server. Resave each DA package to resolve.