1,aliyun控制台配置
1)域名解析 域名->域名列表->解析>添加解析(注意记录ip,考虑是否有负载均衡,若无使用真实ip,若有可使用虚拟ip)
2)数据库设置 云数据库->列表->管理->创建数据库和账号并关联和指定权限
2,代码相关
切换到PHP访问目录,比如,/alidata/test/www
1)获取代码:a,ftp上传,b,通过svn拉去 svn checkout svn://120.xx.xx.xx/demo
2 ) 配置域名:/alidata/server/httpd/conf/vhosts/ 新建demo.conf
<VirtualHost *:80>
ServerAdmin webmaster@qq.com
DocumentRoot "/test/www/demo/frontend/web"
ServerName demo.com
DirectoryIndex index.php
<Directory /test/www/demo/frontend/web>
LimitRequestBody 1024000000
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog "/alidata/log/httpd/demo/demo_front/error.log"
CustomLog "/alidata/log/httpd/demo/demo_front/access.log" common
</VirtualHost>
3 ) 新建log文件夹及文件
/alidata/log/httpd/demo/demo_front/error.log
/alidata/log/httpd/demo/demo_front/access.log
4) 更改相关目录权限 chmod -R 777 test/
5 ) 重启服务器 /etc/init.d/httpd restart
3,导入数据库
备注:若文件夹中.svn ,可用find . -type d -name ‘.svn’ | xargs rm -rf删除
配置完成服务器无法重启,检查证书是否正确error.log、access.log是否正确建立,注意mkdir 和 touch的使用