1. Modifications Redmine Operating Parameters
vim/var/www/html/redmine/config/environment.rb ( Add the following )
env[' rails_env ' | | = ' Production '
2. Renaming a CGI file
Cd/var/www/html/redmine/public
Mvdispatch.fcgi.example dispatch.fcgi
Mvhtaccess.fcgi.example htaccess.fcgi
3. Install passenger ( use gem to install )
Gem Install passenger
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/44/wKiom1amJUyAuLBEAABKKd685SI441.png "title=" 1.png " alt= "Wkiom1amjuyaulbeaabkkd685si441.png"/>
4. install the passenger Apache module ( ensure httpd-devel installation )
Dependency Packages: Yum Install libcurl*
Passenger-install-apache2-module
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7A/44/wKiom1amJYHCDU4sAAA_C1IicP8427.png "title=" 2.png " alt= "Wkiom1amjyhcdu4saaa_c1iicp8427.png"/>
Enter
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/43/wKioL1amJdSyRUZfAAAhJ0HWG5c284.png "title=" 3.png " alt= "Wkiol1amjdsyruzfaaahj0hwg5c284.png"/>
Enter to start the installation
5. Configure Apache
Installation Complete passenger will be prompted to put this passage vim/etc/httpd/conf.d/passenger.conf in
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7A/43/wKioL1amJhSSMBB2AABBhhK5IK0946.png "title=" 1.png " alt= "Wkiol1amjhssmbb2aabbhhk5ik0946.png"/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/43/wKioL1amJibj-YjyAAAl7RY3ZAo482.png "title=" 2.png " alt= "Wkiol1amjibj-yjyaaal7ry3zao482.png"/>
6. Create a redmine CGI Soft link to the Apache root directory
Ln-s/mnt/redmine/public//var/www/html/redmine
remember to make sure /public specified to /var/www/html/redmine does not specify the entire Redmine
vim/etc/httpd/conf/httpd.conf (Add the following content)
Railsenv Production
Railsbaseuri/redmine
<directory "/var/www/html/redmine" >
Optionsindexes multiviews followsymlinks execcgi
Orderallow,deny
Allowfrom All
AllowOverride All
</directory>
7. restart Apache
[Email protected] ~]# service httpd restart
stopping httpd: [OK]
Starting httpd: [OK]
8. Browser Test access
Http://192.168.10.30/redmine
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7A/44/wKiom1amJh-ywlBuAABdHeCqfQw861.png "style=" float: none; "title=" 1.png "alt=" Wkiom1amjh-ywlbuaabdhecqfqw861.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/44/wKiom1amJiGxY_iTAACgP-n1Avk318.png "style=" float: none; "title=" 2.png "alt=" Wkiom1amjigxy_itaacgp-n1avk318.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/43/wKioL1amJmbSSRKCAABi2a8QcaY874.png "style=" float: none; "title=" 3.png "alt=" Wkiol1amjmbssrkcaabi2a8qcay874.png "/>
This article is from the "experience-based staff" blog, please be sure to keep this source http://zhangjianxin.blog.51cto.com/10134758/1738452
Apache and Redmine integration-using passenger