同安装SVNManager类似,SVN Access Manager的安装同样需要安装Apache,MySQL, SVN 和PHP。我的环境配置如下:
httpd2.2.3 + MySQL 5.1.51 + PHP5.2.8 + SVN 1.4.6
关于Apache,MySQL,SVN的安装请参考之前的博客文章:
http://blog.csdn.net/w171066/article/details/50825526
从安装PHP开始,步骤有所区别.
1. 安装PHP
1.1 安装
# tar zxvf php-5.2.8.tar.gz
# cd php-5.2.8
# ./configure --prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-zlib --with-gd --with-pear
# make
#make install
1.2 扩展安装gettext
进入PHP的安装路径:
# cd /opt/php-5.2.8/ext/gettext/
# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-gettext
# make & make install
1.3. 修改/etc/php.ini的配置文件
添加:
extension_dir=/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
extension=gettext.so
刪除“;extension=php_gettext.dll”前的逗号。
2. 重启Apache
# service apache stop
httpd (no pid file) not running
# service apache start
3. 为SVN Access Manager创建数据库
# mysql -u root -p
mysql> create database svnaccess ;
mysql> grant all privileges on svnaccess.* to svnaccess@localhost identified by 'newpassword';
mysql> flush privileges;
mysql>quit;
4. 将SVN Access Manager解压至/usr/local/apache/htdocs下
# tar zxvf svn_access_manager-0.5.5.1.tar.gz
# mv svn_access_manager-0.5.5.1 svn_access_manager
5. 访问 http://192.168.44.47:8080/svn_access_manager/install/install.php 开始安装