Applicable to:
- SolusVM 2
Question
How to allow usage of non-fqdn for SolusVM 2 VPS with SolusVM 2 WHMCS Module?
Answer
- Connect to WHMCS server via SSH
- Open the file {WHMCS_ROOT}/modules/servers/solusvm2vps/lib/SolusAPI/Requests/ServerCreateRequestBuilder.php in a text editor.
Replace {WHMCS_ROOT} with the actual path to WHMCS web root directory. -
find the following block in the file:
CONFIG_TEXT: if (!empty($this->domain)) {
$request['name'] = $this->domain;
$request['fqdns'] = [ $this->domain ];
} else if ($domainConfig->isEnabled()) {
$domain = $domainConfig->getDomainForName($name);
$request['name'] = $domain;
$request['fqdns'] = [ $domain ];And comment the lines that contain 'fqdns':
CONFIG_TEXT: if (!empty($this->domain)) {
$request['name'] = $this->domain;
## $request['fqdns'] = [ $this->domain ];
} else if ($domainConfig->isEnabled()) {
$domain = $domainConfig->getDomainForName($name);
$request['name'] = $domain;
##$request['fqdns'] = [ $domain ];
Comments
0 comments
Please sign in to leave a comment.