AsiaTech: Microsoft APGC Internet Developer Support Team

We focus on various troubleshooting plan and solution on IIS web platform and distributed applications

Using a Custom FastCGI Handler on Windows Azure Web Sites

Using a Custom FastCGI Handler on Windows Azure Web Sites

Rate This
  • Comments 1

 

WAWS supports PHP by default, and it allows you to configure your own FastCGI as well. Below is the details about how to deploy it.

1. Deploy your FastCGI executable to the WAWS web site. For example, upload it to the “bin” folder of your web site.
2. Create an ASP file that contains the following content.
 
<%
 Response.Write "<font color=red>" & Request.ServerVariables("APPL_PHYSICAL_PATH") & "</font>"
%>

 
3. Upload the ASP file to your web site's content folder and open it in IE. You should see the root path of the web site in IE.

·        For Azure environment, at this moment, it is:

C:\DWASFiles\Sites\YourSiteName\VirtualDirectory0\site\wwwroot\

·        For an on-premise environment, at this moment, it is

C:\inetpub\temp\DWASFiles\Sites\YourSiteName\VirtualDirectory0\site\wwwroot\

4. Logon to the management portal and navigate to your web site's dashboard.
5. Click the Configuration tab and scroll down to the bottom. Locate the Handler Mappings section.
6. In the Extension box, type the file extensions that should be processed by your FastCGI. In the Script Processor Path box, type the FastCGI executable's full path. For example, “C:\DWASFiles\Sites\YourSiteName\VirtualDirectory0\site\wwwroot\bin\FastCGI.exe”
7. Save the configuration.

 Regards,

Wei Zhao from APGC DSI Team

Leave a Comment
  • Please add 6 and 8 and type the answer here:
  • Post
  • Does WAWS with PHP 5.4 have FastCGI and pre-emptive opcode cache enabled by default (not a CUSTOM Handler)? Where can I check this?

Page 1 of 1 (1 items)