How to configure the use of PHP in Windows Azure

Source: Internet
Author: User
Tags php website azure sdk

PHP (PHP training PHP tutorial) is perhaps the most popular language in the current web development community, so the "use of PHP in Azure" issue has attracted a lot of attention, the mention of Azure support "FastCGI" a lot of news coverage, With little mention of how to configure PHP in Azure, this article will demonstrate ...

At the Microsoft MIX09 Conference, Windows (Windows Training) Azure released its 3rd version of--match CTP. Starting with this release, Windows Azure begins to support fastcgi. Supporting fastcgi means supporting the currently popular "non-Microsoft" Web applications such as PHP, Ruby, Python, and so on. We are delighted to see Azure Services platform Take the first step toward an "open platform".

PHP is perhaps the most popular language in the Web development community, so the question of "using PHP in Azure" has attracted a lot of attention, with the mention of Azure support for "FastCGI" a lot of news coverage, but little mention of how specifically to configure PHP in Azure. Even in the new version of the Azure SDK, the sample about fastcgi is not PHP.

Don't worry, in this article, the Stream Bull Trojan will demonstrate the most detailed process for using PHP in Azure.

(demo:http://ibm.cloudapp.net/php.php deployed to the cloud)

The first step you have to know is some basic knowledge about php&fastcgi.

FastCGI's official website: http://www.fastcgi.com/

PHP fastcgi mode: http://www.blogme.cn/node/6529

The second step is to enable the FastCGI module in your IIS7.

Note: The local debug environment is required. If you plan to deploy directly to the cloud, you don't need this step. 】

(for example, in the Chinese version of Vista Ultimate:)

Open Control Panel and go to "turn Windows features on or off"

Enable the following modules (part of the red box in the figure)

  

Download and install the latest fastcgi module: http://support.microsoft.com/kb/967131

The third step is to download a "xcopy-deployable" version of PHP.

The word "xcopy-deployable" comes from official Microsoft documents, but unfortunately, in PHP's official website http://php.net/, we have not found the word, according to the meaning of understanding: You can directly copy the PHP version of the deployment. In layman's words, there is no need to install.

To the Download center of the official PHP website: http://www.php.net/downloads.php, find the "Zip package" of the latest version number in the Windows binaries section. For example, now the latest version of PHP is March 10, 2009 5.2.9-1,:http://cn2.php.net/get/php-5.2.9-1-win32.zip/from/a/mirror

Fourth step, create a new web Cloud service project.

Fifth step, configure the service Definition file (servicedefinition.csdef).

Note: The enablenativecodeexecution= "true" property needs to be added under the Webrole node

Sixth step: Configure FastCGI and PHP

Unzip the xcopy-deployable PHP compression package just downloaded to the PHP subdirectory of the Webrole project.

  

How to configure the use of PHP in Windows Azure

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.