Web Hosting Talk







View Full Version : How to change this on server


dxer
12-08-2002, 08:24 AM
I have dedicated server and when page appear with info saying Apache/1.3.27 Server at yyy.xx*********** Port 80

this yyy.xxx*********** is not my hostname or my domain but my server provider. I did input my hostname but this is not it.

How to change this kidn of appearance. Server is with Cpanel/WHM

Thanks

ho247
12-08-2002, 08:33 AM
Once you've used the "Change Hostname" link in the WebHost Manager control panel to change the hostname... login to SSH via root and type:

pico /etc/hosts

Make the changes required for the hostname, save it by pressing CTRL and X. That should correct the problem... a reboot may be needed, but usually not.

If you need help doing this, just contact me via PM/email or ICQ.

Alan

dxer
12-08-2002, 08:35 AM
What reboot. Just Apache or ??

Thanks

ho247
12-08-2002, 08:40 AM
It shouldn't require a reboot of the server or a restart of Apache. Test it out and see if it shows the proper hostname after you change the /etc/hosts file.

Alan

dxer
12-08-2002, 09:07 AM
I'am new at this so I don'tt know how to login as root. I tried with Telnet application. Connection established but no password was asked. Blank screen.

How to login as root to change this ?

Thanks

ho247
12-08-2002, 09:22 AM
You'l need a SSH application like the one at:

http://www.chiark.greenend.org.uk/~sgtatham/putty/

Then just login as the user 'root' and use your root password. If you contact me offline I will be able to do this for you.

Alan

dxer
12-08-2002, 09:25 AM
Thanks

I must learn this.

rcs
12-08-2002, 09:26 AM
You have to ability to disable "server signature" in your httpd.conf
set: ServerSignature Off
or alternatly set
ServerNane <your hostname>

dxer
12-08-2002, 09:28 AM
What port I must use to root login . Is it 80 ?

rcs
12-08-2002, 09:29 AM
Telnet is on port 23
ssh is on port 22.

the clients that you use to connect knows that.

You can pm me if you want more help.

ho247
12-08-2002, 09:29 AM
Port 22 for SSH.

Alan

dxer
12-08-2002, 09:30 AM
i input 80 and hit SSH , open and it worked

Now must configure as You said

rcs
12-08-2002, 09:31 AM
no it didn't work :cool:

dxer
12-08-2002, 09:33 AM
I opened that file and there is in same line my hostname and the other one I told You about which I don't want to see.

Do I have to delete this other one or what.
It look like this

qqq.eeeeee.biz qqq yyy.x*********** yyy

qqq is my hostname

dxer
12-08-2002, 09:34 AM
Originally posted by rcs
no it didn't work :cool:

But I opened that file already and I login on port 80

rcs
12-08-2002, 09:35 AM
Originally posted by dxer


But I opened that file already and I login on port 80

You didn't login to port 80 :)

ho247
12-08-2002, 09:36 AM
Originally posted by dxer
I opened that file and there is in same line my hostname and the other one I told You about which I don't want to see.

Do I have to delete this other one or what.
It look like this

qqq.eeeeee.biz qqq yyy.x*********** yyy

qqq is my hostname I'm assuming the "yyy.x***********" is the one that is showing now? If yes, then delete the following:

yyy.x*********** yyy

Save the file and then load the page up to see what it shows, it should show "qqq.eeeeee.biz" now.

Alan

dxer
12-08-2002, 09:39 AM
File name to write : /etc/hosts

What should I choose -- TAB for complete or T for To Files??

rcs
12-08-2002, 09:39 AM
I'm sorry, this is not a good advice.

what if yyy.x*********** is needed for something else in the server.

You need to change your httpd.conf file

:argue:

ho247
12-08-2002, 09:39 AM
Just press the return key (enter) or Y for yes.

Alan

dxer
12-08-2002, 09:42 AM
OK but nothing changed. Old hostname stays.

Do I need to reboot Apache only or what.
Can I do it over WHM , just Apache reboot

rcs
12-08-2002, 09:43 AM
I'm telling you for the last time!
you need to change your httpd.conf file :yawn:

dxer
12-08-2002, 09:47 AM
Oh man...........

Where is that httpd.conf file . How to reach it , and what do I need to change there ?

rcs
12-08-2002, 09:49 AM
find / -name httpd.conf
then edit the file and change ServerName
or ServerSignature. then restart your server. Or get a pro that will do it for $10.

dxer
12-08-2002, 09:50 AM
Thanks. Over and out :-)

ho247
12-08-2002, 09:50 AM
Originally posted by rcs
I'm telling you for the last time!
you need to change your httpd.conf file :yawn: Okay, as suggested by rcs, type in:

pico /etc/httpd/conf/httpd.conf

That will open the httpd.conf file, then find the ServerName directive in the file near the top and change the hostname there. You're not seeing the hostname you want could be due to several reasons. I've just tried one of them by modifying the /etc/hosts file which obviously wasn't the case.

If you email me I can correct it for you quickly for no charge.

Alan

Techark
12-08-2002, 09:53 AM
Hire somebody..

If you do not know where httpd.conf is or how to use ssh do yourself a favor and hire someone to change it for you.

ho247
12-08-2002, 10:08 AM
Originally posted by Monte
Hire somebody..

If you do not know where httpd.conf is or how to use ssh do yourself a favor and hire someone to change it for you. I would have to agree with this. If you've got no clue how to do any of this you should really hire someone to do it for you. If I had direct access to the server I would be able to fix it in less than 10 minutes.

Alan

rcs
12-08-2002, 10:09 AM
you meen less then 1 minute :stickout

ho247
12-08-2002, 10:12 AM
Originally posted by rcs
you meen less then 1 minute :stickout Well you've got login with root password etc, so it takes a minute or two to set that up. Then you've got to find where the problem is, it may not be the httpd.conf file... so I tend to give it bit more time.

Alan

dxer
12-08-2002, 01:18 PM
Change it successfuly

Thanks to all

dbbrock1
12-08-2002, 01:57 PM
Hello dxer, take a look at redhat.com to get familiar with the linix enviornment.