Home > Backend Development > PHP Tutorial > Windows azure 上运行PHP

Windows azure 上运行PHP

WBOY
Release: 2016-06-23 14:33:02
Original
1104 people have browsed it

Windows azure 发布好一段时间了,Fast CGI 的支持,使得Php也可以跑在上面。
Copy after login

[更多信息可以访问 http://phpazure.com/]

通过以下几步简单的配置,您的php就可以发布到云端了。

1. ServiceDefinition.csdef


 
   
     
   

   
     
   

 

2. Web.config

在 system.webServer  的 handlers 节点中添加如下代码

              scriptProcessor="%RoleRoot%\approot\php\php-cgi.exe"
              resourceType="Unspecified" />

[假定您的php相关文件放在了项目跟目录/php中]

3. Web.roleconfig


 
   
     
   

 

4. 当然 您的php相关文件 得作为content 放到项目里面,一起发布。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template