by Steve Marx via Steve Marx's blog on 4/20/2010 9:57:36 PM
One of the things you can do with the Hosted Web Core Worker Role I blogged about earlier is to specify the full range of FastCGI settings, including those recommended by the IIS team. This goes beyond the settings that are allowed in web.roleConfig.
web.roleConfig
I’ve added a download to the Hosted Web Core Worker Role code over on Code Gallery that adds the following FastCGI settings to applicationHost.config:
applicationHost.config
<fastCgi> <application fullPath="{approot}\php\php-cgi.exe" maxInstances="4" instanceMaxRequests="10000" requestTimeout="180" activityTimeout="180"> <environmentVariables> <environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" /> </environmentVariables> </application> </fastCgi>
The PHP project also includes a sample web site with a web.config that configures index.php as a default document and registers the PHP FastCGI handler for files with the .php extension. To use the PHP project, you’ll need to download the latest binaries from php.net and add them under the php folder. Make sure there’s a php.ini file in the root of that folder.
web.config
index.php
.php
php
php.ini
To learn more about running PHP in Windows Azure, read “Using 3rd Party Programming Languages via FastCGI” from the Windows Azure blog.
Original Post: Changing Advanced FastCGI Settings for PHP Applications in Windows Azure
The content of the postings is owned by the respective author. AzureFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on AzureFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.