Steps for installing redmine in centos 5.6

Source: Internet
Author: User
Tags redmine

1. Install gem and passenger dependencies
Yum-y install zlib-devel curl-devel openssl-devel httpd-devel apr-util-devel mysql-devel

2. Download ruby. Pay attention to the installation package name.
Mkdir downloads
Cd ~ /Downloads # YOUR FOLDER OF CHOICE
Ftp ftp.ruby-lang.org
Cd/pub/ruby
Get ruby-1.8.7.pXXX.tar.gz
Tar zxvf ruby-1.8.7.pXXX.tar.gz ruby-1.8.7.pXXX
Cd ruby-1.8.7.pXXX
./Configure
Make
Make install
Ruby-v
Which ruby
Cd ..

3. Install gems1.3.7
Wget http://production.cf.rubygems.org/rubygems/rubygems-1.x.tgz
Tar zxvf rubygems-1.x.tgz rubygems-1.x
Cd rubygems-1.x
Ruby setup. rb
Gem-v
Which gem
Cd ..

4. Install passenger
Gem install passenger
Passenger-install-apache2-module

5. Restart apache
Service httpd restart

6. Download redmine
Wget http://rubyforge.org/frs/download.php/75097/redmine-1.2.1.tar.gz # GET LATEST VERSION ON RUBYFORGE
Tar zxvf redmine-1.2.1.tar.gz

7. copy the file to the http root path
Go to/var/www/to create the redmine folder.
Mkdir redmine
Back to/root/downloads/run cp-av redmine-1.2.1/*/var/www/redmine

8. Install mysql
# Wget http://download.mysql.cn/download_file/gz/5.0/mysql-5.0.22.tar.gz
# Tar zxvf mysql-5.0.22.tar.gz
# Cd mysql-5.0.22
#. /Configure -- prefix =/usr/local/mysql -- localstatedir =/usr/local/mysql/data/-- without-innodb -- without-debug -- with-extra-charsets = gbk -- with-extra-charsets = all -- enable-consumer er -- with-pthread -- enable-thread-safe-client -- with-client-ldflags =-all-static
(If curses/xxx is missing, yum-y install ncurses-devel)
# Make & make install

9. Generate a session key
Rake config/initializers/session_store.rb
If rake is missing, install gem install-v = 0.4.2 i18n

10. Create a table and initialize the default data
Rake db: migrate RAILS_ENV = "production"
Rake redmine: load_default_data RAILS_ENV = "production"

If rack 1.1.0 is missing, you need to uninstall rake 1.0.1 and install 1.1.0.
Gem uninstall rack
Gem install rack-v = 1.1.0

11. Install mongrel
Gem install mongrel
Start the service
Ruby script/server mongrel-e production
Edit iptables to allow access to 3000
VI/etc/sysconfig/iptables/
Add-A RH-firewall-1-INPUT-M state -- state new-m tcp-p -- dport 3000-J accept
Restart iptables
/Sbin/service iptables restart

12. lsof-I TCP: 3000
View PID
Kill-9 PID

13. Configure email

14. Configure ad

15. Copy Mysql Data
 

Related Article

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.