Test Apache =========== [Fri Sep 28 12:30:57.138484 2018] [core:warn] [pid 5788:tid 548] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:30:57.138484 2018] [core:warn] [pid 5788:tid 548] AH00111: Config variable ${SRVROOT} is not defined Syntax OK Appuyez sur une touche pour sortir...Et voici ce que j'ai dans le compte-rendu des erreurs d'apache :
[Fri Sep 28 12:41:00.346847 2018] [mpm_winnt:notice] [pid 10896:tid 588] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Fri Sep 28 12:41:02.378098 2018] [mpm_winnt:notice] [pid 6132:tid 600] AH00364: Child: All worker threads have exited. [Fri Sep 28 12:41:02.424976 2018] [mpm_winnt:notice] [pid 10896:tid 588] AH00430: Parent: Child process 6132 exited successfully. [Fri Sep 28 12:41:03.128102 2018] [core:warn] [pid 6408:tid 620] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:41:03.128102 2018] [core:warn] [pid 6408:tid 620] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:41:03.362476 2018] [mpm_winnt:notice] [pid 6408:tid 620] AH00455: Apache/2.4.35 (Win64) OpenSSL/1.1.0i PHP/7.2.10 configured -- resuming normal operations [Fri Sep 28 12:41:03.362476 2018] [mpm_winnt:notice] [pid 6408:tid 620] AH00456: Apache Lounge VC15 Server built: Sep 19 2018 16:08:47 [Fri Sep 28 12:41:03.362476 2018] [core:notice] [pid 6408:tid 620] AH00094: Command line: 'f:\\Wamp\\bin\\apache\\apache2.4.35\\bin\\httpd.exe -d F:/Wamp/bin/apache/apache2.4.35' [Fri Sep 28 12:41:03.378103 2018] [mpm_winnt:notice] [pid 6408:tid 620] AH00418: Parent: Created child process 3996 [Fri Sep 28 12:41:03.878104 2018] [core:warn] [pid 3996:tid 544] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:41:03.878104 2018] [core:warn] [pid 3996:tid 544] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:41:03.956229 2018] [core:warn] [pid 3996:tid 544] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:41:03.956229 2018] [core:warn] [pid 3996:tid 544] AH00111: Config variable ${SRVROOT} is not defined [Fri Sep 28 12:41:04.221855 2018] [mpm_winnt:notice] [pid 3996:tid 544] AH00354: Child: Starting 256 worker threads.Comment fait-il que nous ayons maintenant besoin de cette variable "${SRVROOT}" ?
Define SRVROOT "c:/Apache24" ServerRoot "${SRVROOT}"Depuis assez longtemps (Apache 2.4.29 et avant qu'Apache utilise ${SRVROOT} ) j'utilise quatre define dans httpd.conf :
Define APACHE24 Apache2.4 Define VERSION_APACHE WAMPAPACHEVERSION Define INSTALL_DIR WAMPROOT Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE} ServerRoot "${APACHE_DIR}"qui, après installation, sont modifiés en fonction du dossier d'installation :
Define APACHE24 Apache2.4 Define VERSION_APACHE 2.4.35 Define INSTALL_DIR j:/wamp Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE} ServerRoot "${APACHE_DIR}"
Du coup, j'ai modifié mon fichier "param.conf" afin de remplacer "version_apache" par "SRVROOT".Citation
Otomatic
Cette variable est utilisée dans plusieurs autres fichiers d'Apache :
conf\extra\httpd-dav.conf
conf\extra\httpd-manual.conf
conf\extra\httpd-multilang-errordoc.conf
conf\extra\httpd-ssl.conf
conf\extra\httpd-vhosts.conf
et les mêmes fichiers dans \conf\original\extra\
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}Vous dupliquez cette ligne, en changeant le nom de la variable, pour obtenir deux lignes :
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE} Define SRVROOT ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}Sauver le fichier modifié puis lancer Wampserver.