I have a basic VPS (full root access), with WHM/cPanel, and am learning the ropes. I'm trying to create a new account for an existing domain (mysite.com), and so far WHM won't let me - it either wants a sub-domain or fake domain, but won't allow two accounts for one domain.

In the beginning, there was only the root account, and it wouldn't let me login to cPanel - a quick chat with tech support, and I am informed that I need to create a second account, which I did. So now I have an account, call it ns1me, for domain mysite.com.

Now I want to create a django account. I go through the same process, but WHM won't allow me to use mysite.com as the domain for django. The docs recommend a sub-domain, so I fill the box in with django.mysite.com. I then realize that has actually created a sub-domain - going to django.mysite.com shows me its home directory, along with helpful information about what version of Apache, Python, and other mods its running (thanks, Apache).

I really don't want a sub-domain, so that's out. Another chat with tech support, and they recommend a fake domain name, as it won't create anything. Sure enough, using a domain of djangomysite.com works, and WHM allows me to create a django account. But of course, I can't send email to django@djangomysite.com (where I could to django@django.mysite.com).

What I want, is to be able to create a second account, associated with mysite.com (so I can run cPanel logged in as django, send email to django@mysite.com, etc) - without creating a whole new sub-domain, or fake domain.

link|improve this question

75% accept rate
Why can't you just use the account for mysite.com to upload your Django files? You can only run one site on each domain anyway so what does having multiple users have to do with it? – sam Jun 2 '11 at 15:15
@samarudge, I'd like to be able to use some of the features of cPanel, with other users. For instance, if I create a MySQL database, it prepends the db with the username - ns1me_database. Whereas I'd like to call it django_db or something. I may just be lacking a basic understanding of cPanel. I thought it was an interface - I don't understand why it's 1:1 with users. – Cyclops Jun 5 '11 at 19:37
feedback

2 Answers

It was mentioned that cPanel prepends database names with the cPanel user's username and that is the reasoning for having 2 users for the same domain.

That is optional since version 11.28.

To disable the prefixing, go to WHM -> SQL Services -> Disable Database Prefix

Now you will be able to create databases named django_db etc. from username ns1me.

link|improve this answer
It is related to username not for domain... – Gabor Garami May 5 at 21:27
feedback

cPanel works correctly because it assumes owner of mysite.com is an owner of that domain. In practice there is very-very rare situation to create separated account for a subdomain.

However, there is a solution, but not it is not a pretty one:

  • In WHM go to Tweak settings, and turn on Allow domain parking across accounts setting
  • Then, create an account with a fake domain
  • Then enter to newly created account and park a subdomain on a top of that.

Alternative solution (for avoid first step) IIRC you can park a domain manually from WHM on top of any account (on the left side type 'park' into the search bar.

I think it will be solve your problem.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.