FastCGI easily handles IIS7.5 + PHP5.6.0 Environments

Source: Internet
Author: User

FastCGI easily handles IIS7.5 + PHP5.6.0 Environments

Suddenly, I thought that I had been using the Apache + php mode. I want to know the IIS + php mode. Let's say it's a 9-18 bend!

FastCGI is like a long-live CGI. It can be executed all the time. Once activated, it will not take time to fork every time. It also supports distributed operations, that is, FastCGI programs can run on hosts other than website servers and receive requests from other website servers.

FastCGI has the advantages of stability, security, high performance, and convenient scalability.

A high-concurrency and high-performance FastCGI framework can be built using nginx, spawn-fcgi, and fcgi. This article will analyze the process of building the framework.

PHP FastCGI enables all your php applications to run through mod_fastci instead of mod_phpsusexec. FastCGI applications are fast because they are persistent and stable. You do not have to start or initialize each request. This makes application development possible. Otherwise, it is impractical in the CGI example (for example, a large script or an application that needs to connect to one or more databases ).

Part 1: ISAPI. dll extension

According to the information above, I cannot find an isapi. dll. Only nsapi. dll can be found. The last check will show that php5.3 will not support this method.

Php5.3 cannot run on IIS6 through ISAPI extension, and php5.3isapi is not available in the php5.3 file. dll, replaced by php5.3nsapi. dll, in other words, PHP and later versions will no longer use ISAPI extension to run in IIS, and can only be executed in FastCGI Mode

Part 2: I continued to search for a bunch of FastCGI documents on the Internet and followed the php tutorial, but I couldn't find what I said.

"After installation, five files are generated in the C: \ WINDOWS \ system32 \ inetsrv directory. For example"

It's really depressing, and more interesting, I download the "web platform installer" according to a blogger's detailed instructions. url: http://www.iis.net/downloads/microsoft/fastcgi-for-iis

I was prompted during installation:

I have wiped and retried it five times, and I still tested it on the virtual machine, with the same results. Finally, I tried to search for FastCGI. After the result is displayed, the 10 steps are shown below:

1. Microsoft's 'web platform installation' address: http://www.iis.net/downloads/microsoft/fastcgi-for-iis

2. Here I am IIS7. Click Web PI to go to the following page.

3. Click to download FastCGIIIS6.exe.

4. The product we tried to download does not exist,

5. It doesn't matter. Let's search for FastCGI.

6. Then the sequencing will automatically download and install it. After the installation is complete, right-click my computer and choose manage> Internet Information Service (IIS) manager.

7. Click FastCGI settings

8. Go to the directory to view

9. Create a New phpinfo. php file.

Phpinfo ();

?>

10. Access http: // localhost/phpinfo. php or http: // 127.0.0.1/phpinfo. php

Okay, you're done!

Writing this article may not have much technical content, but it may be helpful for colleagues who may make the same mistake as me, because with the development of php, IIS has begun to pay attention to it, in the past, IIS may only support it. Now Microsoft is interested in imaging many integrated environments. Therefore, some original IIS + PHP tutorials on the Internet may sometimes confuse our new users. Here I will post my experiences, I hope I can help my colleagues.

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.