Results 1 to 3 of 3

Thread: How to Set your Hostname

  1. #1
    Join Date
    Sep 2004
    Location
    Martil
    Age
    29
    Posts
    19,386
    Rep Power
    109855

    Lightbulb How to Set your Hostname

    How to Set your Hostname

    Ok...here is the easy way to change your hostname...this script has been tested on Plesk 2/5/6, Ensim/Pro, Plain Redhat, and even cPanel servers...but should work on most any redhat linux cp.


    ***Please note....it is advisable to ensure that your choosen hostname resolves to your server before continuing
    Entries in BOLD are what you type.

    1) login to your server via ssh
    2) su -
    3) wget [Only registered and activated users can see links. ]
    5) sh hostname.sh
    6) answer the questions
    7) done.
    ***Note::: If you are running a plesk server, you will also be running the plesk reconfigurator....below is an example of the output you will see:
    Key Points:
    1) use a valid email address
    2) make sure it shows the correct hostname (should after you ran my script)
    3) pick the right ip# for namebased hosting.
    4) the parts in BOLD are what you type
    PSA is ready for reconfiguration.
    Please note that PSA utilizes your version file to verify
    that you are performing a correct software reconfiguration.
    Do you really want to proceed? [N] Y
    Checking whether this Linux uses shadow passwords... Ok

    Now you will be asked several questions.
    Don't worry about mistakes.
    Script will give you the chance later to correct any input.
    It's necessary to know e-mail address of Plesk administrator
    Please don't use mail address of the root on this system,
    this is one restriction of Qmail system
    Enter psa administrator e-mail address: youremail@yourdomain.com
    [Only registered and activated users can see links. ]
    Enter full hostname of this machine [sub.domain.com]: <ENTER>
    sub.domain.com
    Enter domain name [domain.com]:<ENTER>
    domain.com
    Host's networks interface(s) has(ve) the next assigned IP addresses:
    1) main server ip
    2) ip 2
    3) ip 3
    4) ip 4
    5) ip5
    Which one IP would you like to use for name-based virtual hosting? [1]1

    Do you want to start Plesk after reconfiguration? [Y] y

    ===> Admin e-mail : [Only registered and activated users can see links. ]
    ===> Hostname : sub
    ===> Domain name : domain.com
    ===> Full name : sub.domain.com
    ===> Name-based IP : ip#
    ===> You want to start Plesk after reconfiguration.
    Guessing that all above information is correct.
    Is this correct? [Y] Y
    <cut...bunch of stuff here..just look for errors>
    Trying to start Plesk server...

    Reconfiguration process is complete.
    For more information see /tmp/psa_5.0.5_RedHat_7.2_build030207.16_reconfiguratio n.log.
    You can access Plesk Server Manager via URL:
    [Only registered and activated users can see links. ]
    or
    [Only registered and activated users can see links. ]
    -
    -


    **FAQ**


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    [Only registered and activated users can see links. ]
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    [Only registered and activated users can see links. ]
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    [Only registered and activated users can see links. ]
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  2.    Advertissements


  3. #2
    Join Date
    Jun 2005
    Location
    IN YOUR HEART
    Age
    17
    Posts
    1,886
    Rep Power
    24475

    Default

    Thnkssss For Sharing This Is Really Usefull
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    Add reputation if you like my work

  4. #3

    Default

    Thanksssssssssssss

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219