Results 1 to 6 of 6
Threaded View
-
01-08-2012, 05:32 PM #1Newbie
- Join Date
- Sep 2011
- Posts
- 17
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
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
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
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';
Code:mv /root/redmine-1.3.0 /usr/share/redmine/
Code:cp /usr/share/redmine/config/database.yml.example /usr/share/redmine/config/database.yml
Code:production: adapter: mysql database: redmine_default host: localhost username: redmine password: thisismyredminesqlpassword encoding: utf8
Code:apt-get install rubygems rubygems1.8
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
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
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
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>
Code:Include /etc/apache2/mods-available/passenger.conf
Code:ln -s /etc/apache2/sites-available/redmine.mydomainname.com /etc/apache2/sites-enabled/redmine.mydomainname.com
Code:rm /etc/apache2/sites-enabled/000-default
Code:service apache2 restart
Installing Git/gitosis
< to be continued >
Similar Threads
-
Fully Managed Redmine (Ruby on Rails) + Subversion on VPS
By ecocozza in forum VPS HostingReplies: 2Last Post: 11-21-2010, 02:03 PM -
Installing Remote Desktop on Ubuntu
By Ruriko in forum Hosting Security and TechnologyReplies: 5Last Post: 10-19-2010, 02:11 PM -
GIT + Redmine + CPanel = Possible? or no...
By damainman in forum Hosting Software and Control PanelsReplies: 1Last Post: 05-06-2010, 05:48 PM -
Installing pptpd vpn on Ubuntu 9.0.4
By Matsta in forum Hosting Security and TechnologyReplies: 1Last Post: 11-16-2009, 09:14 AM -
Help Needed installing Windowx x64 with VMWare on a Linux MAchine
By AbbasJaffarali in forum VPS HostingReplies: 6Last Post: 08-18-2007, 01:52 PM