<?php $phpConf['phpIniDir'] = '.'; $phpConf['phpExeDir'] = '.'; $phpConf['phpConfFile'] = 'php.ini'; $phpConf['apache']['1.3']['LoadModuleName'] = 'php5_module'; $phpConf['apache']['1.3']['LoadModuleFile'] = 'php5apache.dll'; $phpConf['apache']['1.3']['AddModule'] = 'mod_php5.c'; $phpConf['apache']['2.0']['LoadModuleName'] = 'php5_module'; $phpConf['apache']['2.0']['LoadModuleFile'] = 'php5apache2.dll'; $phpConf['apache']['2.0']['AddModule'] = ''; $phpConf['apache']['2.2']['LoadModuleName'] = 'php5_module'; $phpConf['apache']['2.2']['LoadModuleFile'] = 'php5apache2_2.dll'; $phpConf['apache']['2.2']['AddModule'] = ''; $phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll'; $phpConf['apache']['2.4']['AddModule'] = ''; ?>Nota : vous pouvez très bien supprimer les références à Apache 1.3 et 2.0, étant donné que les versions de PHP 5.3.x, 5.4.x et 5.5.x, compilées VC9, VC10 ou VC11, ne peuvent pas tourner avec Apache 1.3.x ou 2.0.x
ServerRoot "c:/Apache24"par
ServerRoot "J:/Wamp/bin/apache/apache2.4.2" Define APACHE24 Apache2.4Nota : Le Define ci-dessus sert à déterminer, dans les fichier .htaccess par exemple, si on tourne avec Apache 2.4.x ou Apache 2.2.x, la directive Define n'étant pas possible avec Apache 2.2.x.
Listen 80par
Listen 0.0.0.0:80 Listen [::0]:80(2e ligne si support IPv6)
#LoadModule xml2enc_module modules/mod_xml2enc.sopar (Remplacer le chemin par votre version PHP 5.4.x active)
#LoadModule xml2enc_module modules/mod_xml2enc.so LoadModule php5_module "J:/wamp/bin/php/php5.4.3/php5apache2_4.dll"
#ServerName www.example.com:80par
ServerName localhost:80 HostnameLookups On
DocumentRoot "c:/Apache24/htdocs" <Directory "c:/Apache24/htdocs">par (Remplacer par vos chemins )
DocumentRoot "J:/wamp/www/" <Directory "J:/wamp/www/">
Require all granted </Directory>par
# onlineoffline tag - don't remove Require local </Directory>
<IfModule dir_module> DirectoryIndex index.html </IfModule>par
<IfModule dir_module> DirectoryIndex index.php index.php3 index.html index.htm </IfModule>
<Files ".ht*"> Require all denied </Files>par
<FilesMatch "^\.ht"> Require all denied Satisfy All </FilesMatch>
ErrorLog "logs/error.log"par (Mettre votre chemin)
ErrorLog "J:/Wamp/logs/apache_error.log"
CustomLog "logs/access.log" commonpar (Mettre votre chemin)
CustomLog "J:/Wamp/logs/access.log" common
ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/"par
ScriptAlias /cgi-bin/ "cgi-bin/"
<Directory "c:/Apache24/cgi-bin">par
<Directory "cgi-bin">
#AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgzpar
AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z AddType application/x-gzip .gz .tgzpar
AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3
Include "J:/Wamp/alias/*"
//[modif oto] - Ajout fonction test support IPv6 function test_IPv6() { if (extension_loaded('sockets')) { //Création du socket IPv6 $socket = socket_create(AF_INET6, SOCK_RAW, 1); if($socket === false) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); echo "<p>Erreur socket IPv6: ".$errormsg."</p>\n"; return false; } else { echo "<p>IPv6 supporté</p>\n"; socket_close($socket); return true; } } else echo "<p>Extension PHP sockets non chargée</p>\n"; return false; }
$onlineText = "# onlineoffline tag - don't remove Order Allow,Deny Allow from all"; $offlineText = "# onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from 127.0.0.1";par
//[modif oto] - On teste la version Apache pour cohabitation 2.2 et 2.4 if(substr($wampConf['apacheVersion'],0,3) == "2.4" { $onlineText = "# onlineoffline tag - don't remove Require all granted"; $offlineText = "# onlineoffline tag - don't remove Require local"; } else { $onlineText = "# onlineoffline tag - don't remove Order Allow,Deny Allow from all"; $offlineText = "# onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from localhost ".(test_IPv6() ? "::1 " : ""."127.0.0.1"; }
Ça ne suffit pas, il faut aussi vérifier que les chemins sont bons dans le fichier J:\wamp\bin\apache\Apache2.4.4\conf\extra\httpd-autoindex.conf ; ce doit être : Alias /icons/ "icons/" <Directory "icons"> Options Indexes MultiViews AllowOverride None Require all granted </Directory>
Alias /icons/ "c:/Apache24/icons/" <Directory "c:/Apache24/icons"> Options Indexes MultiViews AllowOverride None Require all granted </Directory>
Alias /icons/ "icons/" <Directory "icons"> Options Indexes MultiViews AllowOverride None Require all granted </Directory>Donc, comme « ce doit être » vous modifiez pour obtenir les lignes ci-dessus.
Alias /icons/ "icons/" > <Directory "icons"> > Options Indexes MultiViews > AllowOverride None > Require all granted > </Directory>> Donc, comme « ce doit être » vous
Nom de l’application défaillante httpd.exe, version : 2.4.7.0, horodatage : 0x528e59ed Nom du module défaillant : MSVCR110.dll, version : 11.0.51106.1, horodatage : 0x5098858e Code d’exception : 0xc0000417 Décalage d’erreur : 0x0009f979 ID du processus défaillant : 0x2cb8 Heure de début de l’application défaillante : 0x01cee90c113e9719 Chemin d’accès de l’application défaillante : C:\wamp\bin\apache\apache2.4.7\bin\httpd.exe Chemin d’accès du module défaillant: C:\Windows\system32\MSVCR110.dll ID de rapport : 4f5d560e-54ff-11e3-85dd-90fba646e8e1
could not execute menu item (internal error) [EAccessViolation]Access violation at adress 0043AC36 in module "wampmanager.exe'.Read of adress 00000018