【发布时间】:2012-05-01 20:02:51
【问题描述】:
我正在尝试运行一个使用 blob 存储的天蓝色应用程序。 我尝试使用以下示例套件: https://github.com/Interop-Bridges/Windows-Azure-Sample-Kit-4-PHP/tree/master/GuestBookUsingBlobs (我在 index.php 中更改了存储帐户和密钥)
所以我的问题是,在我将它部署到 azure 后,我收到 500 个内部服务器错误,但是在 localhost 上它工作正常!
怎么了? 谢谢!
(一个简单的 phpinfo() 文件在 azure 中也可以正常工作)
<?xml version="1.0"?>
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<defaultDocument>
<files>
<clear/>
<add value="index.php" />
</files>
</defaultDocument>
<staticContent>
<remove fileExtension=".svg" />
<remove fileExtension=".eot" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
</staticContent>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
在更改的 web.config 之上
我用这个进行部署:http://rhizohm.net/irhetoric/post/2011/04/18/How-To-Do-PHP-Deployment-To-Windows-Azure.aspx
【问题讨论】:
-
你应该看看微软发布的官方 PHP on Windows Azure 教程。它们展示了如何设置 SDK、运行示例项目以及如何部署您的应用程序。 azurephp.interoperabilitybridges.com/tutorials