系统:CentOS 7 x64
软件:Redmine 3.0、Zentao 7.2 Source
Redmine 3.0 是先安装的,目录 /opt/redmine,访问地址 http://127.0.0.1/redmine
Zentao 7.2 是后安装的,目标访问地址 http://127.0.0.1/zentao
Redmine与zentao 都依赖 apache mysql,
apache 监听端口为 80 8080
ssl 监听端口为 443
mysql 监听端口为 3306
方案一
使用 zentao 6.2 Linux一键安装包
安装过程比较顺利,问题出在运行上,提示 apache mysql 已经在运行,
因此,放弃此方案。
方案二
使用 zentao 7.2 源码安装
首先,梳理bitnami-redmine的目录结构,
/opt/redmine/apache2/conf ##此处为配置文件
/opt/redmine/apps ##此处为应用目录,redmine 就在里面,我们将 zentao 也放在里面
apache 配置文件的包含关系依次为:
/opt/redmine/apache2/conf/httpd.conf
/opt/redmine/apache2/conf/bitnami/bitnami.conf
/opt/redmine/apache2/conf/bitnami/bitnami-apps-prefix.conf
/opt/redmine/apps/redmine/conf/httpd-app.conf
解压 Zentao
将解压后的 zentao 拷贝到 /opt/redmine/apps/zentao
修改配置文件
/opt/redmine/apache2/conf/bitnami/bitnami-apps-prefix.conf 文件修改为
Alias /redmine/ "/opt/redmine/apps/redmine/htdocs/public/"
Alias /redmine "/opt/redmine/apps/redmine/htdocs/public"
## add zentao dir ##
Alias /zentao/ "/opt/redmine/apps/zentaopms/www/"
Alias /zentao "/opt/redmine/apps/zentaopms/www"
Include "/opt/redmine/apps/redmine/conf/httpd-app.conf"
/opt/redmine/apps/redmine/conf/httpd-app.conf 文件修改为
<Directory "/opt/redmine-3.0.3-0/apps/redmine/htdocs/public">
Options -MultiViews
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
PassengerEnabled on
SetEnv RAILS_RELATIVE_URL_ROOT "/redmine"
PassengerAppRoot "/opt/redmine-3.0.3-0/apps/redmine/htdocs/"
<IfModule pagespeed_module>
ModPagespeedDisallow "*"
</IfModule>
</Directory>
## add zentao dir ##
<Directory "/opt/redmine-3.0.3-0/apps/zentaopms/www">
Options -MultiViews
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
PassengerEnabled on
SetEnv RAILS_RELATIVE_URL_ROOT "/zentao"
PassengerAppRoot "/opt/redmine-3.0.3-0/apps/zentaopms/"
<IfModule pagespeed_module>
ModPagespeedDisallow "*"
</IfModule>
</Directory>
PassengerPreStart http://127.0.0.1:80/redmine
重启 redmine
/opt/redmine/ctlscript.sh restart
配置 zentao
参考禅道官方的安装流程即可,
地址:http://www.zentao.net/book/zentaopmshelp/101.html
原文地址:http://blog.csdn.net/shishuo365/article/details/46293731