Re: HOSTNAME Environment variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/21/06, Ruben Rubio Rey <ruben@xxxxxxxxxxxx> wrote:
> Strange. Its already set (in hostname and "echo $HOSTNAME"). I have
> realized that is working on version (in my servers) 5.0.5 and its not
> working in 5.0.4 version. Is it an old bug? Im updating, we ll see ....

Have you rebooted your machine since you changed the hostname? I don't
know where PHP/Apache gets the hostname variable from - there are
quite a few places where that variable is stored on a linux system -
but most services reads the /etc/hostname file upon boot, therefor the
need for a restart after changing it.

You might want to check the contents of /proc/sys/kernel/hostname, and
even changing it by issuing:

echo your_hostname > /proc/sys/kernel/hostname

If it still doesn't work, reboot to be sure.

--
Kim Christensen
kim.christensen@xxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux