centos环境下整合apache + redmine
#安装环境
32位 centos 6.0或6.3
apache2.0+
redmine 2.4.2
#整合apache + redmine
#------------------------------------------------------------------
#安装passenger,先停止apache服务
gem install passenger
#找到apache apxs路径
#安装并指定passenger关联apache apxs的路径
env APXS2=/usr/local/apache2/bin/apxs passenger-install-apache2-module
#按照提示信息安装
#创建软连接,虚拟成web项目
cd /techcenter/web/
mkdir redmine
ln -s /techcenter/web/redmine-2.4.2/public redmine
chown -R apache.apache redmine
mkdir redmine
ln -s /techcenter/web/redmine-2.4.2/public redmine
chown -R apache.apache redmine
#配置apache httpd.conf文件
vi /usr/local/apache2/conf/httpd.conf
#在文件最下面增加以下内容
LoadModule passenger_module /usr/local/ruby-2.0/lib/ruby/gems/2.0.0/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/ruby-2.0/lib/ruby/gems/2.0.0/gems/passenger-4.0.37
PassengerDefaultRuby /usr/local/ruby-2.0/bin/ruby
</IfModule>
RailsBaseURI /redmine
<Directory "/techcenter/web/redmine">
Allow from all
Options -MultiViews
</Directory>
#退出保存
#在文件最下面增加以下内容
LoadModule passenger_module /usr/local/ruby-2.0/lib/ruby/gems/2.0.0/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/ruby-2.0/lib/ruby/gems/2.0.0/gems/passenger-4.0.37
PassengerDefaultRuby /usr/local/ruby-2.0/bin/ruby
</IfModule>
RailsBaseURI /redmine
<Directory "/techcenter/web/redmine">
Allow from all
Options -MultiViews
</Directory>
#退出保存
#重启apache!
参考文档
http://www.modrails.com/documentation/Users%20guide%20Apache.html
#-------------------------------------------------------------------------------------------
#整合apache + redmine完毕!http协议请求方式 http://IP/redmine 测试
相关推荐
JOO 2020-04-26
安之偌素 2020-03-26
xsg 2020-01-25
87447007 2014-03-11
蜀川居 2014-03-11
踩风火轮的乌龟 2008-03-22
wangyongwyk 2011-07-31
zhaoweiping 2009-12-09
dqcoffee 2014-03-11
ApachePHPMySQL 2014-03-11
zhaohuan 2011-10-30
Claroja 2011-08-09
chenchuang 2010-10-10
好脑筋不如烂笔头 2014-04-21
冷月醉雪 2014-03-13
Coohx 2014-02-27
sch 2012-08-18
newdye 2012-08-10
trapeze 2012-04-26