Difference between revisions of "DirectAdmin"
(→Adding a DirectAdmin Server) |
|||
Line 20: | Line 20: | ||
#You will then see a list of all your available packages. If you already have the package you are setting up in WHMCS setup in DirectAdmin then you can just copy the name from the list. If not, you will need to create it. Once the package is added, remember the package name shown in the Package column. | #You will then see a list of all your available packages. If you already have the package you are setting up in WHMCS setup in DirectAdmin then you can just copy the name from the list. If not, you will need to create it. Once the package is added, remember the package name shown in the Package column. | ||
#Once you have this name, then go back to your WHMCS Admin Area and on the Module Settings tab of the Product Setup enter this Package Name exactly as it appears on the list in DirectAdmin above. | #Once you have this name, then go back to your WHMCS Admin Area and on the Module Settings tab of the Product Setup enter this Package Name exactly as it appears on the list in DirectAdmin above. | ||
+ | |||
+ | ===API Token Permissions=== | ||
+ | |||
+ | With API Tokens for DirectAdmin, it is possible to restrict what actions an API Token can perform. For WHMCS to be able to perform all the operations it supports, the following permissions are required: | ||
+ | |||
+ | <table class="table table-striped"> | ||
+ | <tr> | ||
+ | <td>CMD_API_PACKAGES_RESELLER</td> | ||
+ | <td>CMD_API_PACKAGES_USER</td> | ||
+ | <td>CMD_API_ADDITIONAL_DOMAINS</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>CMD_API_SHOW_ALL_USERS</td> | ||
+ | <td>CMD_API_SHOW_USERS</td> | ||
+ | <td>CMD_API_SHOW_RESELLERS</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>CMD_API_DNS_CONTROL</td> | ||
+ | <td>CMD_API_DNS_MX</td> | ||
+ | <td>CMD_API_FTP</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>CMD_API_SHOW_USER_CONFIG</td> | ||
+ | <td>CMD_API_SYSTEM_INFO</td> | ||
+ | <td>CMD_API_SHOW_RESELLER_IPS</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>CMD_API_ACCOUNT_USER</td> | ||
+ | <td>CMD_SELECT_USERS</td> | ||
+ | <td>CMD_API_USER_PASSWD</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>CMD_API_MODIFY_RESELLER</td> | ||
+ | <td>CMD_API_MODIFY_USER</td> | ||
+ | <td>CMD_API_SHOW_USER_USAGE</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>CMD_API_RESELLER_STATS</td> | ||
+ | </tr> | ||
+ | </table> | ||
==Common Problems== | ==Common Problems== |
Revision as of 12:44, 8 December 2019
Contents
Supported Features
Create | Suspend | Unsuspend | Terminate |
---|---|---|---|
Yes | Yes | Yes | Yes |
Change Package | Change Password | Usage Updates | Client Area Link |
---|---|---|---|
Yes | Yes | Yes | Yes |
The following ports should be open for outbound connections from your WHMCS server: 2222
Adding a DirectAdmin Server
- Navigate to Setup > Servers > Add New Server.
- Select Directadmin from the 'Type' dropdown menu
- Fill in the fields on the rest of the page details. The username and password should be for a reseller user on your server to which your hosting packages belong.
- The default port will be displayed. If your server is configured to communicate on a different port, tick the Override with Custom Port checkbox and enter it into the Port field. For more information refer to Server Port Overrides.
Setting up your DirectAdmin Packages
For account creation to work successfully with DirectAdmin, you must have your packages setup in your DirectAdmin control panel. Here is how to setup hosting products in WHMCS to work with your DirectAdmin server.
- Setup the Hosting Package in WHMCS as normal (Setup > Products/Services > Add New Product/Service) entering a name, description, pricing and choosing the server type "Directadmin"
- Next, log into your Direct Admin Server. Once logged in, click Manage User Packages.
- You will then see a list of all your available packages. If you already have the package you are setting up in WHMCS setup in DirectAdmin then you can just copy the name from the list. If not, you will need to create it. Once the package is added, remember the package name shown in the Package column.
- Once you have this name, then go back to your WHMCS Admin Area and on the Module Settings tab of the Product Setup enter this Package Name exactly as it appears on the list in DirectAdmin above.
API Token Permissions
With API Tokens for DirectAdmin, it is possible to restrict what actions an API Token can perform. For WHMCS to be able to perform all the operations it supports, the following permissions are required:
CMD_API_PACKAGES_RESELLER | CMD_API_PACKAGES_USER | CMD_API_ADDITIONAL_DOMAINS |
CMD_API_SHOW_ALL_USERS | CMD_API_SHOW_USERS | CMD_API_SHOW_RESELLERS |
CMD_API_DNS_CONTROL | CMD_API_DNS_MX | CMD_API_FTP |
CMD_API_SHOW_USER_CONFIG | CMD_API_SYSTEM_INFO | CMD_API_SHOW_RESELLER_IPS |
CMD_API_ACCOUNT_USER | CMD_SELECT_USERS | CMD_API_USER_PASSWD |
CMD_API_MODIFY_RESELLER | CMD_API_MODIFY_USER | CMD_API_SHOW_USER_USAGE |
CMD_API_RESELLER_STATS |
Common Problems
WHMCS Host Server IP is Blacklisted
The server on which WHMCS is installed is being blocked by DirectAdmin's security measures. Usually this is caused by invalid login credentials inside WHMCS on the Setup > Products/Services > Servers > Edit page. Once the underlying cause has been resolved, remove the WHMCS server IP from /usr/local/directadmin/data/admin/ip_blacklist
56 - Recv failure: Connection reset by peer
Indicates the DirectAdmin server is requiring an SSL connection. Ticking the secure checkbox on the server configuration page will resolve this error (Setup > Products/Services > Servers > Edit).
Server Modules
cPanel/WHM - DirectAdmin - Plesk - Helm 3 - Helm 4 - Ensim - InterWorx - WebsitePanel - Cloudmin
Lxadmin - Virtualmin Pro - XPanel - HyperVM - SolusVM - Cloudmin - WHMSonic - VPS.Net
CentovaCast - SCPanel - MediaCP - GameCP - TCAdmin - Reseller Central - Auto Release - Heart Internet
Registrar Modules
Enom - ResellerClub - Nominet - OpenSRS - ResellOne - OnlineNIC - PlanetDomain - Affordable Domains
TPP Wholesale - TPPInternet - Stargate - Namecheap - NetEarthOne - Bizcn - InternetBS - GMO Internet
12Register - Registercom - DotDNS - WebNIC - Dot.TK - HexoNet - Realtime Register - Registereu
RRPProxy - ResellerCamp - TransIP - Heart Internet - IPMirror - NetRegistry - OVH - VentraIP Wholesale
Email - 101Domain
Fraud Modules
MaxMind - VariLogiX FraudCall - Telesign
Gateway Modules
2CheckOut - AsiaPay - Auth.net Echeck - Authorize.net - Authorize.net CIM - Bank Transfer - BidPay
BluePay - BluePay Echeck - BluePay Remote - Boleto - CashU - CC Avenue - ChronoPay - Direct Debit
EMatters - E-Path - eProcessingNetwork - eWAY Tokens - F2B - Finansbank - GarantiBank - Gate2Shop
Inpay - InternetSecure - IP.Pay - Kuveytturk - Modulo Moip - Mail In Payment - Merchant Partners
Merchant Warrior - IDEALMollie - Moneris - Moneris Vault - Skrill 1-Tap - NaviGate - NETbilling
Netregistry Pay - NoChex - Offline Credit Card - Optimal Payments - PagSeguro - Payflow Pro - Pay Junction
Paymate AU and NZ - Payment Express - PayPal - PayPal Card Payments - PayPal Express Checkout
PayPal Payments - PayPal Payments Pro - PayPoint.net (SecPay) - Payson - Planet Authorize - ProtX VSP Form
PSIGate - Quantum Gateway - Quantum Vault - SagePay - SagePay Tokens v2 - SecurePay
SecurePay AU - Secure Trading - TrustCommerce - USA ePay - WorldPay - WorldPay Invisible