# \[APACHE2\]\[UBUNTU\]Une configuration capricieuse

**URL:** <https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579>\
**Category:** Tech\
**Created:** [Août 9, 2007, 8:08 UTC](https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579 "2007-08-09T20:08:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_le\_maudit](https://forum.geekzone.fr/user_avatar/forum.geekzone.fr/m_le_maudit/32/147_2.png) [@M\_le\_maudit](https://forum.geekzone.fr/u/M_le_maudit)\
**Post date:** [Août 9, 2007, 8:08 UTC](https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579/1 "2007-08-09T20:08:43Z")

</div>

Bonsoir,

Je continu tant bien que mal la réinstallation de mon petit serveur. J’en suis à apache2 et bien que j’ai récupéré mes fichiers de configuration de la debian, je ne parviens pas à me débarasser de ce foutu message :

`apache2: apr_sockaddr_info_get() failed for mlemaudit-desktop`  
D’après mes recherches, il semble que celà soit lié aux noms de domaine mais je ne parviens pas à m’en dépêtrer.

voici le début du fichier de cof du site :

[code]NameVirtualHost 192.168.1.110:80

\<VirtualHost 192.168.1.110:80\>  
ServerName [MauditWorld.hd.free.fr](http://MauditWorld.hd.free.fr)  
ServerAdmin webmaster@localhost

```
 DocumentRoot /mnt/web
 <Directory />
	 Options FollowSymLinks
	  AllowOverride None
 </Directory>
 <Directory /mnt/web>
	 Options FollowSymLinks MultiViews
	  AllowOverride AuthConfig
	 Order allow,deny
	   allow from all
 </Directory>

```

ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"  
Alias /cgi-bin/ “/usr/lib/cgi-bin/”  
\<Directory “/usr/lib/cgi-bin”\>  
Options ExecCGI FollowSymLinks MultiViews SymLinksIfOwnerMatch  
AllowOverride None  
Order deny,allow  
Allow from all  
AuthUserFile /var/www/.htpasswd  
AuthGroupFile /dev/null  
AuthName "Serveur"  
AuthType Basic

```
		 <Limit GET POST>
		   Require User M_le_maudit
		 </Limit>
	  </Directory>

```

# \<Location /cgi-bin/\>

# SetHandler perl-script

# PerlResponseHandler ModPerl::Registry

# PerlOptions +ParseHeaders

# Options +ExecCGI

# Order allow,deny

# Allow from all

# 

```
 ErrorLog /var/log/apache2/error_Mauditworld.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn
 CustomLog /var/log/apache2/access_Mauditworld.log "combined"
 ServerSignature On

```

Alias /doc/ “/usr/share/doc/”  
\<Directory “/usr/share/doc”\>  
Options Indexes MultiViews FollowSymLinks  
AllowOverride None  
Order deny,allow  
Allow from all  
[/code]

ainsi que mon fichier host :

[code]127.0.0.1 localhost  
127.0.1.1 mlemaudit-desktop.MSHOME  
192.168.1.110 Mlemaudit [lepetitserveur.fr](http://lepetitserveur.fr) [Mauditworld.hd.free.fr](http://Mauditworld.hd.free.fr)

# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback  
fe00::0 ip6-localnet  
ff00::0 ip6-mcastprefix  
ff02::1 ip6-allnodes  
ff02::2 ip6-allrouters  
ff02::3 ip6-allhosts[/code]

Je continu de chercher, si l’un de vous à une idée, je prend.

Summon Lonewolf ?

Merci d’avance.

---

<div class="post-metadata">

**Author:** ![LoneWolf](https://forum.geekzone.fr/user_avatar/forum.geekzone.fr/lonewolf/32/125515_2.png) [@LoneWolf](https://forum.geekzone.fr/u/LoneWolf)\
**Post date:** [Août 9, 2007, 8:25 UTC](https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579/2 "2007-08-09T20:25:42Z")

</div>

vire la ligne

```auto

```

de ton fichier hosts

Sans garantie.

Si ca marche pas, tu vas dans /etc/apache2 et tu tapes

```auto

```

et tu pastes le resultat ici

LoneWolf  
Help express

---

<div class="post-metadata">

**Author:** ![M\_le\_maudit](https://forum.geekzone.fr/user_avatar/forum.geekzone.fr/m_le_maudit/32/147_2.png) [@M\_le\_maudit](https://forum.geekzone.fr/u/M_le_maudit)\
**Post date:** [Août 9, 2007, 8:42 UTC](https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579/3 "2007-08-09T20:42:54Z")

</div>

[quote=“LoneWolf, post:2, topic: 45579”]vire la ligne

```auto

```

de ton fichier hosts

Sans garantie.

Si ca marche pas, tu vas dans /etc/apache2 et tu tapes

```auto

```

et tu pastes le resultat ici

LoneWolf  
Help express[/quote]

Ca marche pas mieux sans le 127.0.1.1.

Pas de résultat avec la commande …

---

<div class="post-metadata">

**Author:** ![LoneWolf](https://forum.geekzone.fr/user_avatar/forum.geekzone.fr/lonewolf/32/125515_2.png) [@LoneWolf](https://forum.geekzone.fr/u/LoneWolf)\
**Post date:** [Août 9, 2007, 9:11 UTC](https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579/4 "2007-08-09T21:11:38Z")

</div>

bon google me dit [ca](http://www.nabble.com/apache2-won't-start-t2210902.html) ou [ca](http://www.bsdforums.org/forums/archive/index.php/t-37270.html) ce qui me laisse a penser: t’as mis quoi pour ServerName hors virtualhost?

Sinon autre piste, [MauditWorld.hd.free.fr](http://MauditWorld.hd.free.fr) a une vrai IP public qui ne correspond pas a l’ip de ton host, faut se mefier de ca aussi, ca peut deconner

LoneWolf  
Enough for today, need to sleep, have a nice dream(s) B)

---

<div class="post-metadata">

**Author:** ![M\_le\_maudit](https://forum.geekzone.fr/user_avatar/forum.geekzone.fr/m_le_maudit/32/147_2.png) [@M\_le\_maudit](https://forum.geekzone.fr/u/M_le_maudit)\
**Post date:** [Août 9, 2007, 9:34 UTC](https://forum.geekzone.fr/t/apache2-ubuntu-une-configuration-capricieuse/45579/5 "2007-08-09T21:34:05Z")

</div>

[quote=“LoneWolf, post:4, topic: 45579”]bon google me dit [ca](http://www.nabble.com/apache2-won%27t-start-t2210902.html) ou [ca](http://www.bsdforums.org/forums/archive/index.php/t-37270.html) ce qui me laisse a penser: t’as mis quoi pour ServerName hors virtualhost?

Sinon autre piste, [MauditWorld.hd.free.fr](http://MauditWorld.hd.free.fr) a une vrai IP public qui ne correspond pas a l’ip de ton host, faut se mefier de ca aussi, ca peut deconner

LoneWolf  
Enough for today, need to sleep, have a nice dream(s) B)[/quote]

ServerName n’est déclaré que pour les virtuals hosts. Sinon , j’ai déjà vu les pages que tu propose mais n’ai pas réussit à résoudre mon problème.

EDIT : Bon, l’installation de Bind9 à résolu mon problème. Apache est démarré. Maintenant il ne me reste plus qu’à réussir à faire interpréter les fichiers PHP par le serveur. C’est pas encore gagné !!!

Merci pour ton aide Lone.
