IIS "HTTP error 500.0,c:\php\php-cgi.exe-fastcgi Process quits unexpectedly" workaround

Source: Internet
Author: User

Yesterday to introduce you to the platform on the Windows+iis to build support Php+mysql platform of the article, the tutorial steps are the author of an operation and then a record introduced to everyone, the actual machine walkthrough, the tutorial is absolutely practical, but different students in different environments according to the steps to operate, More or less there will be such problems, such as many students often encounter problems: "HTTP error 500.0-internal Server error,c:\php\php-cgi.exe-fastcgi process unexpectedly quit", has been plagued by a lot of people, Since this problem is more prominent, then today is also the United States Network small series on hand to teach everyone to solve the problem thoroughly.

1, the primary cause of this problem is the configuration of PHP, so to solve this problem will be tested from the PHP environment configuration.

For example, if our PHP path is c:\php, then we can open the run and check the PHP configuration problem by php-v command:

First, enter PHP directory CD c:\php at the command prompt

then enter PHP-V

Normally, when you execute the command, the content appears as shown:

However, if there is a problem with the configuration of the PHP environment, this will happen:

The main cause of this problem is the configuration issues that are placed on the C:\windows\php.ini file:

First we open the php.ini, find the Extension_dir, notice that there are two extension_dir, we are looking for the one under Windows.

One is to check the ";" in front of Extension_dir. The number is removed;

The second is to see if the path after Extension_dir is filled out correctly, for example, if my php path is c:\php, then this can be written as c:\php\ext or c:/php/ext or in double quotation marks.

Third, the detection of Extension=php_gd2.dll, Extension=php_mbstring.dll, Extension=php_mysql.dll, Extension=php_mysqli.dll, Extension=php_pdo_mysql.dll in front of the ";" Whether the number has been removed.

If these problems are excluded, then the question raised at the beginning of the text should be solved.

2, some students in the implementation of the PHP-V command, will encounter the prompt "cannot start this program, because the computer lost MSVCP110.dll."

Encountered this situation is because the PHP execution program is based on the VC + + 11 Runtime development run, and your computer is not installed VC + + 11. What is the VC + + 11 version?

This is the Microsoft Visual C + + Redistributable 2012 or 2013 runtime, to solve this problem, download and install the corresponding version on the following address:

32-bit Microsoft Visual C + + Redistributable 2012 Downloads: http://download.microsoft.com/download/9/C/D/ 9cd480dc-0301-41b0-aaab-fe9ac1f60237/vsu4/vcredist_x86.exe

64-bit Microsoft Visual C + + Redistributable 2012 Downloads: http://download.microsoft.com/download/9/C/D/ 9cd480dc-0301-41b0-aaab-fe9ac1f60237/vsu4/vcredist_x64.exe

(www.zyku.net)

Original link: http://www.zyku.net/iis/202.html

IIS "HTTP error 500.0,c:\php\php-cgi.exe-fastcgi Process quits unexpectedly" workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.