IIS8 uses FastCGI to configure the PHP environment support process details, iis8fastcgi

Source: Internet
Author: User

IIS8 uses FastCGI to configure the PHP environment support process details, iis8fastcgi

 

I used Apache HTTP + PHP to configure some servers in the PHP environment for my friends. Today, I recommend IIS + PHP configuration to everyone ~ Haha.

 

Here, I am configuring FastCGI module ing, and of course there is also ISAPI handler ing. However, the ISAPI method is no longer available after PHP5.5, and FastCGI is a recommended method, the efficiency is relatively high and stable.

I use my own laptop, Windows 8.1 and IIS 8. Of course, Windows Server is the same. Just do it.

 

Demo environment:

  • Windows 8.1
  • IIS 8
  • PHP 5.6.4

 

Process:

 

 

1. enable the system's IIS Platform

It seems that IIS is disabled by default in other systems except Windows Server, and must be enabled manually.

Open the uninstall program panel, click "open or close Windows function" on the left, and then open the "Windows function" window:

"Non Thread Safe" is a Non-Thread security version, and "Thread Safe" is a Thread security version.

FastCGI executes operations in a single thread, so it does not need to perform thread security checks. Apart from thread security checks, protection can improve the execution efficiency. This time we configured it through FastCGI, so we chose the "Non Thread Safe" version environment, x86 is 32-bit, x64 is 64-bit, which is unnecessary.

 

My system is Windows 8.1 x64, so here I select "VC11 x64 Non Thread Safe (00:02:02)", click to download, after downloading it here, I decompress it to the "C: \ PHP5" directory.

 

 

 

3. Configure the PHP Environment

Go to the decompressed PHP Directory. My name is "C: \ PHP5. copy the ini-development file and rename it to "php. ini ", which is used as the configuration file of the php environment.

Open and edit in notepad, search for "date. timezone", find "; date. timezone =", and edit it to "date. timezone = Asia/Shanghai, as follows:

Remove the following:

1 <? Php2 phpinfo (); 3?>

Then, visit "http: // localhost/index. php" to view the PHP information page:

 

 

 

 

Now, all configurations are complete! Haha.

 

Because the previous PHP environment was installed in the msi version, the system environment will be automatically installed online if something is missing, you can also manually configure the interface, but now it is decompressed, so, sometimes some problems may occur, but they are all minor problems. There are many problems on Baidu.

For example, a common problem is that php.exe cannot be run or has no access permission, that is, the system needs to install "Visual C ++ Redistributable for Visual Studio 2012 Update 4 (x64) and Visual C ++ Redistributable for Visual Studio 2012 Update 4 (x86 )".

 

 

If you forget to write something, please leave a message to describe it. If you cannot find any software, you can leave a message. I have uploaded all the software to the network disk.

 

 

Okay, it's not easy to code the word. I think it's good. Remember to give it a thumbs up ~ Haha.

 

Related Article

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.