jonvi 发表于 2016-12-30 10:26:29

Apache下部署Redmine

  一、安装Apache

yum -y install curl-devel httpd httpd-devel
  二、使用passenger安装插件

gem install passenger
passenger-install-apache2-module
   
  三、赋予权限

chown -R apache:apache /etc/httpd/logs
chown -R apache:apache /var/www/html/redmine
  四、编辑/etc/httpd/conf/httpd.conf

LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.7/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.7
PassengerRuby /usr/local/bin/ruby
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "/var/www/html/redmine/public/"
    RailsEnv production
    RailsBaseURI /redmine
PassengerDefaultUser apache
    ErrorLog logs/redmine_error_log
</VirtualHost>
  五、重启Apache

service httpd restart
页: [1]
查看完整版本: Apache下部署Redmine