Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 06-27-2004, 11:36 AM   #1 (permalink)
 
Ultra Techie

Join Date: May 2004

Posts: 725

digitaloracle

Default Hostname/domain name problems

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?
digitaloracle is offline  
Old 06-27-2004, 12:40 PM   #2 (permalink)
milen's Avatar
 
Super Techie

Join Date: Feb 2004

Posts: 304

milen is on a distinguished road

Default

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
milen is offline  
Old 06-27-2004, 01:04 PM   #3 (permalink)
 
Ultra Techie

Join Date: May 2004

Posts: 725

digitaloracle

Default

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.
__________________
AGP won\'t fit in PCI-E... unless you use a really good hammer. ~Trotter
digitaloracle is offline  
Old 06-29-2004, 08:19 AM   #4 (permalink)
milen's Avatar
 
Super Techie

Join Date: Feb 2004

Posts: 304

milen is on a distinguished road

Default

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.......
milen is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On