一、LAMP:
windows下 http://www.wampserver.com/下载wamp一键安装。
ubuntu下:
1.安装:
1.Ctrl+Alt+T打开终端
2.sudosu进入root权限
3.apt-getinstall apache2 mysql-server mysql-client php5 php5-gd php5-mysql
4.chmod777 /var/www/
5.apt-getinstall phpmyadmin
2.配置:
1.启用 mod_rewrite :a2enmod rewrite
2.重启apache:/etc/init.d/apache2 restart
3.解决乱码:gedit /etc/apache2/apache2.conf 添加AddDefaultCharset UTF-8
二、zendstudio下载
http://www.zendstudio.net/zend-studio-all-in-one-download/
32位windows版本为兼容版本,可以兼容64位
破解插件下载http://download.youkuaiyun.com/detail/meiqing520/7844645 下载完成后放在C:\Program Files (x86)\Zend\Zend Studio 11.0.1\plugins下替换即可
三、ubuntu配置svn服务器:
1.安装
apt-getinstall apache2
apt-getinstall subversion
apt-getinstall libapache2-svn
2.用户组
addgroupsubversion
usermod-G subversion -a wechat
3.建立目录
mkdir/home/svn
cd/home/svn
mkdirwechat
chown-R root:subversion wechat
4.建立库
svnadmincreate /home/svn/wechat
chmod777 wechat
5.配置
gedit/etc/apache2/mods-available/dav_svn.conf添加
<Location/svn>
DAVsvn
SVNParentPath/home/svn/wechat
AuthTypeBasic
AuthName"myproject subversion repository"
AuthUserFile/home/svn/wechat/conf/passwd
AuthzSVNAccessFile/home/svn/wechat/conf/authz
<LimitExceptGET PROPFIND OPTIONS REPORT>
Requirevalid-user
</LimitExcept>
</Location>
6.重启apache
/etc/init.d/apache2 restart
7.添加用户
htpasswd/home/svn/conf/wechat/passwd user_name
htpasswd-c /home/svn/wechat/conf/passwd user_name
8.访问权限设置
修改 /home/svn/wechat目录下:
svnserve.conf、passwd 、authz三个文件,行最前端不允许有空格
编辑svnserve.conf文件,把如下两行取消注释
password-db= password
authz-db= authz
//补充说明
#[general]
anon-access= read
auth-access= write
password-db= passwd
其中 anon-access 和 auth-access 分别为匿名和有权限用户的权限,默认给匿名用户只读的权限,但如果想拒绝匿
名用户的访问,只需把 read 改成 none 就能达到目的。
//--
编辑/home/svnuser/etc/passwd 如下:
[users]
wechat= 123456
test1= 123456
test2= 123456
//--
编辑/home/svnuser/etc/authz如下
[groups]
admin= wechat,test1
test= test2
[/]
@admin=rw
*=r
9.我们的服务器地址:http://111.186.112.169/svn/wechat
四、zendstudio下SVN插件
打开 zendstudio:File->New->PHP Project from SVN
如果未安装此插件会提示安装,安装完就可以用了