IIS configuration PHP

Source: Internet
Author: User
Tags configuration php

Configuring PHP on the server today appears in the following issue: "HTTP error 500.0-internal Server error,c:\php\php-cgi.exe-fastcgi process quits unexpectedly", here's how this problem is solved

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

Do not restart the computer after installation to re-enter PHP-V

Run the PHP program again

OK success

IIS configuration PHP

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.