Quantcast
Channel: WampServer - WampServer Francais
Viewing all articles
Browse latest Browse all 3470

Comment "router" les anomalies d'apache vers le fichier apache_error.log ? (1 réponse)

$
0
0
Bonjour à toutes et à tous.

Je n'ai aucun problème avec mon WampServer car l'icône est verte et j'accède bien à tous mes sites.

Mais il y a quelque chose qui m'énerve, car je n'arrive pas solutionner ce problème.

Schématiquement, je vais simplifier mon problème.

1) j'ai un site "poubelle" que j'ai nommé _default_
Et ce site est le serveur principal et je l'ai aussi déclaré en VirtualHost.

Dans les deux cas, les directives suivantes pointes vers les fichiers correspondant :

--> ErrorLog "f:/Default/Logs/error.log"
--> CustomLog "f:/Default/Logs/custom.log" common

Et j'obtiens bien un compte rendu dans ces deux fichiers.

2) j'ai un fichier qui se nomme :
--> f:\Wamp\bin\apache\apache2.4.7\logs\error.log
et celui-ci ne contient jamais rien puisque tout se trouve dans le fichier error.log du site par default (celui ci-dessus).

J'aimerai que les anomalies concernant Apache (donc elles générales et indépendamment des sites) puisse sortir dans le fichier log d'apache.
Et tous ce qui concerne les anomalies du site default puisse sortir dans le fichier error.log de se site.

Donc comment faire pour séparer ces deux types d'erreur ?

Par exemple, ces informations là ne doivent pas se trouver dans le fichier error.log du site default :
[Fri Mar 07 16:57:57.421569 2014] [mpm_winnt:notice] [pid 5924:tid 516] AH00455: Apache/2.4.7 (Win64) PHP/5.5.10 configured -- resuming normal operations
[Fri Mar 07 16:57:57.421569 2014] [mpm_winnt:notice] [pid 5924:tid 516] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 14:06:21
[Fri Mar 07 16:57:57.421569 2014] [core:notice] [pid 5924:tid 516] AH00094: Command line: 'f:\\Wamp\\bin\\apache\\apache2.4.7\\bin\\httpd.exe -d F:/Wamp/bin/apache/apache2.4.7'
[Fri Mar 07 16:57:57.421569 2014] [mpm_winnt:notice] [pid 5924:tid 516] AH00418: Parent: Created child process 6720
[Fri Mar 07 16:57:57.998770 2014] [mpm_winnt:notice] [pid 6720:tid 448] AH00354: Child: Starting 250 worker threads.
[Fri Mar 07 16:59:28.401728 2014] [core:warn] [pid 5556:tid 128] AH00098: pid file F:/Wamp/bin/apache/apache2.4.6/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Mar 07 17:00:07.589397 2014] [mpm_winnt:notice] [pid 5556:tid 128] AH00455: Apache/2.4.6 (Win64) PHP/5.5.10 configured -- resuming normal operations
[Fri Mar 07 17:00:07.589397 2014] [mpm_winnt:notice] [pid 5556:tid 128] AH00456: Apache Lounge VC10 Server built: Jul 16 2013 11:31:50
[Fri Mar 07 17:00:07.589397 2014] [core:notice] [pid 5556:tid 128] AH00094: Command line: 'httpd.exe -d F:/Wamp/bin/apache/apache2.4.6'
[Fri Mar 07 17:00:07.589397 2014] [mpm_winnt:notice] [pid 5556:tid 128] AH00418: Parent: Created child process 6584

@+

Viewing all articles
Browse latest Browse all 3470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>