日期:2014-05-16  浏览次数:20561 次

Bitnami redmine 安装后查看数据库以及更改url

  Bitnami redmine 安装后,有关url的配置,主要步骤参考了官方说明 , 根据自己的实际配置经验,做了部分修改整合

1. 查看数据库

  可以用安装时填写的账户登录phpmyadmin,但是看不到redmine的数据库;改用root,则可以看到redmine-default数据库

2. 更改URL

   a. 更改默认安装的URL(http://localhost:8087/redmine to http://localhost:8087/projects)

  •  打开 installdir/apps/redmine/conf/redmine.conf  文件 ,修改内容为:

#ProxyPass /redmine balancer://redminecluster
#ProxyPassReverse /redmine balancer://redminecluster

<Proxy balancer://redminecluster>
  BalancerMember http://127.0.0.1:3001/redmine 
  BalancerMember http://127.0.0.1:3002/redmine
</Proxy>
注:文件中“redmine”改为“projects

  • 打开 installdir/apps/redmine/htdocs/config/additional_environment.rb 文件,修改内容如下:

              config.action_controller.relative_url_root = '/redmine'

               将“redmine” 改为 “projects”

  • 打开 installdir/apps/redmine/scripts/serviceinstall.bat文件 ,查找文件中如下内容

"installdir/apps/redmine/htdocs"  --prefix /redmine

"installdir/apps/redmine/htdocs"  --prefix /redmine

将文件中  --prefix /redmine的"redmine"改为"projects"

  • 运行如下命令 卸载redmineThin1 redmineThin2 服务,并重新安装

              > cd installdir/apps/redmine/scripts

              > serviceinstall.bat uninstall

              > serviceinstall.bat INSTALL

  • 重启apache服务,完了

 b. 更改URL到根目录(http://localhost:8087/redmine/ to http://localhost:8087/)

  • 先停止服务,然后卸载服务

   > cd installdir(installdir,是安装根目录)

  > serviceinstall.bat uninstall

  • 编辑 installdir/apps/redmine/conf/redmine.conf 文件,删除文件中的redmine。注意不是redminecluster,变为如下内容
<VirtualHost *:8087>
  ServerAdmin webmaster@your_server_name
  ServerName your_server_name.your_domain_name.local
  ServerAlias michael
  ErrorLog "logs/rubystack_apache_error.log"
  CustomLog "logs/rubystack_apache_access.log" combined
  # this not only blocks access to .svn directories, but makes it                
  # appear as though they aren't even there, not just that they are              
  # forbidden                                                                    
  <DirectoryMatch "^/.*/\.svn/">
    ErrorDocument 403 /404.html
    Order allow,deny