Forum Moderators: phranque

Message Too Old, No Replies

no localhost found after installing apache 2.2

         

amc4042

10:35 pm on Jan 10, 2010 (gmt 0)

10+ Year Member



After installing apache 2.2 the service is running, ping to localhost is ok, but invoking [localhost...] or [127.0.0.1...] ends up with a message: "firefox couldn't stablish the connection", ie doesn't connect either

the error log says

Could not reliably determine the server's fully qualified domain name, using 192.168.1.45 for ServerName

I would like to know where and what to check for that to work

jdMorgan

3:01 am on Jan 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the ServerName that you declared in your config file?

Consider giving your server a domain name (amke one up if you like). Then define this domain name in the 'hosts' file of each workstation on your local network that you want to use to access the server locally.

It's a bit more work up-front, but a lot more 'natural' that typing-in IP addresses where a domain name should be...

Jim

amc4042

10:51 pm on Jan 12, 2010 (gmt 0)

10+ Year Member



i suppose you mean C:\Archivos de programa\Apache Software Foundation\Apache2.2\conf\httpd.txt

the word ServerName appears in these lines

#ServerName localhost:8080
ServerName localhost

How can I give a domain name to my PC?
thx

jdMorgan

11:55 pm on Jan 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Define it in your 'hosts' file -- Every internet-capable computer has one. It's name is 'hosts' -- all-lowercase, and no file extension. In XP it's under Windows\system32\drivers\etc\hosts or you can search for it.

The files itself contains examples of its use. Use only a plain-text editor such as Notepad to edit it.

Jim

amc4042

9:14 pm on Jan 13, 2010 (gmt 0)

10+ Year Member



doesn't work either

in etc/hosts
127.0.0.1 localhost
127.0.1.1 mortadelo

in httpd
ServerName mortadelo

I am doing something wrong.. but don't know what
thanks

jdMorgan

10:16 pm on Jan 13, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put a tld on your "made-up domain" -> mortadelo.com or mortadelo.es
Then declare that as the ServerName in your config file.

Jim