Launch your first website
Set nameserver delegation under My Domains in WHMCS, not DirectAdmin. Use DirectAdmin for the hosted domain and records in its active DNS zone.
1. Domain and DNS
The domain must be registered and point to the hosting service. The simplest option is to configure the nameservers shown in WHMCS. When DNS is hosted elsewhere, set the web records to the service IP. See DNS Settings.
2. Upload the website
Files for the main domain belong in:
/home/USERNAME/domains/DOMAIN/public_html/Use File Manager, FTPS or the main SFTP/SCP account. On Euroserver servers, private_html links to public_html; do not maintain a second HTTPS copy.
The home page is commonly index.php or index.html. A default test index.html can take precedence; rename or back it up before removal.
3. Database and PHP
Create the database in DirectAdmin and use its exact database name, user, password and host. Select a PHP version compatible with the application. Older CloudLinux applies one version to the account; a newer server can select per domain or subdomain.
4. SSL and HTTPS
After DNS points correctly, the server automatically creates a wildcard SSL certificate. Do not create a separate www subdomain. Force HTTPS only after the domain and used subdomains have a valid certificate.
5. Test
- the domain with and without
www, - HTTP → HTTPS redirection,
- administration, forms and email sending,
- database access and CRON jobs,
- error logs and the mobile layout.