hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : VPS Tutorials : Installing Redmine+git on ubuntu 11.04 x64 VPS
Reply

Forum Jump

Installing Redmine+git on ubuntu 11.04 x64 VPS

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2012, 05:32 PM
paperwastage paperwastage is offline
Newbie
 
Join Date: Sep 2011
Posts: 14

Installing Redmine+git on ubuntu 11.04 x64 VPS


Installing Redmine+git on ubuntu 11.04 x64 VPS

Version Control System + wiki/other stuff

Following the tutorial below with some modification
http://www.x2on.de/2011/04/23/tutori...-ubuntu-11-04/

Requirements:
VPS
I used ubuntu 11.04 x64 as it was the latest version of ubuntu and I'm more familiar with this distro than others
RAM: at least 512MB, preferable more as Ruby/Rails takes up a lot

First, upgrade everything in your clean VPS. (mine came with apache2 preinstalled). I suggest making ssh-keys and installing fail2ban to prevent attacks. Everything I'm running through root
Code:
apt-get update
apt-get upgrade
Download the latest version from http://www.redmine.org/. The one I'm using is stable 1.3.0(2011-12-10).
Code:
cd /root #(or whatever directory you want)
wget http://rubyforge.org/frs/download.php/75597/redmine-1.3.0.tar.gz
tar xvf redmine-1.3.0.tar.gz
chown -R root:root redmine-1.3.0 #had to fix permissions for my vps
Take a look at the Redmine Install Requirements

Install the packages (from the tutorial , modifying a little based on the install requirements. Here is a list of the packages for 11.04 natty. I choose Ruby 1.8.7, Rails 2.3.14 and Rack 1.1.1
Code:
apt-get install ruby ruby1.8 ruby1.8-dev libgemplugin-ruby libgemplugin-ruby1.8 apache2-mpm-prefork libruby-extras libruby1.8-extras rake apache2-prefork-dev libapache-dbi-perl libapache2-mod-perl2 libdigest-sha1-perl build-essential libcurl4-openssl-dev 

apt-get install mysql-server libmysqlclient15-dev #make sure you set and remember the mysql root password
Create database
Code:
mysql -u root -p

CREATE DATABASE redmine_default CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'thisismyredminesqlpassword';
GRANT ALL privileges ON redmine_default.* TO 'redmine'@'localhost';
I moved my redmine folder to /usr/share/redmine/
Code:
mv /root/redmine-1.3.0 /usr/share/redmine/
Config the redmine installation
Code:
cp /usr/share/redmine/config/database.yml.example /usr/share/redmine/config/database.yml
Edit that database.yml
Code:
production:
  adapter: mysql
  database: redmine_default
  host: localhost
  username: redmine
  password: thisismyredminesqlpassword
  encoding: utf8
NOTE: tutorial says to install rubygems on your own since the 11.04 repo contains an older version. i didnt care, used the older version
Code:
apt-get install rubygems rubygems1.8
Install Rails + Rack. Remember that I chose Ruby 1.8.7, Rails 2.3.14 and Rack 1.1.1 earlier.
Code:
gem install rails -v=2.3.14
gem install rack -v=1.1.1
gem install mysql
gem install -v=0.4.2 i18n
Got some "No definition for ..." errors, but they are from the documentation installation. didnt care too much, google could show ways to solve it

Configure Redmine
Code:
cd /usr/share/redmine
mkdir public/plugin_assets #had to do this
chown -R www-data:www-data files log tmp public/plugin_assets
chmod -R 755 files log tmp public/plugin_assets
chmod -R 777 public/plugin_assets
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
Test Redmine at http://ip:3000
Code:
ruby script/server webrick -e production
------------

Set up apache2

Install passenger. Link your redmine public folder to /var/www
Code:
gem install passenger
apt-get install libapache2-mod-passenger
ln -s /usr/share/redmine/public /var/www/redmine
Configure apache. Edit file /etc/apache2/sites-available/redmine.mydomainname.com
Code:
<VirtualHost *:80>
    ServerName redmine.mydomainname.com

    DocumentRoot /var/www/

    PassengerDefaultUser www-data
    RailsEnv production
    RailsBaseURI /redmine
    SetEnv X_DEBIAN_SITEID "default"
    <Directory /var/www/redmine/>
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
Edit /etc/apache2/apache2.conf. Add to bottom of file
Code:
Include /etc/apache2/mods-available/passenger.conf
Activate your site
Code:
ln -s /etc/apache2/sites-available/redmine.mydomainname.com /etc/apache2/sites-enabled/redmine.mydomainname.com
Remove default entry
Code:
rm /etc/apache2/sites-enabled/000-default
Restart Apache and it should work
Code:
service apache2 restart
--------------------

Installing Git/gitosis
< to be continued >



Sponsored Links
  #2  
Old 01-08-2012, 05:48 PM
8088 8088 is offline
Web Hosting Master
 
Join Date: Nov 2010
Posts: 615
Or:
Code:
apt-get install redmine

  #3  
Old 01-08-2012, 06:57 PM
paperwastage paperwastage is offline
Newbie
 
Join Date: Sep 2011
Posts: 14
Quote:
Originally Posted by 8088 View Post
Or:
Code:
apt-get install redmine
redmine (1.0.5-1) [universe]
flexible project management web application\

vs latest redmine 1.3.0 stable

huh.. you'll be missing some features/bug fixes etc
http://www.redmine.org/projects/redmine/wiki/Changelog

Sponsored Links
  #4  
Old 01-08-2012, 07:17 PM
8088 8088 is offline
Web Hosting Master
 
Join Date: Nov 2010
Posts: 615
That contradicts
Quote:
Originally Posted by paperwastage View Post
i didnt care, used the older version
;-)

Also: http://packages.ubuntu.com/precise/redmine

  #5  
Old 01-08-2012, 07:31 PM
paperwastage paperwastage is offline
Newbie
 
Join Date: Sep 2011
Posts: 14
Quote:
Originally Posted by 8088 View Post
well, one package of rubygems(that would still work with 1.3.0) vs an older version of a big package redmine

and precise = 12.04LTS.. sure, you can try to do it yourself or even use BitNami Redmine Stack, but I prefer to learn how systems interact... and this guide is a backup for myself in case I need to do it again....

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fully Managed Redmine (Ruby on Rails) + Subversion on VPS ecocozza VPS Hosting 2 11-21-2010 02:03 PM
Installing Remote Desktop on Ubuntu Ruriko Hosting Security and Technology 5 10-19-2010 02:11 PM
GIT + Redmine + CPanel = Possible? or no... damainman Hosting Software and Control Panels 1 05-06-2010 05:48 PM
Installing pptpd vpn on Ubuntu 9.0.4 Matsta Hosting Security and Technology 1 11-16-2009 09:14 AM
Help Needed installing Windowx x64 with VMWare on a Linux MAchine AbbasJaffarali VPS Hosting 6 08-18-2007 01:52 PM

Related posts from TheWhir.com
Title Type Date Posted
Canonical to Close Cloud Storage Service Ubuntu One Web Hosting News 2014-05-01 08:34:02
Joyent Cloud Adds Platform Optimization, Support for Ubuntu Server Images Web Hosting News 2014-02-20 11:19:00
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
ServInt Offers Ubuntu OS Option with Flex VPS Plans Web Hosting News 2013-03-01 12:50:20
Canonical Releases Ubuntu Server 12.10 with OpenStack Folsom Web Hosting News 2012-10-19 11:11:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?