PHP on Azure website? Architecture

Source: Internet
Author: User
Tags classic asp
PHP on Azure website? Architecture Azure is an open and flexible platform. You can select the most suitable or best-practice language (including ASP. NET, PHP, Node. js, Python, and Classic ASP) to create applications based on the Azure website. In the subsequent articles, we will discuss PHP on the Azure website.

First, we will discuss the PHP architecture on the Azure website.

Describes the PHP architecture on the Windows Azure website. This architecture is not different from the PHP configuration on the local IIS.


The PHP request processing process is as follows:

1. the client's HTTP request arrives at HTTP. SYS (the kernel module that processes the HTTP request)
2. the workflow W3WP. EXE that the HTTP request is forwarded to the website
3. the iis fastcgi module processes PHP requests.
4. depending on the situation, the FASTCGI module starts a new PHP-CGI.EXE and then forwards the request to the new PHP-CGI.EXE; or forwards the request to an existing PHP-CGI.EXE. The communication between FASTCGI and the PHP-CGI.EXE adopts the named pipe.
5. the PHP-CGI.EXE processes PHP requests and returns the results to the FASTCGI module
6. the final response is sent back to the client through HTTP. SYS.

Note the following when deploying PHP on the Azure website:

1. by default, PHP is enabled for Azure websites. if you do not need PHP, you can disable the PHP function through the management portal.
2. the Azure website does not allow users to modify the PHP system-level settings.
3. the Azure website currently supports PHP 5.3, 5.4, and 5.5. we will discuss how to configure other versions in subsequent articles.
4. the Azure website currently only supports 32-bit PHP. On the management portal, set the website to 64-bit, but set W3WP. EXE to 64-bit. The PHP-CGI.exe is still 32-bit.
5. the number of instances of the PHP-CGI.EXE is automatically determined by the FASTCGI module based on the load and machine resources.

In the next article, we will discuss how to configure PHP on the Azure website.

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.