How do I setup an extra domain on a cPanel server with its own jailed FTP account, and do this in such a way that it doesn’t interfere with my main cPanel domain name and account?
This can only be done if your hosting provider has setup your account to have privileges to host multiple domain names in a single account. If your hosting account does have this capability, you need to use the “Addon Domains” feature in cPanel to configure your additional domain names and FTP accounts.
1. I log in to cPanel with the username: newpress.
2. I access the “Domains” section of the cPanel administrative page and click “Addon Domains”.
3. I enter the following credentials for my new Addon Domain:
New Domain Name: newdomain.com
Subdomain/FTP Username: newdomain
Document Root: public_html/newdomain.com
Password: 6!pA$-wPIxRG
Password (Again): 6!pA$-wPIxRG
Strength (why?): Very Strong 100/100
4. Using the data entered above produces the following results:
FTP Username: newdomain@newdomain.com
FTP Password: 6!pA$-wPIxRG
Full path: /home/newpress/public_html/newdomain.com
The new FTP account is setup jailed so the user “newdomain@newdomain.com” can only access files at newdomain.com. The directory newdomain.com appears as the “/” docroot in any FTP client software.
cPanel automatically configures Apache to serve requests to both http://newdomain.com and http://www.newdomain.com. For SEO reasons, a 301 redirect from newdomain.com to http://www.newdomain.com would be preferable to avoid duplicate content penalties.