Impossible de démarrer Apache 2.4.18 sous Windows

J’essaie de démarrer mon service HTTP par la procédure suivante:

  1. Démarrage easyPHP DevServer 16.1

  2. Open Dashboard Ouvre sur la machine locale 127.0.0.1:1111

  3. Essayez de démarrer le serveur HTTP avec Apache 2.4.18 ouvre la page Apache avec le compilateur VC11 et le serveur avec php version 5.6.17 à l’écoute du port 80.

  4. En cliquant sur le bouton Démarrer, vous obtenez une exécution courte, puis aucun résultat. Les journaux d’erreur et d’access sont vides.

Toutes les suggestions sont appréciées.

Afin d’exécuter correctement PHP7, vous devez déjà installer le Redissortingbuable Visual C ++ V14 (comme indiqué dans les informations de PHP7 sur le tableau de bord easyphp)

Vous pouvez le trouver ici https://www.microsoft.com/download/details.aspx?id=48145

Actuellement, PHP7 est uniquement disponible dans easyPHP en version 32bits, donc installez la version compatible de VC14.

Mais bientôt j’espère que nous pourrons utiliser la version x64 de PHP7, et vous devrez ensuite installer la version x64 VC14

Windows 7 SP1, EasyPhp-DevServer-16.1.

Comme j’ai un site à migrer, j’ai décidé de mettre à jour EasyPHP sur mon ordinateur pour commencer avec les versions récentes de PHP, Apache, MySQL. Peut-être que je ne devrais pas avoir … l’icône TaskBar et l’interface d’administration ont changé, rien ne fonctionne comme avant.

Mais je suis têtu et je veux que ça marche. J’essaie donc de faire tourner quelque chose et ce n’est pas le cas. Voici les symptômes, très proches de ceux de Richard:

Essayer de démarrer Apache 2.4.18, en choisissant PHP 7.0.2. Cliquez sur le bouton vert “Démarrer”, il devient un bouton rouge “Stop”. Tout va bien? Nan. En cliquant sur le bouton “Erreur journal”, la page revient à l’état précédent avec le bouton vert “Démarrer” et rien dans le journal des erreurs.

OK, alors j’ai choisi PHP 5.6.17 et cliquez sur “Démarrer”. J’ai des popups revendiquant par exemple “bz2: Impossible d’initialiser le module. Module compilé avec le module API = 20131226. PHP compilé avec le module API = 20121212. Ces options doivent correspondre.”

Le bouton devient rouge “Stop”, et en cliquant sur le bouton “Error log”, vous obtenez cette sortie:

PHP Warning: PHP Startup: bz2: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: gd: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: mbssortingng: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: mysql: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: mysqli: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: sockets: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: sqlite3: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 PHP Warning: PHP Startup: xsl: Unable to initialize module\nModule comstackd with module API=20131226\nPHP comstackd with module API=20121212\nThese options need to match\n in Unknown on line 0 [Mon Feb 22 16:51:45.788809 2016] [mpm_winnt:notice] [pid 3292:tid 236] AH00455: Apache/2.4.18 (Win32) PHP/5.6.17 configured -- resuming normal operations [Mon Feb 22 16:51:45.789809 2016] [mpm_winnt:notice] [pid 3292:tid 236] AH00456: Apache Lounge VC11 Server built: Dec 11 2015 11:26:53 [Mon Feb 22 16:51:45.789809 2016] [core:notice] [pid 3292:tid 236] AH00094: Command line: '..\\eds-binaries\\httpserver\\apache2418x160222160722\\bin\\eds-httpserver.exe -d C:/BIN/EasyPHP-Devserver-16.1/eds-binaries/httpserver/apache2418x160222160722' [Mon Feb 22 16:51:45.797809 2016] [mpm_winnt:notice] [pid 3292:tid 236] AH00418: Parent: Created child process 2568 Xdebug requires Zend Engine API version 220131226. The Zend Engine API version 220121212 which is installed, is outdated. 

Comme Apache semble fonctionner, je lance ensuite MySQL. Ensuite, j’essaie d’exécuter PHPMyAdmin. Voici le message résultant:

 phpMyAdmin - Error The mbssortingng extension is missing. Please check your PHP configuration. 

Bien sûr, puisque cette extension n’a pas réussi à être initialisée!

Alors, voici mes questions complémentaires à celles de Richard:

  1. Qu’est-ce qui peut empêcher Apache de lancer ou d’écrire un journal en choisissant PHP 7.0.2?
  2. Qu’est-ce qui peut empêcher Apache d’initialiser les modules lors du lancement avec PHP 5.6.17?

Merci pour tout indice,

Seagram


Bonjour encore,

Je me suis trouvé une réponse à la question 2 qui pourrait intéresser les autres:

Lorsque j’ai installé EasyPHP-DevServer-16.1, je n’ai pas désinstallé EasyPHP-DevServer-14.1VC11. Afin d’avoir un autre développement il y a quelques mois, j’ai modifié ma variable d’environnement PATH pour qu’elle pointe vers l’exécutable php de cette version.

Maintenant, j’ai supprimé cette référence de chemin dans la variable PATH. Je suis également sorti de l’icône EasyPHP TaskBar. CECI EST IMPORTANT pour que cet outil oublie l’ancienne valeur de PATH. Puis je l’ai redémarré, cliqué à nouveau sur DashBoard et lancé Apache.

Maintenant, Apache démarre correctement avec PHP 5.6.17 et le fichier journal des erreurs ne contient que:

 [Mon Feb 22 17:16:20.295146 2016] [core:warn] [pid 6652:tid 236] AH00098: pid file C:/BIN/EasyPHP-Devserver-16.1/eds-binaries/httpserver/apache2418x160222160722/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Feb 22 17:16:20.313147 2016] [mpm_winnt:notice] [pid 6652:tid 236] AH00455: Apache/2.4.18 (Win32) PHP/5.6.17 configured -- resuming normal operations [Mon Feb 22 17:16:20.313147 2016] [mpm_winnt:notice] [pid 6652:tid 236] AH00456: Apache Lounge VC11 Server built: Dec 11 2015 11:26:53 [Mon Feb 22 17:16:20.313147 2016] [core:notice] [pid 6652:tid 236] AH00094: Command line: '..\\eds-binaries\\httpserver\\apache2418x160222160722\\bin\\eds-httpserver.exe -d C:/BIN/EasyPHP-Devserver-16.1/eds-binaries/httpserver/apache2418x160222160722' [Mon Feb 22 17:16:20.321147 2016] [mpm_winnt:notice] [pid 6652:tid 236] AH00418: Parent: Created child process 4052 [Mon Feb 22 17:16:20.895180 2016] [mpm_winnt:notice] [pid 4052:tid 316] AH00354: Child: Starting 64 worker threads. 

Cependant, avec PHP 7.0.2., Apache continue de ne pas démarrer et ne trace rien dans le journal des erreurs.

Il manque quelque chose …