php-architecture on the Azure Web site

Source: Internet
Author: User
Tags classic asp

Azure is an open and flexible platform. You can choose the most appropriate or best-suited language (including ASP. NET, PHP, node. js, Python, and classic ASP) to create an azure Web-based application. In the next few articles, we'll discuss PHP on the Azure Web site.

First, we discuss the architecture of PHP on the Azure Web site.

Describes the schema of PHP on the Windows Azure Web site. The schema is not different from the PHP configuration on local IIS.


The processing flow for PHP requests is as follows:

1. Client HTTP request arrives at HTTP. SYS (the kernel module that handles the request)
2. HTTP requests are forwarded to the site's worker process W3WP.EXE
3. The IIS fastcgi module is responsible for handling PHP requests.
4. Depending on the situation, the FastCGI module initiates a new php-cgi.exe and forwards the request to the new php-cgi.exe, or forwards the request to an existing php-cgi.exe. The communication between fastcgi and Php-cgi.exe takes a named pipe.
5. php-cgi. EXE handles PHP requests and returns the results to the FASTCGI module
6. The final response is sent back to the client via HTTP. sys.

When you deploy PHP on an azure Web site, you need to be aware of the following things:

1. The Azure Web site is enabled by default and PHP can be turned off by the admin portal if PHP is not required.
2. The Azure Web site does not allow customers to modify PHP's system-level settings.
3. The Azure Web site currently supports the PHP 5.3,5.4,5.5 version, and we will discuss how to configure other versions in subsequent articles.
4. The Azure Web site currently supports only 32-bit PHP. In the Administration portal site, set the site to 64-bit mode, just set the W3WP.EXE to 64-bit. Php-cgi.exe is still 32 bits.
5. php-cgi. The number of instances of EXE is determined automatically by the FastCGI module based on load and machine resource conditions.

In the next article we will discuss how to configure PHP on the Azure Web site.

php-architecture on the Azure Web site

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.