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.

server setup

Discussion in 'General Discussion' started by tamilsoulja, Aug 16, 2005.

  1. tamilsoulja

    tamilsoulja Registered

    Joined:
    Jul 4, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hello, i need help with setting up my server with dns etc...i have no idea how this works :mad: ..like hostname....nameserver...please guide me :confused:
     
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

    There are many threads available. This time I'll select one for you. If you are still unsuccessful, try to PM me . I'll see
    if i can get some time for you.


    1. Change Hostname In WHM
    Select Change Hostname from the Server Setup section on the menu to the left.

    Enter the new hostname in the box and click 'Change'. Hostnames should have two dots in them and should be setup as if they're a subdomain of your server's main domain name. So, if your server's main domain is mybox.com, your hostname could be something like server01.mybox.com.

    WHM then prompts you to add an 'A Entry for your hostname' if you don't already have one (see bnext point)

    2. Add an 'A' Entry
    You can do this by going to the DNS Functions area of the left menu and selecting Add an A Entry for your Hostname. It will ask you to confirm the details: press Add the entry to do so.

    3. Manual Checks
    Now this didn't work fully when we did it, so we had to check some stuff manually (none, some or all of these may need ameding in your environment). SSH to your server and do the following:

    'hosts' file
    verify /etc/hosts and make sure that the entries are as follows -

    127.0.0.1 localhost
    xxx.xxx.xxx.xxx server01.mybox.com server01

    - replacing xxx.xxx.xxx.xxx with your server's IP address and adding your hostname after it.

    Apache
    open /etc/httpd/conf/httpd.conf, scroll down and find the ServerName entry and make sure your fully qualified hostname (i.e. server01.mybox.com) is specified after it.

    While you're there, you may want to change the ServerAdmin e-mail (just above the ServerName) too.

    wwwacct.conf
    Open /etc/wwwacct.conf, scroll down and find the HOST entry and make sure your fully qualified hostname (i.e. server01.mybox.com) is specified after it.

    resolv.conf
    open /etc/resolv.conf, and check that the first two lines read as follows -

    domain mybox.com
    search mybox.com

    Replacing mybox.com with your server's primary domain name and adding your own nameservers to the file.

    network
    open /etc/sysconfig/network, and check that HOSTNAME line specifies your host name.


    You may need to reboot your box to make hostname changes take effect.
     
  3. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Aby, although I applaud your effort to help out the thread starter, setting up a Server is not for the inexperienced.

    It takes about an hour to do setup in WHM and an hour in Shell, and that's without doing much in the way of securing/hardening a Server. I would suggest the thread starter have someone experienced in these matters do the setup for them. It will be to their advantage and their Clients. :)
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
Loading...

Share This Page