Files and document root
The document root determines which files are served for a subdomain. Its default path can differ between older and newer DirectAdmin versions.
The path displayed for the subdomain in DirectAdmin is authoritative. Do not automatically assume it is public_html/subdomain-name.
Find the correct path
- Open Subdomain Management.
- Check the Document Root column or edit action for the subdomain.
- Newer DirectAdmin versions can select it during creation or edit it with the pencil icon.
- An older version may use a default subdirectory without a separate selector.
Upload the site
Open that exact directory in File Manager or over FTPS and upload the site. The entry file is usually index.php or index.html. On Euroserver systems, private_html is a symbolic link to public_html; do not maintain a second site copy.
Restricted FTP account
For access limited to the subdomain, create an additional FTP account and point it at the exact document root. Connect with FTPS to ftp.example.com. SSH, SCP and SFTP are available only to the main account when SSH is enabled.
Change the document root
After changing it, move the files and test the application. Frameworks may need a path ending in public. The old directory may not be cleaned automatically.