日期:2014-05-17 浏览次数:21037 次
ENV['RAILS_ENV'] ||= 'production'
cd /opt/redmine-1.2/public mv dispatch.cgi.example dispatch.cgi mv dispatch.fcgi.example dispatch.fcgi mv dispatch.rb.example dispatch.rb mv htaccess.fcgi.example .htaccess
gem install --local passenger-3.0.8.gem
yum install httpd-devel
passenger-install-apache2-module
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8 PassengerRuby /usr/local/bin/ruby
ln -s /opt/redmine-1.2/public /var/www/html/redmine
RailsEnv production RailsBaseURI /redmine <directory "/var/www/html/redmine"> Options Indexes MultiViews FollowSymLinks ExecCGI Order allow,deny Allow from all AllowOverride all </directory>
chown -R apache:apache /opt/redmine-1.2 chown -R apache:apache /var/www/html/redmine
/etc/init.d/httpd restart