Google AppEngine上部署PHP应用

现在GAE已经支持java了,但不幸的是PHP任然毫无音讯。但是我们在google官方支持PHP之前我们可以使用基于java的QuercusQuercus基本上可以100%的支持PHP语言(需要JDK1.5)。

现在我们开始用GAE运行PHP:

1) 注册一个免费的GAE帐户 。

2) 下载此文件到您的计算机(如果连接失效大家可以搜索phpwithgae便可以下载到它,如还不行就给我留言吧。)。

3) 修改war\WEB-INF\appengine-web.xml ,将phpwithgae换成你自己的GAE名字。

<?xml version="1.0" encoding="utf-8"?>

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">

<application>phpwithjava</application>

<version>1</version>

<!-- Configure java.util.logging -->

<system-properties>

<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>

</system-properties>

<!-- For PHP-Support -->

<static-files>

<exclude path="/*.php" />

</static-files>

<resource-files>

<include path="/**.php" />

</resource-files>

</appengine-web-app>

4) 最后上传您的程序 。