Azure网站上的PHP ? 架构
Azure是一个开放而灵活的平台。您可以选择最适合或者最擅长的语言(包括 ASP.NET、PHP、Node.js、Python 和经典 ASP)创建基于Azure网站的应用程序。在随后的几篇文章中,我们将讨论Azure网站上的PHP。
首先,我们讨论Azure网站上PHP的架构。
下图描述了Windows Azure网站上PHP的架构。该架构与本地IIS上的PHP配置并无不同。
PHP请求的处理流程如下:
1. 客户端HTTP请求到达HTTP.SYS(处理HTTP请求的内核模块)
2. HTTP请求被转发到网站的工作进程W3WP.EXE
3. IIS FASTCGI模块负责处理PHP请求。
4. 根据具体情况,FASTCGI模块启动一个新的PHP-CGI.EXE,然后将请求转发到新的PHP-CGI.EXE;或者将请求转发到一个现有的PHP-CGI.EXE。FASTCGI与PHP-CGI.EXE之间的通信采用命名管道。
5. PHP-CGI.EXE处理PHP请求,将结果返回给FASTCGI模块
6. 最终响应通过HTTP.SYS发回客户端。
在Azure网站上部署PHP时,您需要注意下面的事项:
1. Azure网站默认启用PHP,如果不需要PHP可以通过管理门户网站关闭PHP功能。
2. Azure网站不允许客户修改PHP的系统级别设置。
3. Azure网站目前支持PHP 5.3,5.4,5.5版本,我们会在后续的文章中讨论如何配置其它版本。
4. Azure网站目前只支持32位PHP。在管理门户网站将网站设置为64位模式,只是将W3WP.EXE设置为64位。PHP-CGI.exe仍然是32位。
5. PHP-CGI.EXE的实例数目由FASTCGI模块根据负载和机器资源情况自动决定。
下一篇文章我们将讨论如何配置Azure网站上的PHP。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Alipay PHP...

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
