Help - Search - Members - Calendar
Full Version: User/Domain Setup
The Planet Forums > Control Panels > cPanel/WHM
emkay
Can any of you old-hand cpanel users out there explain how cpanel sets up the relationship between domains and users?

If I create a site, domain.com, how can I create a space for a user? User can not have access to the main website info; he is only allowed to have access to his small portion of the site.

With Ensim I go to the site management, then add user, and now this user has their own webspace at www.domain.com/~user/ -- I'm looking for the cpanel equivalent.

Thanks,
mk
hokiethang
you can add a sub-domain and an ftp client, there is more work required in order to set it up in cpanel, but you can add a subdomain, ftp address and e-mail address for each sub account. the subdomain can then be accessed through http://sitename.com/subdomain if you would prefer your users to not have a subdomain.
emkay
Sorry if I'm being obtuse, but is this correct?

1) Create email account for user@domain.com
2) Create subdomain user.domain.com
3) Create ftp account user@domain.com

Now if the user goes to ftp.domain.com and enters user/userpword, will he be restricted to only the user directory?

Also, how do I get http://user.domain.com/ to display as http://www.domain.com/user/ ?

As a side issue, I get constant error messages when using cpanel. For example I've been playing around with adding subdomains and get this each time:

ndc: connect failed: connection refused The subdomain, test.domain.com has been added.

The subdomain is actually added so I don't know what the error message is.

Thanks,
mk
hokiethang
yes, as far as I have tested, the user who you set up the subdomain for, only has access to the one area. Try it out and see if that is the security level you want.

The sub-domain should automatically work for both http://user.domain.com and http://www.domain.com/user/

to fix the ndc error there is a script
/scripts/fixndc i think. I had t he same problem when i first started with cpanel.
nikos
I added a user to my domain (through subdomain) and also gave him ftp access.

BUT:

mydomain.com/~user works
mydomain.com/user works
user.mydomain.com doesn't...

Anyone knows why?
hokiethang
is there a subdomain entry in the DNS record? Also how long from creating it to testing it did you wait? Subdomains have to resolve just as domains do. If there isnt a subdomain entry in the DNS record for the domain the user was added to, you will need to add it, and contact cpanel about it, because there may a deficiency in a script someplace if it didnt create the record.
nikos
Thanks a lot for your reply.

You were right. After a day or so it worked.

In ENSIM, it was available after a few seconds...

I wonder why?
hokiethang
ensim used wildcard domains. so the name servers were setup to think that *.domain.com went to that domain.com anyway and apache intercepted it and did a rewrite on the incoming address to get the subdomains to the right subdirectory. Cpanel doesnt do the wildcarding so it takes a couple of hours/days for the record changes to propagate.
WillyMore
I think you want an addon domain. Adds ftp and cgi. For the broken ndc this worked for me from the dns post

4. Broken NDC/BIND
My version of WHM/CPanel came with a broken NDC. To fix this:

SSH into your box as root.

(a) Type: cd /scripts
(b) Type: ./updatenow
© Type: ./fixndc

Go back into WHM, go to the Restart Services section in the left menu and click DNS/Nameserver (BIND).

You will need to do this if you start getting 'ndc' errors when you are doing anything DNS related in WHM.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.