Hello la team,
Je voudrais lancer le service httpd, tuto pris sur ce site, mais j'ai une erreur.
A priori apache ne reconnait pas mon servername, pourtant mis également dans /etc/hosts.
Tout d'abord mon fichier hosts :
127.0.0.1       mamachine localhost.localdomain localhost
Voici l'erreur quand je renseigne rien dans servername de mon httpd_ok.conf
[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 536 will probably never match because it overlaps an earlier Alias.
[Tue Oct 19 00:10:47 2010] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 561 will probably never match because it overlaps an earlier ScriptAlias.
[Tue Oct 19 00:10:47 2010] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 840 will probably never match because it overlaps an earlier Alias.
httpd: apr_sockaddr_info_get() failed for mamachine
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
                                                           [ÃCHOUÃ]
Je renseigne mon servername dans httpd_ok.conf et j'obtiens cette erreur :
Syntax error on line 263 of /etc/httpd/conf.d/httpd_ok.conf:
Invalid command 'mamachine', perhaps misspelled or defined by a module not included in the server configuration
                                                           [ÃCHOUÃ]
Mon fichier httpd_ok.conf :
#ServerName www.example.com:80
mamachine
Je tourne en rond depuis et je ne sais pas quoi faire car le service ne lance pas.
Des idées ?

Merci 🙂
Hello.
Dans ton .conf, essaie en remplaçant
#ServerName www.example.com:80
mamachine
par
#ServerName www.example.com:80
ServerName mamachine
😉
Le fichier host doit contenir le FQDN de ta machine (en premier).

Après, si tu as recopié le conf/httpd.conf dans conf.d/httpd_pk.conf, forcément il va y avoir des trucs en trop...

+
Merci Dominick et Remi c'était bien cela le souci, il manquait le mot servername.

Et sur les conseils de Remy j'ai allegé mon httpd_ok.conf

Mais j'ai un autre souci, c'est avec wordpress j'ai installé le paquet mais je ne peux pas me connecter sur l'interface http://127.0.0.1/wordpress
Mais j'ai cette erreur :
Error establishing a database connection
Il faut juste signaler que sur le tuto (ubuntu) ils font un lien symbolique du répertoire /usr/share/wordpress à /var/www/nomdemabase

Est-ce un souci de mysql ? Pourtant ma base sql est bien créée, je reconfigure mon hhtpd_ok.conf j'ai cette erreur :
Not Found
The requested URL /nomdemabase was not found on this server.
Apache/2.2.15 (Fedora) Server at 127.0.0.1 Port 80
Car l'installation c'est bien déroulée de même que php mais je n'arrive pas à trouver de tuto pour wordpress sur Fedora. Le seul c'est pour Ubuntu 🙁
tu as rempli le fichier /etc/wordpress/wp-config.php avec les informations à la base ?

À priori l'accès à wordpress se fait via http://127.0.0.1/wordpress (fichier /etc/httpd/conf.d/wordpress.conf )
Merci, j'avais un souci de mot de passe.
J'ai installé phpMyAdmin et cela a résolu le souci !

MErci encore !