The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating cPanel client login on my hosting site?

Discussion in 'General Discussion' started by Metro2, Feb 3, 2009.

  1. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I know there are a few discussions on this, and I'm aware of http://www.cpanel.net/cpanel-login.phps , but I don't think that will work in my particular setup (unless there is a customization that I'm overlooking that I can add to it).

    Here's the dilemma - I have more than one server and I'm using DNS clustering in WHM, and each server has it's own hostname (IE: server1.example.com , server2.example.com , etc...)

    From what I can tell (and please correct me if I'm wrong), if I create a cPanel client login on my web site using something like http://www.cpanel.net/cpanel-login.phps then it will only work for one of the servers in my cluster, so only the customers on that one server will be able to use it and any user hosted on the other boxes will get an error.

    Is there a better way to add a cPanel client login box to my hosting site's main page? Am I overlooking something that http://www.cpanel.net/cpanel-login.phps might have that ability do? Is there a workaround for a situation where DNS Clustering is being used?

    I greatly appreciate any replies / advice, thank you.
     
  2. wonker

    wonker Active Member

    Joined:
    Dec 5, 2007
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    3
    Hello, it wouldn't be difficult to create a dropdown box so your customers could choose which server they want (replacing $_SERVER['HTTP_HOST']). If you wanted to go a step further, you could keep a seperate database of login names and their corresponding servers so the user would not have to choose which server they want to connect to ...
     
  3. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thank you for the reply! I really like (and much prefer) your second suggestion of having a database of login names so that the user would not have to choose the server themselves. Unfortunately I'm not much of a database programmer type and wouldn't know how to go about doing that. I'm not expecting anyone to explain it step-by-step, but if you or anyone else feels like giving me a little more info to go on in regard to implementing your second approach that would be fantastic.

    Thanks again, I appreciate the reply.
    M2
     
Loading...

Share This Page