Bonjour à tous,

Après avoir travaillé sur XAMPP pendant longtemps (sous Windows également) j'ai décidé de le désinstaller de mon PC pour le remplacer par Apache, PHP et MYSQL car parait il que cela est mieux.

Je commence donc par Apache comme l'indique la doc, tout se déroule normalement. Je lance le service (toujours comme la doc l'indique) et là j’obtiens un message d’erreur :
# su -lc 'service httpd start'
Starting httpd (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
                                                           [ÉCHOUÉ]
Après des recherches dans le forum ainsi que sur internet je n'ai pas la solution donc je me tourne vers vous !

Cordialement,

Gustavi
as tu fait ce qu'on t'a dit ?
See system logs and 'systemctl status' for details
:-? Un peu d'aide car je ne sais plus afficher cela ...
je suis peut-être totalement à coté de la plaque mais tu ne peux pas faire
su -
/etc/init.d/apache2 start 
les commandes disponibles sont :
start | restart| stop | reload
Alors le problème vient peut être de là car j'ai :
# /etc/init.d/apache2 start 
bash: /etc/init.d/apache2: Aucun fichier ou dossier de ce type
EDIT : le fichier en question n'existe pas
tu as quoi si tu fais
ls -al /etc/init.d/
?
Voilà
 ls -al /etc/init.d/
total 288
drwxr-xr-x.  2 root root  4096  5 juil. 18:15 .
drwxr-xr-x. 10 root root  4096 25 juin  22:38 ..
-rwxr-xr-x.  1 root root  3884 21 juin  15:18 abrt-ccpp
-rwxr-xr-x.  1 root root  1708 21 juin  15:18 abrtd
-rwxr-xr-x.  1 root root  1642 21 juin  15:18 abrt-oops
-rwxr-xr-x.  1 root root  1729  6 mai   18:05 acpid
-rwxr-xr-x.  1 root root  1410  7 avril 15:18 apt
-rwxr-xr-x.  1 root root  2122  8 févr. 05:38 atd
-rwxr-xr-x.  1 root root  3378 11 juin  16:36 auditd
-rwxr-xr-x.  1 root root  2540  9 mai   21:54 avahi-daemon
-rwxr-xr-x.  1 root root  1479  8 févr. 08:27 btseed
-rwxr-xr-x.  1 root root  1651  8 févr. 08:27 bttrack
-rwxr-xr-x.  1 root root  5124 30 mai   16:48 cgconfig
-rwxr-xr-x.  1 root root  3605 30 mai   16:48 cgred
-rwxr-xr-x.  1 root root  1164 26 mars  17:04 collectd
-rwxr-xr-x.  1 root root 10006  8 févr. 12:59 cpuspeed
-rwxr-xr-x.  1 root root  3017 12 avril 11:11 cups
-rwxr-xr-x.  1 root root  1430  8 févr. 15:37 dnsmasq
-rwxr-xr-x.  1 root root  2809  5 mai   14:50 firstboot
-rw-r--r--.  1 root root 19899 27 avril 19:17 functions
-rwxr-xr-x.  1 root root  3371  7 mars  10:52 httpd
-rwxr-xr-x.  1 root root  8563 14 févr. 18:07 ip6tables
-rwxr-xr-x.  1 root root  8468 14 févr. 18:07 iptables
-rwxr-xr-x.  1 root root  1624  9 févr. 14:33 irda
-rwxr-xr-x.  1 root root   659 27 avril 19:17 killall
-rwxr-xr-x.  1 root root  2904 31 mars  18:56 mdmonitor
-rwxr-xr-x.  1 root root  2200  2 mai   18:23 messagebus
-rwxr-xr-x.  1 root root  2363  8 févr. 14:57 multipathd
-rwxr-xr-x.  1 root root  2980 27 avril 19:17 netconsole
-rwxr-xr-x.  1 root root  5598 27 avril 19:17 netfs
-rwxr-xr-x.  1 root root  7385 27 avril 19:17 network
-rwxr-xr-x.  1 root root  2205 21 juin  02:32 NetworkManager
-rwxr-xr-x.  1 root root  6131 19 avril 19:15 nfs
-rwxr-xr-x.  1 root root  3526 19 avril 19:15 nfslock
-rwxr-xr-x.  1 root root  1926  6 mai   18:24 ntpd
-rwxr-xr-x.  1 root root  2056  6 mai   18:24 ntpdate
-rwxr-xr-x.  1 root root  6256 17 mars  14:26 openvpn
-rwxr-xr-x.  1 root root  2103 25 mai   10:01 pcscd
-rwxr-xr-x.  1 root root  1834  1 juil. 12:39 portreserve
-rwxr-xr-x.  1 root root  1560  9 févr. 18:10 psacct
-rwxr-xr-x.  1 root root  1515  9 févr. 16:57 rdisc
-rwxr-xr-x.  1 root root  1969  9 févr. 10:46 rpcbind
-rwxr-xr-x.  1 root root  3184 19 avril 19:15 rpcgssd
-rwxr-xr-x.  1 root root  2706 19 avril 19:15 rpcidmapd
-rwxr-xr-x.  1 root root  3084 19 avril 19:15 rpcsvcgssd
-rwxr-xr-x.  1 root root  1979 28 juin  17:20 rsyslog
-rwxr-xr-x.  1 root root  1698 29 avril 18:17 sandbox
-rwxr-xr-x.  1 root root  2056 23 mars  16:44 saslauthd
-rwxr-xr-x.  1 root root  3719 17 mai   18:28 sendmail
-rwxr-xr-x.  1 root root  1300 11 janv. 16:25 smolt
-rwxr-xr-x.  1 root root  1440 16 mars  04:29 speech-dispatcherd
-rwxr-xr-x.  1 root root  4600 29 avril 09:21 sshd
-rwxr-xr-x.  1 root root  1866 19 avril 22:03 wpa_supplicant
-rwxr-xr-x.  1 root root  5326 29 avril 15:03 ypbind
-rwxr-xr-x.  1 root root   990  8 févr. 11:47 zvbid
bon le service apache2 ne se trouve pas la dedant comme sous ubuntu. je vais chercher parce que je ne connais pas bien fedora
qu'à tu si tu fais
service httpd start
et si tu va à l'adresse http://localhost dans ton navigateur ?
Comme je l'ai déjà dit j’obtiens cela :
# service httpd start
Starting httpd (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
                                                           [ÉCHOUÉ]
et j'ai une erreur de chargement de firefox pour localhost ...
Bon j'ai essayé d'installer apache2 moi-même et sa fonctionne.

essaie de tout désintaller et ensuite pour l'installation tu fais comme ceci
su -
yum install httpd httpd httpd-devel httpd-manual
puis ensuite il faut encore démarrer le service httpd avec la commande suivante :
service httpd start
Ensuite si je vais sur http://localhost , j'ai la page de test d'Apache2

tu as installé comment tout tes trucs ?
Après installation j'ai toujours le même résultat :
Installé:
  httpd-devel.x86_64 0:2.2.17-10.fc15.1                             httpd-manual.noarch 0:2.2.17-10.fc15.1                            

Dépendance(s) installée(s) :
  apr-devel.x86_64 0:1.4.5-1.fc15            apr-util-devel.x86_64 0:1.3.12-1.fc15      cyrus-sasl-devel.x86_64 0:2.1.23-16.fc15     
  db4-cxx.x86_64 0:4.8.30-3.fc15             db4-devel.x86_64 0:4.8.30-3.fc15           expat-devel.x86_64 0:2.0.1-11.fc15           
  openldap-devel.x86_64 0:2.4.24-2.fc15     

Terminé !
[root@pc /]# service httpd start
Starting httpd (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
                                                           [ÉCHOUÉ]
ok on va aller voir les logs d'apache

que te retourne les deux commandes suivantes :
su -
cat /etc/httpd/logs/access_log
cat /etc/httpd/logs/error_log
Quel intérêt d'installer le paquet httpd-devel avec toutes les dépendances ?
gustavi wrote:Absolument rien
Donc les fichiers sont vides. l'erreur ne vient pas d'apache2 (malheureusement).

tape
su -
systemctl
et fait Enter jusqu'à trouver la ligne
http-daemon.target        loaded active active        Web Server
Si tu trouve cette ligne, je pense que tu n'auras pas la partie "loaded active active" tout à fait pareil
excuse, tu peux aussi faire cette commande
su -
systemctl status http-daemon.target
bon moi j'ai mon système en englais. je sais pas si les noms changent en français
Alors j'obtiens plusieurs erreurs :
auditd.service            loaded failed failed        SYSV: This starts the Linux Auditing System Daemon, which collects security related events in a dedicated audit log. If this daemon is turned off, audit eve
httpd.service             loaded failed failed        LSB: start and stop Apache HTTP Server
sshd.service              loaded failed failed        LSB: Start up the OpenSSH server daemon
Ainsi que :
http-daemon.target        loaded active active        Web Server
Et si je fais la deuxième commande j'ai :
systemctl status http-daemon.target
http-daemon.target - Web Server
      Loaded: loaded (/lib/systemd/system/http-daemon.target)
      Active: active since Wed, 06 Jul 2011 10:15:01 +0200; 21h ago
Voilà alors là j'ai un peu de mal à cerner le problème mais je serais maudit jusqu'au bout car sur mon ancien PC impossible d'installer la SQL donc pour quelqu'un qui crée des sites en PHP/MySQL c'est un peu chaud ... :-?

En tout cas merci de ton aide,

Gustavi
mmh.

as-tu essayé de modifié un fichier de configuration à la main ?

On va essayé de starter en mode debug.
su -
killall httpd
httpd -e DEBUG
Alors non je n'ai rien bidouillé à la main et voici ce que j'ai :
killall httpd
httpd: aucun processus trouvé
[root@***]# httpd -e DEBUG
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module auth_basic_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module auth_digest_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authn_file_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authn_alias_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authn_anon_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authn_dbm_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authn_default_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authz_host_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authz_user_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authz_owner_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authz_dbm_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authz_default_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module ldap_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module authnz_ldap_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module include_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module log_config_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module logio_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module env_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module ext_filter_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module mime_magic_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module expires_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module deflate_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module headers_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module usertrack_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module setenvif_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module mime_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module dav_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module status_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module autoindex_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module info_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module dav_fs_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module vhost_alias_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module negotiation_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module dir_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module actions_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module speling_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module userdir_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module alias_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module substitute_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module rewrite_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module proxy_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module proxy_balancer_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module proxy_ftp_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module proxy_http_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module proxy_ajp_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module proxy_connect_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module cache_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module suexec_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module disk_cache_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module cgi_module
[Thu Jul 07 09:06:11 2011] [debug] mod_so.c(246): loaded module version_module
Syntax error on line 292 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory