apache2

Bonjour,
j’ai ce type d’erreur pour :
localhost ou le nom de ma machine par défaut sur le port 80 ou 127.0.0.1

normal operations
[Fri Feb 07 10:34:42.099265 2014] [core:notice] [pid 7188] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 07 10:49:35.490822 2014] [mpm_prefork:notice] [pid 7188] AH00171: Graceful restart requested, doing restart
[Fri Feb 07 10:49:35.557695 2014] [mpm_prefork:notice] [pid 7188] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Fri Feb 07 10:49:35.557952 2014] [core:notice] [pid 7188] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 07 20:14:31.508534 2014] [mpm_prefork:notice] [pid 7188] AH00169: caught SIGTERM, shutting down
[Sat Feb 08 08:23:18.215853 2014] [mpm_prefork:notice] [pid 7310] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Sat Feb 08 08:23:18.270596 2014] [core:notice] [pid 7310] AH00094: Command line: '/usr/sbin/apache2'
root@alpha30:                                                                                                                    

vous voyez quoi comme remède?
A+
JB1

Salut,

[quote=“jb1”]Graceful restart requested, doing restart

[core:notice] [pid 7188] AH00094: Command line: ‘/usr/sbin/apache2’[/quote]

As-tu fait ce que l’indien te suggère … :think:

Un redémarrage “en douceur” (graceful) sans qu’il y ait interruption.

[mono]# apache2ctl -k graceful[/mono]

bonjour,
à priori cela ne suffit pas,
hier j’ai réinstallé apache2,
au pire je devrais avoir que la page est en travaux

dans le lien affiché en bas à gauche,
j’ai ceci:

localhost/?C=D;O=A

bonne journée avec ce temps d’enfer
A+
JB1

[quote=“jb1”]hier j’ai réinstallé apache2,
au pire je devrais avoir que la page est en travaux
[/quote]

Suite à cela, as-tu vérifié que ton vhost(s) pointe dans la bonne direction (?) et que la syntaxe en soit harmonieuse … :think:

[mono]# apache2ctl -t && apache2ctl configtest && apache2ctl -S[/mono]

Éventuellement, si le serveur n’est pas en prod …

[mono]# tail -f /var/log/apache2/error.log

tail -f /var/log/apache2/access.log[/mono]

Et tu relances le service.

[mono]# service apache2 reload[/mono]

je vais faire,
je suis sur une machine M$
A+
JB1

réponse 1° directive:

root@alpha30:/etc/apache2# apache2ctl -t && apache2ctl configtest && apache2ctl -S
Syntax OK
Syntax OK
VirtualHost configuration:
*:80                   alpha30.bohain.org (/etc/apache2/sites-enabled/000-default.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
Mutex mpm-accept: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33
root@alpha30:/etc/apache2# 

reponse 2° commande

root@alpha30:/etc/apache2# cd /var/log/apache2
root@alpha30:/var/log/apache2# tail -f /var/log/apache2/error.log
[Fri Feb 07 10:49:35.490822 2014] [mpm_prefork:notice] [pid 7188] AH00171: Graceful restart requested, doing restart
[Fri Feb 07 10:49:35.557695 2014] [mpm_prefork:notice] [pid 7188] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Fri Feb 07 10:49:35.557952 2014] [core:notice] [pid 7188] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 07 20:14:31.508534 2014] [mpm_prefork:notice] [pid 7188] AH00169: caught SIGTERM, shutting down
[Sat Feb 08 08:23:18.215853 2014] [mpm_prefork:notice] [pid 7310] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Sat Feb 08 08:23:18.270596 2014] [core:notice] [pid 7310] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 08 09:12:12.044012 2014] [cgi:error] [pid 7317] [client 142.4.206.229:39190] script not found or unable to stat: /usr/lib/cgi-bin/php
[Sat Feb 08 09:57:50.493404 2014] [mpm_prefork:notice] [pid 7310] AH00171: Graceful restart requested, doing restart
[Sat Feb 08 09:57:50.558406 2014] [mpm_prefork:notice] [pid 7310] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Sat Feb 08 09:57:50.558431 2014] [core:notice] [pid 7310] AH00094: Command line: '/usr/sbin/apache2'
q 
^[^C
root@alpha30:/var/log/apache2# 

réponse 3° commande
[code]
root@alpha30:/var/log/apache2# tail -f /var/log/apache2/access.log
::1 - - [08/Feb/2014:09:57:50 +0100] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 (internal dummy connection)"
::1 - - [08/Feb/2014:09:57:50 +0100] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 (internal dummy connection)"
::1 - - [08/Feb/2014:09:57:50 +0100] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 (internal dummy connection)"
::1 - - [08/Feb/2014:09:57:50 +0100] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 (internal dummy connection)"
127.0.0.1 - - [08/Feb/2014:09:58:24 +0100] "GET / HTTP/1.1" 200 577 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0a2"
127.0.0.1 - - [08/Feb/2014:09:58:24 +0100] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0a2"
127.0.0.1 - - [08/Feb/2014:09:58:43 +0100] "GET /?C=N;O=D HTTP/1.1" 200 575 "http://localhost/" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0a2"
127.0.0.1 - - [08/Feb/2014:09:58:52 +0100] "GET /?C=M;O=A HTTP/1.1" 200 577 "http://localhost/?C=N;O=D" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0a2"
127.0.0.1 - - [08/Feb/2014:09:58:57 +0100] "GET /?C=S;O=A HTTP/1.1" 200 577 "http://localhost/?C=M;O=A" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0a2"
127.0.0.1 - - [08/Feb/2014:09:59:01 +0100] "GET /?C=D;O=A HTTP/1.1" 200 576 "http://localhost/?C=S;O=A" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0a2"
^C
root@alpha30:/var/log/apache2# 
[/code]
root@alpha30:/var/log/apache2# service apache2 reload
[ ok ] Reloading web server: apache2.
root@alpha30:/var/log/apache2# 

bon appétit
A+
JB1

Ton site m’a l’air de bien marcher:

[quote][Fri Feb 07 10:49:35.490822 2014] [mpm_prefork:notice] [pid 7188] AH00171: Graceful restart requested, doing restart
[Fri Feb 07 10:49:35.557695 2014] [mpm_prefork:notice] [pid 7188] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured – resuming normal operations
[Fri Feb 07 10:49:35.557952 2014] [core:notice] [pid 7188] AH00094: Command line: ‘/usr/sbin/apache2’
[Fri Feb 07 20:14:31.508534 2014] [mpm_prefork:notice] [pid 7188] AH00169: caught SIGTERM, shutting down[/quote]arrêt du site et redémarrage[quote]
[Sat Feb 08 08:23:18.215853 2014] [mpm_prefork:notice] [pid 7310] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured – resuming normal operations
[Sat Feb 08 08:23:18.270596 2014] [core:notice] [pid 7310] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Feb 08 09:12:12.044012 2014] [cgi:error] [pid 7317] [client 142.4.206.229:39190] script not found or unable to stat: /usr/lib/cgi-bin/php[/quote]Un rigolo qui essaye de voir si tu as un script php parmi ceux présentant une faille, le siterépond donc à l’extérieur[quote]
[Sat Feb 08 09:57:50.493404 2014] [mpm_prefork:notice] [pid 7310] AH00171: Graceful restart requested, doing restart[/quote]redémarrage[quote]
[Sat Feb 08 09:57:50.558406 2014] [mpm_prefork:notice] [pid 7310] AH00163: Apache/2.4.7 (Debian) mod_perl/2.0.8 Perl/v5.18.2 configured – resuming normal operations
[Sat Feb 08 09:57:50.558431 2014] [core:notice] [pid 7310] AH00094: Command line: '/usr/sbin/apache2’
q [/quote]
bref où est le souci?

je n’ai rien qui s’affiche,
je devrait avoir au minimum la page de travail de /var/www/index.html
JB1

[quote=“jb1”]VirtualHost configuration:
*:80 alpha30.bohain.org (/etc/apache2/sites-enabled/000-default.conf:1)
ServerRoot: “/etc/apache2”[/quote]

[mono]/etc/apache2/sites-enabled/000-default.conf[/mono] … :think: :083

[mono]ls -la /var/www/[/mono]

[mono]ll /etc/apache2/sites-available/[/mono]

[mono]ll /etc/apache2/sites-enabled/[/mono]

root@alpha30:/etc/apache2# ls -la /var/www/                                                                                                       
total 91696
drwxr-xr-x 11 root   root         4096 janv.  3 11:48 .
drwxr-xr-x 16 root   root         4096 nov.  24 11:14 ..
drwxr-xr-x  2 root   root         4096 juil. 30  2012 centerparc
-rw-r--r--  1 root   root         2444 juil. 30  2012 centerparc.htm
drwxr-xr-x  2 root   root         4096 mars  27  2012 clusaz
-rw-r--r--  1 root   root        18952 juil. 29  2012 clusaz.htm
-rwxr-xr-x  1 root   root     43089016 sept.  2  2012 DSCF0436.AVI
-rwxr-xr-x  1 root   root     50664652 sept.  2  2012 DSCF0440.AVI
drwxr-xr-x  2 gforge gforge       4096 mai    2  2012 gforge
drwxr-xr-x  2 root   root         4096 janv.  2 13:52 html
drwxr-xr-x  5 root   root         4096 juin   7  2012 images
drwxr-xr-x  2 root   root         4096 avril 13  2012 imgindex
-rw-r--r--  1 root   root          771 déc.  17  2011 INDEX.HTLM2_BAD
-rw-r--r--  1 root   root         2026 sept.  2  2012 index.htm
-rw-r--r--  1 root   root          261 déc.  12  2011 INDEX.HTML1
-rw-r--r--  1 root   root          906 janv. 10  2012 INDEX.HTML2
-rw-r--r--  1 root   root          923 mars  25  2012 INDEX.HTML_3_OK
-rw-r--r--  1 root   root          177 nov.  28  2011 INDEX.HTML_JB
drwxr-xr-x  2 root   root         4096 mars  27  2012 jardin
-rw-r--r--  1 root   root         3957 sept.  9  2012 jardin.htm
drwxrwxr-x 17 root   www-data     4096 juin   9  2012 joumla
-rw-r--r--  1 root   root         9460 avril 13  2012 logo.png
-rw-r--r--  1 root   root           31 nov.  29  2011 phpinfo.php
-rw-r--r--  1 root   root        18952 juil. 29  2012 save_cluza.htm
drwxr-xr-x  2 root   root         4096 nov.  11  2012 webalizer
root@alpha30:/etc/apache2# 
root@alpha30:/etc/apache2# ls -la /etc/apache2/sites-available/
total 28
drwxr-xr-x 2 root root 4096 févr.  6 16:47 .
drwxr-xr-x 8 root root 4096 févr.  6 16:47 ..
-rw-r--r-- 1 root root 1332 nov.  24 16:09 000-default.conf
-rw-r--r-- 1 root root 1385 nov.  21 17:26 000-default.conf.dpkg-old
-rw-r--r-- 1 root root 1327 nov.  21 17:18 000-default.conf_JB
-rw-r--r-- 1 root root 6437 nov.  24 16:09 default-ssl.conf
root@alpha30:/etc/apache2# 
root@alpha30:/etc/apache2# ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx 1 root root 35 juil.  3  2013 000-default.conf -> ../sites-available/000-default.conf
root@alpha30:/etc/apache2#

c’est index.htm qui contient ma page d’acceuil dans /var/www

si je fait 192.168.1.30/index.htm
j’ai une erreur 404 page non trouvée
A+
JB1

ensuite

root@alpha30:/var/www# pg /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.
	#ServerName www.example.com

	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/html

	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: s

le répertoire /var/www/html est vide
[/code]
JB1

[quote=“jb1”]root@alpha30:/etc/apache2# ls -la /var/www/

-rw-r–r-- 1 root root 2026 sept. 2 2012 index.html[/quote]

[quote=“jb1”]root@alpha30:/etc/apache2# ls -la /etc/apache2/sites-available/

-rw-r–r-- 1 root root 1332 nov. 24 16:09 000-default.conf
-rw-r–r-- 1 root root 1385 nov. 21 17:26 000-default.conf.dpkg-old
-rw-r–r-- 1 root root 1327 nov. 21 17:18 000-default.conf_JB
[/quote]

[mono]cat /etc/apache2/sites-enabled/000-default.conf[/mono] … :think: :083

[mono]cat /etc/apache2/sites-enabled/000-default.conf.dpkg-old[/mono]

[mono]cat /etc/apache2/sites-enabled/000-default.conf_JB[/mono]

[mono]http://localhost[/mono] [mono]http://192.168.1.30/[/mono] … point barre !


[quote=“jb1”]ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

le répertoire /var/www/html est vide
[/quote]

[mono]rm -r /var/www/html[/mono] ???


[code][16:44:56][root@facteur] ~ # cat /var/www/index.html

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

[16:45:03][root@facteur] ~ # [/code]

[quote][16:43:56][root@facteur] ~ # ll /var/www/
total 3,6M

-rw-r–r-- 1 root www-data 177 2013-01-18 15:38 index.html
[16:43:58][root@facteur] ~ # [/quote]

[quote][…]
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

Available loglevels: trace8, …, trace1, debug, info, notice, warn,

error, crit, alert, emerg.

It is also possible to configure the loglevel for particular

modules, e.g.

#LogLevel info ssl:warn
[…][/quote]

la racine de ton serveur est /var/www/html qui est vide donc rien ne s’affiche. Tout va bien donc. Change ta racine ou déplace tes pages.

bonsoir
/var/www/html est un répertoire,
index.htm est un fichier
j’ai une copie bestiale de index.htm ./html
cela fonctionne
presque je vois le début de ma page
merci pour les astuces

la dernière MAJ apache date de quand SVP?
je fermerai la discussion demain matin
A+
JB1

Remet ta page comme elle, remplace /var/www/html dans le fichier /etc/apache2/sites-availables/000-default.conf par /var/www, redémarre le serveur et ça ira.

bonjour,
merci à tous le monde pour les infos
A+
JB1
:041

Salut,

En version Stable hier et fait ce jour. :wink:

[quote]
apticron report [Sat, 08 Feb 2014 13:27:47 +0100]

apticron has detected that some packages need upgrading on:

pc-2-loreleil 
[ 192.168.1.13 ]

The following packages are currently pending an upgrade:

apache2 2.2.22-13+deb7u1
apache2.2-bin 2.2.22-13+deb7u1
apache2.2-common 2.2.22-13+deb7u1
apache2-doc 2.2.22-13+deb7u1
apache2-mpm-prefork 2.2.22-13+deb7u1
apache2-utils 2.2.22-13+deb7u1
base-files 7.1wheezy4
browser-plugin-gnash 0.8.11~git20120629-1+deb7u1
gnash 0.8.11~git20120629-1+deb7u1
gnash-common 0.8.11~git20120629-1+deb7u1
libc6 2.13-38+deb7u1
libc6-dev 2.13-38+deb7u1
libc6-i686 2.13-38+deb7u1
libc-bin 2.13-38+deb7u1
libc-dev-bin 2.13-38+deb7u1
libotr2 3.2.1-1+deb7u1
libssl1.0.0 1.0.1e-2+deb7u4
libssl-dev 1.0.1e-2+deb7u4
linux-headers-3.2.0-4-686-pae 3.2.54-2
linux-headers-3.2.0-4-common 3.2.54-2
linux-image-3.2.0-4-686-pae 3.2.54-2
linux-libc-dev 3.2.54-2
localepurge 0.6.3+deb7u1
locales 2.13-38+deb7u1
multiarch-support 2.13-38+deb7u1
openssl 1.0.1e-2+deb7u4
tzdata 2013i-0wheezy1
wget 1.13.4-3+deb7u1
whois 5.1.1~deb7u1[/quote]

[11:31:18] ~ # version Linux pc-2-loreleil 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686 GNU/Linux No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.4 (wheezy) Release: 7.4 Codename: wheezy [11:31:24] ~ #

Cool ! :wink: