URL: https://linuxfr.org/forums/linux-general/posts/configuration-apache
Title: Configuration apache
Authors: wxuserbrest
Date: 2008年04月21日T00:31:08+02:00
Tags:
Score: 0
Bonjour,
je suis sur mandriva 2008.1 j'ai installé apache, donc si je tape
[http://localhost/manual](http://localhost/manual) j'ai bien le manuel,
[http://localhost](http://localhost) erreur
Du coup je tape dans le fichier /etc/httpd/conf.d/messites.conf
NameVirtualHost 127.0.0.1:80
ServerName phpmyadmin
ServerAdmin webmaster@phpmyadmin
DocumentRoot /var/www/phpmyadmin
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/apache2/phpmyadmin.log
CustomLog /var/log/apache2/phpmyadmin.log combined
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
ServerSignature On
Ben ça marche si le serveur apache est déjà lancé sinon s'il se lance j'ai cela comme erreur :
Starting httpd: [Sun Apr 20 21:30:25 2008] [error] (EAI 2)Name or service not known: Could not resolve host name phpmyadmin -- ignoring!
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sun Apr 20 21:30:25 2008] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts
Mon but est de pouvoir faire une création de site en local.
Sinon autre question pourquoi [http://localhost/manualmarche](http://localhost/manualmarche) et pas [http://localhost](http://localhost) ???
Y a t il un tutorial, documentation qui explique toute la configuration pour arriver à faire son site en local mais surtout visiblede l'extérieur.
Merci de vos réponses
Cordialement