LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2004, 11:56 AM   #1
mrmike
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
Apache doesn't like me..


Ok, here's the info:

Redhat 9.0
Apache ???

Box set up as a home server with IP 192.168.1.2

-------------------------------

I've been checking the error_log file for apache and I keep getting this error:

[Date #####] [alert] (22002) Name or service not known: mod_unique_id: unable to find IPv4 address of "dizneland"
Configuration failed!

(dizneland is the host name of the machine)

I'm sure there is a simple answer to this, but alas it eludes me. I do not have any DNS set up, but do I have to? I am happy accessing this by IP address alone. I just want apache to start, darnit! It hasn't work since I installed the OS.

Help..

mrmike
 
Old 07-09-2004, 12:11 PM   #2
mnopq
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
Do you have this

ServerName localhost

or

ServerName dizneland

set in your httpd.conf file?
 
Old 07-09-2004, 12:15 PM   #3
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
I believe if you place "192.168.1.2 idizneland" in /etc/hosts file then it should start fine. You may also need to edit httpd.conf and make sure this is in there "Servername 192.168.1.2:80".
 
Old 07-09-2004, 12:28 PM   #4
mnopq
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
Please remember what ID10T_error mentioned (i.e. 192.168.1.2) is just an example, your ip address may differ as 192.168.1.2 could belong to another host in your network.
 
Old 07-09-2004, 01:37 PM   #5
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
No, according to the post, that is the ip address. Unless you have multiple ip addresses.
 
Old 07-09-2004, 02:44 PM   #6
mnopq
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
Oops, sorry didn't notice he posted a static ip .
 
Old 07-10-2004, 12:20 AM   #7
mrmike
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks all...

Indeed, it was an error in my /etc/hosts file. When I installed the server, I named it "disneyland" and after a while, thought that was a little too goofy (no pun intended) and changed it to "dizneland" (I know, what a difference).

Restarted apache... works like a charm. Awesome !!
 
Old 07-11-2004, 06:03 PM   #8
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 31
Mike can you give some advise as to how get apache to work. I read your thread and after trying some the suggestions , I sitll dont know what I'm doing wroing.
Here is what I've done so far
in the httpd.conf file made the following changes:

in the document root lind: var/www/html
in the webadministrator: myemail
In the Server Name: my ip address
in the line where it reads listen: www.mydomain.com

however, there are two listen lines. Do I put www.mydomain.com in both of them?
configured the firewall to allow http

one more note, during the boot, i get the following message
"syntax error in line 296, which is the listen line.

any advise will be appreciated.
 
Old 07-11-2004, 06:11 PM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I think you should put www.mydomain.com as your server name, and just have
Code:
listen 80
for listen if you want it to use port 80 on all network interfaces.
or to get it to listen on a specific interface you put the ip address
Code:
listen 10.0.0.1:80
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration