Summary of problems encountered by apache2 + passenger:

Source: Internet
Author: User
Tags redmine
Reference: Workshop

Reference: http://blog.csdn.net/abbuggy/article/details/8245941 http://5551543.blog.hexun.com/31625644_d.html http://www.cnblogs.com/baizhantang/archive/2012/12/20/2827061.html http://www.cnblogs.com/ylan2009/archive/2012/02/25/2368028.htm


References:
Http://blog.csdn.net/abbuggy/article/details/8245941
Http://5551543.blog.hexun.com/31625644_d.html
Http://www.cnblogs.com/baizhantang/archive/2012/12/20/2827061.html

Http://www.cnblogs.com/ylan2009/archive/2012/02/25/2368028.html


Mongrel is used to run ruby programs. Ruby provides a package for installing Ruby programs as a service: mongrel_service. The installation is actually very simple. Run: gem install mongrel_service

[root@test-1 config]#gem install mongrel_service[root@test-1 config]# ruby /usr/local/redmine/script/server mongrel -e production -d
To specify a port, add the-p port.


Before the problem: mongrel can be used to run ruby programs. Because of the efficiency problem and a colleague's lack of permission to access ports outside 80, it is decided to deploy on apache.


Install Passenger

[root@test-1 config]#gem install passengerpassenger-install-apache2-module#If the second line does not work, do whereis passenger to find out where it is installed.So you can execute it like /usr/local/bin/passenger-install-apache2-module ...The install process is interactive and you wil be told what to do. READ!

Problem 1: My redhat server yum is not registered. After uninstalling It, I installed centos yum.
Reference: http://5551543.blog.hexun.com/31625644_d.html
Http://www.cnblogs.com/shuaixf/archive/2011/11/30/2268496.html

Download the following package to install yum

[Root @ test-1 public] # wget internal public] # wget http://centos.ustc.edu.cn/centos/5/ OS /x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
[root@test-1 public]#wget http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5

Question 2: After my apache passenger module is installed, the system prompts that some software is not installed. Use yum to install it. If some installation packages are missing when running the following command, a prompt will be prompted to install them.

[root@test-1 public]# passenger-install-apache2-module[root@test-1 public]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/apr-devel-1.2.7-11.el5_6.5.x86_64.rpm[root@test-1 public]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/apr-util-devel-1.2.7-11.el5_5.2.x86_64.rpm[root@test-1 public]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/httpd-devel-2.2.3-82.el5.centos.x86_64.rpm[root@test-1 public]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/httpd-2.2.3-82.el5.centos.x86_64.rpm

Problem 3: After the installation is complete, the system prompts you to configure apache, modify it, and add the following content. If there are other problems that can only be found and solved online, it takes a lot of time to understand the meaning of the following configuration ..

References:

Http://www.cnblogs.com/baizhantang/archive/2012/12/20/2827061.html

Http://blog.csdn.net/abbuggy/article/details/8245941

  [root@test-1 public]#vi /etc/httpd/conf/httpd.conf LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so   PassengerRoot /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.2   PassengerRuby /usr/local/ruby/bin/ruby    
     
            ServerName 127.0.0.1      DocumentRoot /var/www/html/      ErrorLog logs/redmine_error_log      RailsBaseURI /redmine      RailsEnv production      
      
                Options Indexes ExecCGI FollowSymLinks         Order allow,deny         Allow from all         AllowOverride all         Options -MultiViews      
         
     

Common commands used to solve the problem, set up a soft chain and place it in apache DocumentRoot.

[Root @ test-1 public] # ln-s/usr/local/redmine/public // var/www/html/redmine

      
      

[Root @ test-1 public] # service httpd restart # restart apache


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.