Redmine + Apache + mod_fcgid

Source: Internet
Author: User

Redmine is started by default with Webrick, which is not suitable for production environments, preferably under Apache, this article describes how to start with Mod_fcgid.

The first thing to do is to have a bootable redmine, which can be viewed through my previous posts: http://www.cnblogs.com/wzy5223/p/5335549.html

The installation location of this example redmine:/opt/redmine-3.2.1

One. Download resources

wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.31.tar.gz wget http://mirrors.hust.edu.cn/apache//Httpd/mod_fcgid/mod_ Fcgid-2.3.9.tar.gz

Two. Compiling Apache

tar xzvf httpd-2.2. . Tar . GZCD httpd-2.2.  to . /configure--prefix=/opt/httpd-2.2.  --enable-rewritemake make makeinstall

Three. Compiling mod_fcgid

tar xzvf mod_fcgid-2.3. 9. Tar . GZCD mod_fcgid-2.3. 9 APXS=/opt/httpd-2.2. /bin/apxs./configure.apxsmake doinstall

Four. Configure Redmine to Apache

cd/opt/redmine-3.2. 1/publiccp  dispatch.fcgi.example dispatch.fcgicp/opt/ httpd-2.2. /confVI httpd.conf

Find the content below

DocumentRoot "/opt/httpd-2.2.31/htdocs" # # each directory to which Apache have access can be configured with respect# to Which services and features is allowed and/or disabled in that# directory (and its subdirectories). # # First, we Configur E the "default" to be a very restrictive set of# features.#</>  Options followsy Mlinks allowoverride None Order deny,allow denyfrom all</Directory>

Revision changed to

DocumentRoot "/opt/redmine-3.2.1/public" # # each directory to which Apache have access can be configured with respect# t o Which services and features is allowed and/or disabled in that# directory (and its subdirectories). # # First, we Configu Re the "default" to be a very restrictive set of# features.#</>    Options Fol Lowsymlinks    allowoverride None    Order deny,allow    allow from all</Directory >

and modify the listening port to 3000

3000

Five. Installing Mod_passenger

Install Passenger
Yum Install Libcurl-devel
passenger-Install-apache2-module--apxs2-path/opt/httpd-2.2. /bin/apxs--apr-config-path/opt/httpd-2.2. /bin/apr-1-config--languages Ruby

The above command will end with a character that needs to be added to the httpd.conf, such as the following

   LoadModule Passenger_module/home/wzy/.rvm/gems/ruby-2.2.4/gems/passenger-5.0.26/buildout/apache2/mod_ passenger.so   <mod_passenger.c>     passengerroot/home/ wzy/.rvm/gems/ruby-2.2.4/gems/passenger-5.0.26     Passengerdefaultruby/home/wzy/.rvm/gems/ruby-2.2.4/wrappers /ruby   </ifmodule>

Six. Launch Apache to test for access to http://<IP>:3000

/opt/httpd-2.2. /bin/apachectl Start

If successful access is done, you can finally add Apache to the service and you can reboot with the system

Redmine + Apache + mod_fcgid

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.