Hostname/domain name problems

Status
Not open for further replies.

digitaloracle

Daemon Poster
Messages
725
MY web server is so slow that it could parse and dislpay certain php pages at the same time, so I configured it to connect to my switch to have my laptop display the pages. Not kknowing exactly what I was doing, during the network setup wizard I specified another hostname for the machine. Afterwards, apache boots with the message "Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerHame." It will server html files just fine. However, now whenever I try to login on phpbb, it comes back with the error

"An error occured while loading ...

Unknown host localhost.localdomain"

This occurs when trying to login on the server itself, my xp laptop comes back with a similar error. How do I resolve this?
 
What OS is your web server?

Linux -> Find "host" file in /etc and edit it

type the IP (than some space) then the name of your PC

Sample:
127.0.0.1 localhost
192.168.0.1 moratalinux.com (or what so ever)

Then locate the apache conf files and make sure the host is corect.


windows also have file "hosts" c:\winroot\system32\drivers\etc\
As far as I remeber.

edit is same way
 
I deleted the entry in the hosts file that was not local host. However, I did not see/do not know where to find the host entry in the httpd.conf.
 
Yes there is.

Find Where is written: "ServerName"

This is where you host should go.
By default is
"ServerName localhost"

Next ting is
In your host file DO NOT delete "127.0.0.1 localhost"
This is there with purpose.......
 
Status
Not open for further replies.
Back
Top Bottom