php-cgi.exe - L’application n’a pas pu démarrer correctement

php-cgi.exe – The application was unable to start correctly

Exécutezphp-cgi.exe et affiche une boîte de dialogue contextuelle affichant le message d'erreur suivant:

Application Error : The application was unable to start correctly (0xc000007b)

Terminal

c:\php7.1>php-cgi.exe -b 127.0.0.1:9123

Testé avec PHP 7.1.10 sur Windows 10

Solution

Pour exécuter PHP sous Windows, vous devez installerRedistributable for Visual Studio, reportez-vous auxofficial PHP download website, par exemple, si vous avez téléchargé le fichier zip «PHP VC14 build», vous devez installer Visual C ++ Redistributable pour Visual Studio 2015.

image

Références