下载地址:下载:http://trackself.sinaapp.com/drupal6forsae.rar (改动了原drupal的install相关)
个人认为:SAE在PHP性能是很强大,非常快,快到不可思议。
by:http://www.trackself.com
2011-10-6
文件:http://trackself.sinaapp.com/drupal6forsae.rar
将文件中的所有内容解压上传到sina app engine(SAE)中,关于SVN等应用请到sae官网查询
(drupal7:http://drupal7sae.sinaapp.com/)
[安装:]
1.先申请一个sae:http://sae.sina.com.cn/activity/invite/44638/weibo
2.创建一个APP,例如这个APP叫trackself
3.在这个APP的管理页面打开MYSQL功能,设置完毕
4.上传解压文件至SAE(前段时间公布的安装包中还包含着SVN信息,不好意思了,让安装造成不便 ,现已经重新svn export出来,方便大家上传了)
与常规的drupal安装只有一丁点不同
例如你的域名为:http://trackself.sinaapp.com/ (这是我的第一个drupal6应用,测试用户名)
1.直接访问:http://trackself.sinaapp.com/install.php, 余下的步骤与drupal安装一致(官方的drupal只需要访问首页,这里是程序的一点点不同)
2.安装结束后请删除install.php , 这其实也是drupal官网的建议
[更新:]
drupal 6我除了改动了install相关的文件,其余没改,就是说我100%没hack core,可以正常更新版本,当然,如果我知道drupal更新版本了的话,我也会更新这个源文件的,到时重新下载就行
[伪静态:]
即将?q=node/1这样的URL变为直接/node/1.
就目前而言,SAE似乎是不支持.htaccess的转向的。
但可以根据各自的应用名称,参考下面的官方做法,在SVN中上传一个叫conf.yaml的文件去实现
http://sae.sina.com.cn/?m=devcenter&catId=193
注:我测试了上面的做法,没成功,我暂时也没有这个伪静态的需求。请测试成功伪静态态的告之一声做法
[email和找回密码功能:]
SAE的管理界面上的原文:"SAE邮件class , 目前只支持SMTP",意,思是他不直接支持php的mail函数,就是drupal内核email是不支持的.
可以安装一个drupal的smtp模块解决(注:此模块非常消耗性能,我有切身体会,所以在移植过程中我就没装上了)
1.正如官方drupal在用户的PC机测试安装一样,官方的drupal也是不能发送email的,这是因为用户本机上没有配置好发送email的程序
2.SAE默认也是没有配置好email的,我的意思是他不直接支持php的mail函数,就像是你在本机测试没有安装好邮件发送客户端一样。解决办法是:安装drupal的smtp模块,这与官方提供的模块安装一致,与是否SAE环境无关,所以只是提提了。drupal默认也是没有将smtp模块放在core上的,在以后我改一个profile,帮大家在安装时也能填上自己的email,就能直接解决这个问题了,现在还是暂时自己手动下载drupal.org上的smtp模块然后手动安装吧.
3.所以,找回密码功能:你得配置好email才有可能找回密码啊,对吧。
4.在不久的将来,我会将文件上传,中文化,email,一并搞定...这段时间读博课程太重了。
[模块:]
不需要php write的模块估计都是可以安装成功的。
[debug:]
近日有朋友说安装不成功:请先用SVN的版本浏览器或sae的网上代码编辑器查看一下,解压是否完整,是否上传过程中缺少文件,特别是install.php
[待解决问题:]
1.email:我没看明白SAE上的“请申请一个专为SAE配置的EMAIL”这句话,我也找不到申请地址,否则我会将drupal的邮件模块也hack掉的,不过我自己并不需要sae上的drupal能对外发邮件。你要是需要的话,我建议下载一个模块:SMTP
2.中文化及其他模块测试。。。时间问题
[建议:]
1.其实用drupal 6不错麻,至少我没hack core,你可以100%放心使用,目前我用drupal 6也没遇到任何问题
2.有问题请加我新浪微博:http://weibo.com/trackselfcom, 或到我博客http://www.trackself.com/archives/1757.html
[后话:]
sae上跑drupal很快,快到我想象不了,所以,没必要安装drupal的一些性能模块了,默认即可
boost即便安装了也用不到
drupal默认的压缩CSS和JS的功能也不能用,因为SAE是没有写文件的权限的
这也许能通过重写fwrite来解决问题,但个人感觉没必要,因为现在已经很快了。
若有疑问: http://www.trackself.com/archives/1757.html
introduce a high performance free hosting (for drupal)--sae---a GAE like China project , i just finished deploy drupal 6 there
[English versions:]
ok , example first to prove that i am telling the truth : http://trackself.sinaapp.com/
[background:]
1.SAE: sina app engine , belong to sina.com (China), it's a service like google app engine ,but provide PHP hosting and mysql hosting and more! well , i think it's better than GAE, because i only know php but not python/java. It declare itself cloud service. And better than GAE, it use SVN.
2.Since it offer php and mysql hosting , drupal can be hosted. But a little hack to install.php , nothing more hack
[Join:]
http://sae.sina.com.cn/activity/invite/44638/weibo , firstly you have to go the the invite page to get yourself an account of sae.
sorry , the invite page is total Chinese , but i think you could manage it, just click button if you see one , or use google translate for help.
[drupal6:]
1.download http://trackself.sinaapp.com/drupal6forsae.rar , this file is the drupal6 , i hack the install.php to make drupal 6 suitable in sae. if you don't trust me , just do a diff after you downloaded it. You won't be able to install drupal6 using drupal.org's origin drupal, thus need the hack.
2.decompression and upload the source file to sae using SVN
3.create an app via the control panel of sae , and then active mysql usage (default not acitve).
3.visite http://your-app-domain/install.php for installation and then delete this install file (this is the only different, you don't have to config the mysql username).
all done.
need help? comment to http://www.trackself.com/archives/1757.html
( sorry,my english is poor,but i still would like to share with you)