Redmine2.5+centos6+apache2

Source: Internet
Author: User
Tags ldap redmine

Redmine is a development of the use of Ruby without any commercial restrictions and self-deployment of project management software, its simple interface compared to the location of the program ape, the use of more convenient, because I did not install 3X before, the dependencies and configuration between the different versions, So the last reference to an official tutorial redmin.org 2.5, Although there is a tutorial is still relatively difficult, and this article is also found a long time to find, especially to write down the experience, convenient same into the pit of Apes.

This article is referenced from: Http://www.redmine.org/projects/redmine/wiki/Install_Redmine_25x_on_Centos_65_complete

1.CentOS

System installation is not much to say, installed after the implementation of the update

Yum Update

Reboot after the end of the roll

2. Our library

Yum-y Install nano zip unzip libyaml-devel zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel MySQL -devel gcc ruby-devel gcc-c++ make postgresql-devel imagemagick-devel sqlite-devel perl-ldap mod_perl Perl-Digest-SHA

Just copy it into the Xshell and roll it.

3.Apache and MySQL

Yum-y install httpd MySQL mysql-server

is also a relatively basic installation, complete the configuration startup item

Chkconfig httpd onchkconfig mysqld onservice httpd startservice mysqld Start

4. Firewall configuration (original text about Selliunx and hosts file, I jumped over, harmless)

Nano/etc/sysconfig/iptables

Append after 22

-a input-m state--state new-m tcp-p tcp--dport 80-j accept-a input-m state--state new-m tcp-p tcp--dport 443-j ACCEPT

There is no need to add, take care not to add in the last

Save Exit execution

/etc/init.d/iptables restart

5. Install PHP

Yum-y Install PHP php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc PHP-PECL-APC php-s Oap

Load Restart httpd Service

6.Ruby

\curl-l Https://get.rvm.io | BASHSOURCE/ETC/PROFILE.D/RVM.SHRVM Install 1.9.3

I'm Not so loaded, it's always been wget. direct, should be the same, rigorous period with the method of the tutorial

7.Rubygems

Yum-y Install RubyGems

8.Passenger

Gem Install Passengerpassenger-install-apache2-module

This piece illustrates that if run directly, he will install a higher version of the rack, resulting in a higher-than-ben ruby, stuck

This piece to manually wrap the dependencies, the gem to obtain the corresponding version can be

Gem Install rack-v 1.5.2

And then you can use it to passenger.

Passenger-install-apache2-module

All the way to the end of the chart, and then throw it to you, copy it.

LoadModule Passenger_module/usr/local/rvm/gems/ruby-1.9.3-p545/gems/passenger-4.0.37/buildout/apache2/mod_ Passenger.so<ifmodule mod_passenger.c>   passengerroot/usr/local/rvm/gems/ruby-1.9.3-p545/gems/ passenger-4.0.37   passengerdefaultruby/usr/local/rvm/gems/ruby-1.9.3-p545/wrappers/ruby</ifmodule>

Here if you use another version of ruby, passenger the generated path is not the same, so don't copy mine, to copy it to you

Create a configuration file for Redmine

Nano/etc/httpd/conf.d/passenger.conf

Save the copy of the sticky inside, and then restart the Web Service.

Service httpd Restart

9. Create a Redmine database

Advanced MySQL

Mysql-u root-p

And then lose your MySQL password, No on the empty

Go in and Execute.

Create DATABASE redmine_db Character Set utf8;create user ' redmine_admin ' @ ' localhost ' identified by ' Your_new_password '; Grant all privileges on redmine_db.* to ' redmine_admin ' @ ' localhost ';

Note that Your_new_password is your password to connect to your MySQL account redmine, you can customize it and exit after You've Finished.

10. Loading Redmine

advanced to the WWW directory, and then download the 2.5 version of the package, if you figure out the next high, all the corresponding Ruby ah, passenger ah, all must be loaded, so must correspond well

Cd/var/wwwwget http://www.redmine.org/releases/redmine-2.5.0.tar.gz

Then unzip and change the name and delete the Package.

Tar xvfz redmine-2.5.0.tar.gzmv redmine-2.5.0 redminerm-rf redmine-2.5.0.tar.gz

WE'LL Change the database configuration before we go Inside.

CD/VAR/WWW/REDMINE/CONFIGCP database.yml.example Database.ymlnano database.yml

Just fill in the database name, account number, and information you just created the database, and save the Exit.

11. Load Rails

Cd/var/www/redminegem Install Bundlerbundle Installrake generate_secret_token

And then execute SQL scripts like something to create a data table that Ruby really doesn't understand

Rails_env=production Rake db:migraterails_env=production Rake Redmine:load_default_data

Let you choose a language, just pick One.

12. Activating fcgi

Cd/var/www/redmine/publicmkdir PLUGIN_ASSETSCP dispatch.fcgi.example DISPATCH.FCGICP htaccess.fcgi.example. Htaccess

This step is relatively simple

13. Install Apache fcgi module

Cd/var/www/rpm--import Https://fedoraproject.org/static/0608B895.txtwget http://dl.fedoraproject.org/pub/epel/6/ X86_64/EPEL-RELEASE-6-8.NOARCH.RPMRPM-IVH epel-release-6-8.noarch.rpmyum-y Install MOD_FCGIDRM-RF epel-release-6-8.noarch.rpm

14. Create a Directory

Mkdir-p/opt/redmine/fileschown-r APACHE:APACHE/OPT/REDMINECD/VAR/WWW/REDMINE/CONFIGCP Configuration.yml.example Configuration.ymlnano configuration.yml

In about 212 lines there is a sentence, in the back to fill the path just now

Attachements_sorage_path:/opt/redmine/files

Note that there is a space after the colon

This step I do not know what the meaning, followed by the follow-up, can not understand

15. Create CONF Configuration information, email that step i crossed, need to look at the original document first

Nano/etc/httpd/conf.d/redmine.conf

In the Open Document entry

<virtualhost *:80>        ServerName your_domain        documentroot/var/www/redmine/public/        <directory "/ var/www/redmine/public/">                Options Indexes execcgi followsymlinks                Order allow,deny                allowoverride all        </Directory></VirtualHost>

That your_admin is your domain name, there is domain name write domain name, no domain write IP

16. You can Run.

Append the Apache account permissions to the directory and restart the Web service

Cd/var/wwwchown-r apache:apache redminechmod-r 755 redmineservice httpd Restart

Then open the browser to access your domain name, even if you are done, if you restart the service times conflict what error, open/etc/httpd/conf/httpd.conf, servername www.example.com that sentence to change

ServerName localhost:80

It's Ok.

Summary: Linux above installed things do not want Windows under the idiot, need to have better logical thinking, a good operation I think than a good program to be more Valuable. I have been studying Linux for some time, and now is not a document to live, anyway, regardless of the process, dba, operation or not, do not make lazy, encountered problems to solve in time is a good IT staff basic Quality.

Redmine2.5+centos6+apache2

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.