热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

Bitnamiredmine安装后,有关url的配置,主要步骤参考了官方说明,根据自己的实际配置经验,做了部分修改整合1.查看数据库可以用安装时填写的账户登录phpmyadmin,但

  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


BalancerMember http://127.0.0.1:3001/redmine
BalancerMember http://127.0.0.1:3002/redmine
注:文件中“ 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,变为如下内容
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                                                                    
 
    ErrorDocument 403 /404.html
    Order allow,deny
    Deny from all
    Satisfy All
 

 
  # This passes through remote_user to mongrel                                  
  RewriteEngine On
 
  # Redirect non-static requests to cluster                                     
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]


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


  BalancerMember http://127.0.0.1:3001
  BalancerMember http://127.0.0.1:3002

注意红色端口部分,根据自己安装情况更新

如果不想从redmine trunk升级最新的redmine安装, 这个配置节可以忽略不管

下面是在一台服务器上如果有多个域控制器是的,情况,参考一下,如果没有这种情况,略过

If you have multiple domains and subdomains on your server you must place the ProxyPass and Proxy balancer lines into the Virtual Host, or every domain will try to be passed to Redmine!

Like this:



ServerAdmin your @ email .com
ServerName subdomain . yourdomain . tld
ServerAlias www . subdomain . yourdomain . tld
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

ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All

# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]

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


BalancerMember http:// 127.0.0.1:3001
BalancerMember http:// 127.0.0.1:3002


Hope this is useful to someone, took me a little while to figure why my Virtual Hosts were not working!


  • 编辑 installdir/apps/redmine/scripts/serviceinstall.bat文件,删除其中的“--prefix /redmine”内容
  • 编辑 installdir/apps/redmine/htdocs/config/additional_environment.rb 文件,删除其中的"/redmine"内容。注意,一定是“/redmine”,而不是“redmine”,否则样式表没了
  • 运行如下命令安装所有服务
   > cd installdir(installdir,是安装根目录)

   > serviceinstall.bat INSTALL

  • 刷新页面,清除cache,访问http://localhost:8087,就可以正常访问redmine

         这时,如果通过http://localhost:8087/phpmyadmin/,则会提示找不到页面

         那如何通过上述访问phpmyadmin呢

  • 编辑 installdir/apps/phpmyadmin/conf/phpmyadmin.conf文件,添加如下配置节内容(红色部分)

    DocumentRoot "C:/Program Files/BitNami Redmine Stack/apps/phpmyadmin/htdocs"
    ServerName 127.0.0.1
    ServerAlias 127.0.0.1

installdir/apps/phpmyadmin/htdocs">
# AuthType Basic
# AuthName phpMyAdmin
# AuthUserFile "installdir/apache2/users"
# Require valid-user

Order allow,deny
Allow from 127.0.0.1
#Allow from all
Satisfy all

= 2.3>
Require local

ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"

  • 重启apache服务,从本地地址访问则会转向phpadmin,其他则会转向redmine

注:将文中installdir更换为实际安装位置



推荐阅读
  • 如何实现织梦DedeCms全站伪静态
    本文介绍了如何通过修改织梦DedeCms源代码来实现全站伪静态,以提高管理和SEO效果。全站伪静态可以避免重复URL的问题,同时通过使用mod_rewrite伪静态模块和.htaccess正则表达式,可以更好地适应搜索引擎的需求。文章还提到了一些相关的技术和工具,如Ubuntu、qt编程、tomcat端口、爬虫、php request根目录等。 ... [详细]
  • GetWindowLong函数
    今天在看一个代码里头写了GetWindowLong(hwnd,0),我当时就有点费解,靠,上网搜索函数原型说明,死活找不到第 ... [详细]
  • 本文介绍了关于apache、phpmyadmin、mysql、php、emacs、path等知识点,以及如何搭建php环境。文章提供了详细的安装步骤和所需软件列表,希望能帮助读者解决与LAMP相关的技术问题。 ... [详细]
  • 本文介绍了django中视图函数的使用方法,包括如何接收Web请求并返回Web响应,以及如何处理GET请求和POST请求。同时还介绍了urls.py和views.py文件的配置方式。 ... [详细]
  • 本文讨论了在shiro java配置中加入Shiro listener后启动失败的问题。作者引入了一系列jar包,并在web.xml中配置了相关内容,但启动后却无法正常运行。文章提供了具体引入的jar包和web.xml的配置内容,并指出可能的错误原因。该问题可能与jar包版本不兼容、web.xml配置错误等有关。 ... [详细]
  • php设置数组大小_【大厂必备】2020超经典PHP面试题
    结合我自己这段时间的面试情况,面对的一些php面试题列举出来,基本上结合自己的看法回答的,不妥的地方请大家指出去,与大家一起 ... [详细]
  • Matlab 中的一些小技巧(2)
    1.Ctrl+D打开子程序  在MATLAB的Editor中,将输入光标放到一个子程序名称中间,然后按Ctrl+D可以打开该子函数的m文件。当然这个子程序要在路径列表中(或在当前工作路径中)。实际上 ... [详细]
  • mac os php mysql_Mac OS下配置PHP+MySql环境
    由于最近需要布置mantis用来进行bug追踪,在此记录其过程。由于PHPapache环境在MacOS上是自带的,所以不需要另处下安装包, ... [详细]
  • 本文讨论了Alink回归预测的不完善问题,指出目前主要针对Python做案例,对其他语言支持不足。同时介绍了pom.xml文件的基本结构和使用方法,以及Maven的相关知识。最后,对Alink回归预测的未来发展提出了期待。 ... [详细]
  • 个人学习使用:谨慎参考1Client类importcom.thoughtworks.gauge.Step;importcom.thoughtworks.gauge.T ... [详细]
  • WebSocket与Socket.io的理解
    WebSocketprotocol是HTML5一种新的协议。它的最大特点就是,服务器可以主动向客户端推送信息,客户端也可以主动向服务器发送信息,是真正的双向平等对话,属于服务器推送 ... [详细]
  • 本文主要复习了数据库的一些知识点,包括环境变量设置、表之间的引用关系等。同时介绍了一些常用的数据库命令及其使用方法,如创建数据库、查看已存在的数据库、切换数据库、创建表等操作。通过本文的学习,可以加深对数据库的理解和应用能力。 ... [详细]
  • 概述H.323是由ITU制定的通信控制协议,用于在分组交换网中提供多媒体业务。呼叫控制是其中的重要组成部分,它可用来建立点到点的媒体会话和多点间媒体会议 ... [详细]
  • 这篇文章主要介绍了C++实现图形界面开发Qt教程,涉及坐标函数的应用及图形界面程序设计,需要的朋友可以参考下,希望能给你带来帮助目录嵌套圆环图运行示例总结Qt是一个跨平台框架,通常 ... [详细]
  • 昨天写了个php程序,给mysql插入随机的文章数据,仿照真实文章,中文数据,主要是测试在100w级数量时查询上的优化及测试mysql内置的全文检索与其它类似全文检索引擎的差距等。总数据量: ... [详细]
author-avatar
mobiledu2502917243
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有