Steps to Create Subdomain FTP Account
- Log into CWP: Log into your CWP user panel (usually port 2083 or 2035).
- Navigate to FTP Accounts: Go to File Management in the left-hand menu and select FTP Accounts.
- Create New User: Click the Add User or Create FTP Account button.
- Configure Account Details:
Login: Enter the desired username (e.g., subuser). Note that the final username will typically be subuser@maindomain.com.
Password: Set a strong password.
Directory/Path: This is crucial for subdomains. Change the default path to the specific subdirectory for your subdomain. It usually looks like this: /home/username/public_html/subdomain_folder. - Save/Submit: Click Create or Save to create the account
Key Considerations
- Username Format: In CWP, virtual FTP users often take the format username@domain.com.
- Path Restriction: To ensure the user only has access to the subdomain, ensure the directory path points directly to that sub-folder (e.g., /public_html/subdomain_name).
- System Users vs. Virtual Users: The steps above create a "virtual" user (restricted to a folder). If you use your main CWP credentials, you will have access to the entire home directory.
- FTP Client Configuration: Use Port 21 for FTP connections.
In CPanel, click the "FTP Accounts" icon. Follow the directions to create a FTP account with the same name as the existing subdomain. Example: If your subdomain is "books.yourdomain.com," create an account with the username "books". Upload to it with CPanel File Manager or enter the new details into your outside FTP program.