>>本次安装所有软件全部安装至一台主机Window2008 R2
1.下载php7 64位
http://windows.php.net/download(线程安全和线程不安全,下载线程安全)
PHP环境配置
将php.ini-dist或php.ini-development配置文件重命名为php.ini(该文件中分号开始行为注释内容),然后做如下设置:
1) extension_dir = "F:/svntool/phpven7.0.10/ext"
2) 取消下列设置的注释:
;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_fileinfo.dll
;extension=php_ftp.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysqli.dll
;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
;extension=php_openssl.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
3) 配置Session功能:(
在使用session功能时,必须配置session文件在服务器上的保存目录,否则无法使用session,此目录最好独立于WEB主程序目录之外,在D盘根目录上建立了phpsessiontmp目录,然后在php.ini配置文件中找到 ;session.save_path = "/tmp" 改成 session.save_path = "F:/svntool/phpven7.0.10/tmp"
session.save_path = "F:/svntool/phpven7.0.10/tmp"
5) 修改date.timezone
;date.timezone = 改成 date.timezone = Asia/Shanghai
2.安装Apache(64位,必须与php64位版本匹配php7apache2_4.dll)
1、二进制下载地址:http://www.apachelounge.com/download/(http://httpd.apache.org/download.cgi#apache24未找到),找到的编译的后版本
httpd -k install
2、b.编辑F:/svntool/Apache24/conf/httpd.conf文件,修改Apache对应的路径(我的路径为F:\svntool\下面配置Apache、php、mysql)
ServerRoot "F:/svntool/Apache24″(这里是我的Apache路径,改为你自己的就好,注意去掉#)
DocumentRoot "F:/svntool/Apache24/htdocs"
<DocumentRoot "F:/svntool/Apache24/htdocs">
全部替换为:F:/svntool/Apache24新路径
配置1 OK:
DocumentRoot "F:/svntool/usvn/public"
<Directory "F:/svntool/usvn/public">
配置2 虚拟路径OK:
Alias /usvn "F:/svntool/usvn/public"
<Directory "F:/svntool/usvn/public">
Options +SymLinksIfOwnerMatch
AllowOverride All
## For Apache HTTP 2.2
#Order allow,deny
#Allow from all
## For Apache HTTP 2.4
Require all granted
</Directory>
安装USVN时会出现错误:
AllowOverride seems to be missing.
Please check your configuration settings and come back.
http://127.0.0.1/usvn/login/
此问题可通过USVN的安装文档中查找到配置:usvn readme.cm
3.配置php2 支持
# php7 support
LoadModule php7_module "F:/svntool/phpven7.0.10/php7apache2_4.dll"
AddType application/x-httpd-php .php .html .htm
# configure the path to php.ini (must be PHP ini path)
PHPIniDir "F:/svntool/phpven7.0.10"
注意:apache版本不对,无法安装
PHP 的目录,否则找不到加载类
4.配置svn module 支持
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dav_module modules/mod_dav.so
3.安装mysql5.5(下载了相对低的版本),当前已经到5.6,5.6,下载社区版,zip无安装版
1、配置mysql,复制large
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
default-character-set=utf8
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
basedir=F:/svntool/mysql-5.5.52-winx64
datadir=F:/svntool/mysql-5.5.52-winx64/data
character_set_server=utf8
2、注册服务
mysqld --install
net start MySQL
3、配置服务,进入mysql bin 目录,设置root权限
mysql -uroot
mysql> use mysql;
Database changed
mysql> grant all on *.* to root@'localhost' identified by 'root' with grant option;
Query OK, 0 rows affected (0.06 sec)
mysql> grant all on *.* to root@'%' identified by 'root' with grant option;
Query OK, 0 rows affected (0.03 sec)
mysql> grant all on *.* to root@'127.0.0.1' identified by 'root' with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql>
4、安装svn (edge版本)
1、svn,CollabNetSubversion,
http://www.collab.net/downloads/subversion,下载Subversion Edge 5.1.4 (Windows 64-bit)
2、默认安装,安装完成后访问路径
svn
admin/admin
http://localhost:3343/csvn/login/auth
当前edge版本可以通过web端进行管理库,无需配置,内置jetty
A certified software stack containing the latest versions of Subversion, Apache, and ViewVC.
"C:\csvn\bin\httpd.exe" -k runservice
5、安装usvn(下载最新版本)
1、http://www.usvn.info/,readme.cm中有安装方法及注意事项[Installation](https://github.com/usvn/usvn/wiki/Installation)。
2、安装过程中,进行检查安装必须,检查不通过,无法安装
3、安装过程选择svn安装库目录即可完成
4、安装完成后添加如下至httpd.conf中:
<Location /usvn/svn/>
ErrorDocument 404 default
DAV svn
Require valid-user
SVNParentPath F:\svntool\files\svn
SVNListParentPath off
AuthType Basic
AuthName "USVN"
AuthUserFile F:\svntool\files\htpasswd
AuthzSVNAccessFile F:\svntool\files\authz
</Location>
修改了:F:\svntool\usvn\app\controllers\BrowserajaxController.php on line 218 有$tabgroup = split(",", $_GET['group']); to $tabgroup = explode(",", $_GET['group']);explode
安装截图未导入,请按照安装部署输入即可。