JUL 13
Installing Redmine 2.3.0 on Ubuntu 12.10
Environment: Redmine version 2.3.0.stable Ruby version 1.9.3 (x86_64-linux) Rails version 3.2.13 Environment production Database adapter Mysql2
Assuming you have a fresh install of UBUNTU 12.10, here are the steps required:
- Install LAMP using tasksel:
- $ sudo apt-get install tasksel
- $ sudo tasksel install lamp-server
- Set your root MYSQL passwords when asked.
- Install Ruby 1.9.3, Gem, Rails, and Passenger:
- $ sudo apt-get install python-software-properties
- $ sudo apt-add-repository ppa:brightbox/ruby-ng
- $ sudo apt-get update
- $ sudo apt-get install ruby rubygems ruby-switch
- $ sudo apt-get install ruby1.9.3
- $ sudo ruby-switch –set ruby1.9.1
- $ gem install bundler
- $ sudo apt-get install passenger-common1.9.1
- $ sudo apt-get install libapache2-mod-passenger
- Download Redmine 2.1.4 and place is /usr/share/redmine
- $ cd /usr/share/
- $ sudo apt-get install mercurial
- $ hg clone –updaterev 2.3-stable https://bitbucket.org/redmine/redmine-all redmine
- Install Redmine:
- $ sudo apt-get install libmysql-ruby libmysqlclient-dev
- $ sudo apt-get install libmagickwand-dev
- $ cd redmine
- $ sudo apt-get install rake
- $ bundle install –without development test postgresql sqlite
- $ gem install mysql2
Create New BLANK Database for Redmine:
- $ mysql -u root -p
- create database redmine character set utf8;
- create user ‘redmine’@’localhost’ identified by ‘REDMINEDB_PASSWORD’;
- grant all privileges on redmine.* to ‘redmine’@’localhost’;
- exit
- Configure Redmine for Database:
$ sudo cp /usr/share/redmine/config/database.yml.example /usr/share/redmine/config/database.yml $ sudo nano /usr/share/redmine/config/database.yml Modify to the following and save (ctrl+x) production: adapter: mysql socket: /var/run/mysqld/mysqld.sock database: redmine host: localhost username: redmine password: [password] encoding: utf8
- Setup the New database for Redmine:
- $ rake generate_secret_token
- $ RAILS_ENV=production rake db:migrate
- $ RAILS_ENV=production rake redmine:load_default_data
- Setup Apache to work with Redmine:
- $ sudo ln -s /usr/share/redmine/public /var/www/redmine
- $ sudo nano /etc/apache2/sites-available/redmine
- Type the following into the new redminetext:
<virtualhost *:80>
DocumentRoot /usr/share/redmine/public
PassengerResolveSymlinksInDocumentRoot on
</virtualhost>
$ sudo a2dissite 000-default
$ sudo a2ensite redmine
$ chmod 777 /usr/share/redmine/tmp
$ chmod 777 /usr/share/redmine/files
$ mkdir /usr/share/redmine/public/plugin_assets
$ chmod 777 /usr/share/redmine/public/plugin_assets
$ chmod 777 /usr/share/redmine/log
- Reload and restart apache2 and mysql:
$ sudo /etc/init.d/mysql restart
$ sudo service apache2 restart
Access web site with user admin password admin.
http://localhost/
No comments:
Post a Comment