LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   hostname problem (https://www.linuxquestions.org/questions/mandriva-30/hostname-problem-369377/)

varun_saa 10-03-2005 10:25 AM

hostname problem
 
Hello,
I changed my hostname from :

dataserve.mylab.org to smtp.saice.edu
a while a ago.

But when I open say a PHP based software in the
browser my old hostname shows up as hostname

as root the command hostname yields - smtp.saice.edu.

I rebooted the system already several times.

So why is ti still piking my old hostname from
somewhere ???

Any idea how to fix the problem ?

Thanks

varun

ralvez 10-03-2005 10:36 AM

did you "tell" apache that you changed your host name?
Take a look at your httpd.conf file to make sure.

Rick

rjcrews 10-03-2005 08:47 PM

add the line

ServerName smtp.saice.edu

in httpd.conf (at the top)and restart apache

I am assuming you did

hostname smtp.saice.edu

to change it and it didnt work?

varun_saa 10-04-2005 12:47 AM

Thanks all.

Actually I checked my /etc/host file
and it had the old entry as well.

But your hint enough to get me thru'

Thanks

Varun


All times are GMT -5. The time now is 01:25 AM.