Main Tutorials

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

Run php-cgi.exe and hits a pop up dialog showing the following error message :


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

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

Tested with PHP 7.1.10 on Windows 10

Solution

To run PHP on Windows, you need to install Redistributable for Visual Studio, refer to the official PHP download website, for example, if you downloaded the “PHP VC14 build” zip file, you need to install Visual C++ Redistributable for Visual Studio 2015.

References

  1. PHP For Windows

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Alex
5 years ago

Thanks for sharing this information. I had tried using nginx for windows. No problem in php 7.2 which I had install as package on XAMPP. But when I was trying with php 5.6 (both thread and non thread) which I downloaded separately from official php site, I encountered this error when running this php-cgi.exe.
I am going to download the required redistributable file.

Aduqq
6 years ago

nice tutorial broo keep it up