Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 08-04-2016 14:50:59

Zinzin
Membre
Distrib. : Debian Jessie
Noyau : Linux 3.16.0-4-686-pae
(G)UI : gnome
Inscription : 03-03-2016

probleme apache ?

Bonjour
J'ai voulu tester un peu de php, pour cela j'ai vu qu'il est tres simple de monter un serveur web sur debian
Mon probleme c'est que cela ne marche pas hmm impossible d'ouvrir un .php avec iceweasel.

et lorsque je tape

sudo  /etc/init.d/apache2 restart


[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
 failed!
 



une petite idée svp ? smile


Tout ce qui est .rar est share !

Hors ligne

#2 08-04-2016 15:19:41

bendia
Admin stagiaire
Distrib. : Jessie
Noyau : 3.16.0-4-amd64
(G)UI : Gnome + XFCE + Console
Inscription : 20-03-2012
Site Web

Re : probleme apache ?

Salut smile

Tout d'abord, cette façon de relancée un service n'est plus à l'ordre du jour. Avec systemd, le service d’initialisation par défaut de Jessie, ça serait 

systemctl restart apache2

.

Edit : le tuto qui va bien pour systemd

Le retour de la commande te donne une indication pour aider au diagnostic wink

See 'systemctl status apache2.service' and 'journalctl -xn' for details



Tu peux essayer ces 2 commandes

systemctl status apache2.service


journalctl -xn


Ben
___________________
La seule question bête, c'est celle qu'on ne pose pas.
file-Re06858991f6f328b4907296ac5cea283

Hors ligne

#3 08-04-2016 15:28:10

Zinzin
Membre
Distrib. : Debian Jessie
Noyau : Linux 3.16.0-4-686-pae
(G)UI : gnome
Inscription : 03-03-2016

Re : probleme apache ?

juste pour bien faire j'ai taper la bonne commande (qu'il va falloir que je mémorise ^^)

systemctl restart apache2


Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.



du coup :

systemctl status apache2.service


● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since ven. 2016-04-08 15:23:57 CEST; 1min 42s ago
  Process: 9654 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 16751 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)



journalctl -xn


-- Logs begin at ven. 2016-04-08 10:31:01 CEST, end at ven. 2016-04-08 15:26:44 CEST. --
avril 08 15:23:57 debian apache2[16751]: Output of config test was:
avril 08 15:23:57 debian apache2[16751]: apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line
avril 08 15:23:57 debian apache2[16751]: Action 'configtest' failed.
avril 08 15:23:57 debian apache2[16751]: The Apache error log may have more information.
avril 08 15:23:57 debian systemd[1]: apache2.service: control process exited, code=exited status=1
avril 08 15:23:57 debian systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: L'unité (unit) apache2.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) apache2.service a échoué, avec le résultat failed.
avril 08 15:23:57 debian systemd[1]: Unit apache2.service entered failed state.
avril 08 15:23:57 debian sudo[16748]: pam_unix(sudo:session): session closed for user root
avril 08 15:26:44 debian sudo[17132]: user31 : TTY=pts/0 ; PWD=/home/user31 ; USER=root ; COMMAND=/bin/journalctl -xn
avril 08 15:26:44 debian sudo[17132]: pam_unix(sudo:session): session opened for user root by user31(uid=0)
lines 1-16/16 (END)
 



perso j'y comprend pas grand chose hmm

Dernière modification par Zinzin (08-04-2016 15:30:27)


Tout ce qui est .rar est share !

Hors ligne

#4 08-04-2016 15:43:30

bendia
Admin stagiaire
Distrib. : Jessie
Noyau : 3.16.0-4-amd64
(G)UI : Gnome + XFCE + Console
Inscription : 20-03-2012
Site Web

Re : probleme apache ?

Zinzin a écrit :

perso j'y comprend pas grand chose

C'est vrai que c'est un peu abscons, mais malgré tout, il y a des infos intéressantes, notamment  là

avril 08 15:23:57 debian apache2[16751]: apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line
avril 08 15:23:57 debian apache2[16751]: The Apache error log may have more information.

Tu sais avec cela où se situe le problème, et tu as même peut-être un indice de plus en regardant les logs d'apache

cat /var/log/apache2/error.log



En fait, ton système te donnes toutes les infos pour le dépannage wink


Ben
___________________
La seule question bête, c'est celle qu'on ne pose pas.
file-Re06858991f6f328b4907296ac5cea283

Hors ligne

#5 08-04-2016 15:57:57

Zinzin
Membre
Distrib. : Debian Jessie
Noyau : Linux 3.16.0-4-686-pae
(G)UI : gnome
Inscription : 03-03-2016

Re : probleme apache ?

me reste plus qu'à acheter un dico syteme/humain ^^

je suis allé voir la fameuse ligne 141 mais je suis incapable de dire ce qui ne vas pas ><

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf


(c'est la troisième)

cat /var/log/apache2/error.log



[Fri Apr 08 08:38:54.280220 2016] [mpm_event:notice] [pid 1036:tid 140514643691392] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 08:38:54.280251 2016] [core:notice] [pid 1036:tid 140514643691392] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:19:24.432383 2016] [mpm_event:notice] [pid 1036:tid 140514643691392] AH00491: caught SIGTERM, shutting down
[Fri Apr 08 10:19:25.516279 2016] [mpm_prefork:notice] [pid 17689] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:19:25.516405 2016] [core:notice] [pid 17689] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:19:26.914814 2016] [mpm_prefork:notice] [pid 17689] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 10:19:28.056208 2016] [mpm_prefork:notice] [pid 17792] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:19:28.056262 2016] [core:notice] [pid 17792] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:22:44.181175 2016] [mpm_prefork:notice] [pid 17792] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Apr 08 10:22:44.440090 2016] [mpm_prefork:notice] [pid 17792] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:22:44.440131 2016] [core:notice] [pid 17792] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:22:44.498603 2016] [mpm_prefork:notice] [pid 17792] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Apr 08 10:22:44.623609 2016] [mpm_prefork:notice] [pid 17792] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:22:44.623643 2016] [core:notice] [pid 17792] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:29:56.203841 2016] [:error] [pid 23709] avahi_client_new() failed: An unexpected D-Bus error occured
[Fri Apr 08 10:29:56.473846 2016] [mpm_prefork:notice] [pid 17792] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 10:31:30.878751 2016] [mpm_prefork:notice] [pid 1302] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:31:31.092754 2016] [core:notice] [pid 1302] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:47:40.631871 2016] [mpm_prefork:notice] [pid 1302] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 10:47:40.877512 2016] [mpm_prefork:notice] [pid 5237] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:47:40.877577 2016] [core:notice] [pid 5237] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 10:49:49.735181 2016] [mpm_prefork:notice] [pid 5237] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Apr 08 10:49:49.848539 2016] [mpm_prefork:notice] [pid 5237] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 10:49:49.848581 2016] [core:notice] [pid 5237] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 11:12:24.565521 2016] [mpm_prefork:notice] [pid 5237] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 11:13:59.378253 2016] [mpm_prefork:notice] [pid 9901] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 11:13:59.378388 2016] [core:notice] [pid 9901] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 11:14:01.402692 2016] [mpm_prefork:notice] [pid 9901] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 11:14:47.828726 2016] [mpm_prefork:notice] [pid 12080] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 11:14:47.828849 2016] [core:notice] [pid 12080] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 11:14:49.643084 2016] [mpm_prefork:notice] [pid 12080] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Apr 08 11:14:49.695815 2016] [mpm_prefork:notice] [pid 12080] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 11:14:49.695832 2016] [core:notice] [pid 12080] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 11:17:05.988579 2016] [mpm_prefork:notice] [pid 12080] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 11:17:07.109038 2016] [mpm_prefork:notice] [pid 12510] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 11:17:07.109160 2016] [core:notice] [pid 12510] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 13:56:44.429870 2016] [mpm_prefork:notice] [pid 12510] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 13:56:45.569807 2016] [mpm_prefork:notice] [pid 679] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 13:56:45.570826 2016] [core:notice] [pid 679] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 14:00:41.051376 2016] [mpm_prefork:notice] [pid 679] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Apr 08 14:00:41.104500 2016] [mpm_prefork:notice] [pid 679] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 14:00:41.104522 2016] [core:notice] [pid 679] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 14:01:05.596134 2016] [mpm_prefork:notice] [pid 679] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 14:01:06.697911 2016] [mpm_prefork:notice] [pid 1386] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 14:01:06.698026 2016] [core:notice] [pid 1386] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 14:07:25.743671 2016] [mpm_prefork:notice] [pid 1386] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 14:07:26.834547 2016] [mpm_prefork:notice] [pid 3009] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 14:07:26.834652 2016] [core:notice] [pid 3009] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 14:17:00.696570 2016] [mpm_prefork:notice] [pid 3009] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 14:17:01.809872 2016] [mpm_prefork:notice] [pid 5534] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 14:17:01.809991 2016] [core:notice] [pid 5534] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 14:17:03.795235 2016] [mpm_prefork:notice] [pid 5534] AH00169: caught SIGTERM, shutting down
[Fri Apr 08 14:17:32.713451 2016] [mpm_prefork:notice] [pid 7183] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Apr 08 14:17:32.713565 2016] [core:notice] [pid 7183] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 08 14:31:52.066959 2016] [mpm_prefork:notice] [pid 7183] AH00169: caught SIGTERM, shutting down
 



là si je comprend il faut que je configure 'ServerName' ?


Tout ce qui est .rar est share !

Hors ligne

Pied de page des forums