Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Modifying a domain usingf WHM

Discussion in 'General Discussion' started by trigger hippy, Mar 6, 2006.

  1. trigger hippy

    trigger hippy Member

    Joined:
    Dec 2, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Bristol, UK
    I am trying to find a good working practice as something is going wrong at the moment...

    When developing a site, I use a developement domain name - I have bought livetest1.co.uk
    Clients like this as it is easy to use. This is a hangover from using a previous system that worked differently.

    When I set-up the developement domain, I tend to use the real usernames and passwords that I am going to use later.

    Once the site is ready to go live, I use 'modify account' to change the domain name to the new domain.

    The reason I do it this way rather than using the ~username method of accessing it (which may be easier) is because in PHP when using ~username to access a site the Global variable in PHP $DOCUMENT_ROOT is not set correctly and I use this a lot.

    When I changed an account recently from the developement domain to the live domain, WHM made a big mess of it - the <VirtualHost> container ended up without a user attached to us (I am running phpsuexec so it should have), and it apparently created it twice and goodness knows what else.

    Is this a bad practise, did I do something to offend WHM, or is it too hard to tell? Any comments gratefully received.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice