svnmanager安装

2018-04-28 14:05:27 浏览数 (1)

apt-get update apt-get install apache2 subversion libapache2-svn apt-get install apache2-utils a2enmod dav_svn apt-get install mysql-server mysql-client apt-get install php5 php5-mysql php5-sqlite php-pear pear install versionControl_svn Failed to download pear/versionControl_svn within preferred state “stable”, latest release is version 0.5.2, stability “alpha”, use “channel://pear.php.net/versionControl_svn-0.5.2” to install install failed 这样可能是软件的BUG,那就指定版本,注意不要安装0.5.0不然会报错 pear install versionControl_svn-0.4.0 apt-get install phpmyadmin apt-get install php5-mcrypt php5enmode mcrypt 创建SVN版本库父目录 mkdir /var/www/svn 创建验证用户访问权限文件 touch /var/www/svn/access 创建验证用户密码文件 touch /var/www/svn/passwd 更改文件权限 chmod 666 access passwd 新增站点 <VirtualHost *:80> ServerName dev.svn DocumentRoot /var/www/svn <Directory /var/www/svn> order allow,deny Deny from all </Directory> Include /etc/apache2/svn/*.conf </VirtualHost> 新建svn <Location /> DAV svn #如果是多个站点可以用这个 SVNParentPath /var/www/svn Authtype Basic AuthName ‘SVN’ AuthzSVNAccessFile /var/www/svn/access AuthUserFile /var/www/svn/passwd Require valid-user </Location>

部署svnmanager wget http://prdownloads.sourceforge.net/svnmanager/svnmanager-1.08.tar.gz mkdir /var/www/html/svnadmin 搭建站点 <VirtualHost *:80> DocumentRoot /var/www/html/svnadmin ServerName svnadmin <Directory /var/www/html/svnadmin> Options -Indexes FollowSymLinks AllowOverride All Order Allow,Deny Allow from all </Directory> ErrorLog /var/www/logs/svnadmin.error.log CustomLog /var/www/logs/svnadmin.access.log common </VirtualHost> 为svnmanager创建数据库 create database svnmanager; grant all privileges on svnmanager.* to ‘svnmanager’@’localhost’ identified by ‘123456’; flush privileges; exit 配置svnmanager cp config.php.linux ./config.php 编辑config.php $htpassword_cmd = “/usr/bin/htpasswd”; $svn_cmd = “/usr/bin/svn”; $svnadmin_cmd = “/usr/bin/svnadmin”;

//Subversion locations $svn_config_dir = “/var/www/svn/svnconfig”; $svn_repos_loc = “/var/www/svn”; $svn_passwd_file = “/var/www/svn/passwd”; $svn_access_file = “/var/www/svn/access”; $dsn = “mysql://svnmanager:123456@localhost/svnmanager”; 错误提示 Fatal error: Class ‘PEAR_ErrorStack’ not found in C:Program FilesApache Software FoundationApache2.2htdocs svnmanagersvnmanager RepositoryModuleUserPrivilegesEditPage.php on line 204

解决方法: pear uninstall VersionControl_SVN-0.5.0 卸掉0.5.0 pear install PEAR-1.9.4 pear install VersionControl_SVN-0.4.0 重装0.4.0就没报这个错了

svn

0 人点赞