Have a website I'm trying to deploy. MVC2 website contains 1 virtual directory 'blog' with ASP.NET app and 1 subdirectory 'qa' with PHP app.
Web-app works fine. Virtual directory is fine as well. 'php' folder contains php distribution. The PHP app is returning the above error. Any advice? Many thanks!
Relevant info from .csdef:
<WebRole name="webrole1" enableNativeCodeExecution="true">
<VirtualApplication name="blog" physicalDirectory="..\webrole1\blog"/>
<Binding name="HttpsIn" endpointName="HttpsIn" />
<Binding name="HttpIn" endpointName="HttpIn" />
Relevant info from web.config:
<add name="FastGGI Handler" verb="*" path="*.php" scriptProcessor="%RoleRoot%\approot\php\php-cgi.exe" modules="FastCgiModule" resourceType="Unspecified" />
> <handler> scriptProcessor could not be found in <fastCGI> application configuration
The issue has been described in
How to fix HTTP 500 Internal Server Error in CGI Web Role when using Azure Cloud Tools 1.3. The cause is that we need to configure a fast cgi application in IIS before using it in handler mapping. Unfortunately, the workaround is to
use HWC (Hosted Web Core) mode by commenting out the Sites element but you are relying Full IIS to host multiple web sites in a web role.
So you may need to use another apporach to install PHP instead of adding a handler in web.config. Please refer to:
Installing PHP on Windows Azure leveraging Full IIS Support: Part 1
Installing PHP on Windows Azure leveraging Full IIS Support: Part 2
Installing PHP on Windows Azure leveraging Full IIS Support: Part 3
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?