Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 starting problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
InAt!QuE
Apprentice
Apprentice


Joined: 02 Jan 2004
Posts: 257
Location: The Netherlands

PostPosted: Sun Feb 27, 2005 11:41 pm    Post subject: apache2 starting problem Reply with quote

Hi all,

When I start Apache2 I got the follwoing problem and I dunno how to solev it :S

Code:
root # /etc/init.d/apache2 start
 * Apache2 has detected a syntax error in your configuration files:
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
                         [-C "directive"] [-c "directive"]
                         [-k start|restart|graceful|stop]
                         [-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
  -D name           : define a name for use in <IfDefine name> directives
  -d directory      : specify an alternate initial ServerRoot
  -f file           : specify an alternate ServerConfigFile
  -C "directive"    : process directive before reading config files
  -c "directive"    : process directive after reading config files
  -e level          : show startup errors of level (see LogLevel)
  -E file           : log startup errors to file
  -v                : show version number
  -V                : show compile settings
  -h                : list available command line options (this page)
  -l                : list compiled in modules
  -L                : list available configuration directives
  -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
  -S                : a synonym for -t -D DUMP_VHOSTS
  -t                : run syntax check for config files


This is found in the error log:
Code:
[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "HOSTNAME"
Configuration Failed


What is exactly wrong and how to fix it?
_________________
...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly).
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Feb 27, 2005 11:57 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
ronnie
n00b
n00b


Joined: 21 Jul 2004
Posts: 66

PostPosted: Mon Feb 28, 2005 7:05 pm    Post subject: Reply with quote

Check ServerName in /etc/apache2/conf/apache2.conf. It must be a name that can be resolved, either by DNS or in your /etc/hosts file.
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Mon Feb 28, 2005 7:07 pm    Post subject: Reply with quote

Also, you don´t need mod_unique_id at all - this one is meant for web server clusters or that sort of configuration.
Back to top
View user's profile Send private message
icefaerie
n00b
n00b


Joined: 02 Oct 2004
Posts: 50

PostPosted: Mon Feb 28, 2005 8:08 pm    Post subject: Reply with quote

I had that same problem.

Edit /etc/hosts and make sure there's a line that says "127.0.0.1 localhost name" where name is the name of your box.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum