Koozali.org: home of the SME Server

[ANNOUNCE] HOW-TO install Redmine

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
[ANNOUNCE] HOW-TO install Redmine
« on: October 23, 2008, 04:24:25 PM »
Hi All,

I have just added a new howto http://wiki.contribs.org/Redmine for installing Redmine (See http://www.redmine.org) on SME.

Redmine is a software project management environment. Similar to Trac, but with more features (e.g. multi project, news, forums, file repository, etc.) and on my system, performance is significantly faster than the Trac environments I used before.

Enjoy!

Marco

Adelaide - Australia

Offline cyberjuls2

  • *
  • 40
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #1 on: January 29, 2009, 02:03:08 PM »
Ok,

just doing the install.

1-You must first install subversion contribs (that was not working for me with fresh 7.4 install) thus you get svn command access.
2-creating redmine user via panel then granting shell access (great post here : http://forums.contribs.org/index.php/topic,36951.0.html)
3-installing Ror is ok
4-back to redmine, when typing:
Code: [Select]
[root@cube ~]# su -
[root@cube ~]# su - redmine
-bash-3.00$ cd /opt
-bash-3.00$ svn checkout http://redmine.rubyforge.org/svn/trunk redmine
svn: Impossible de créer le répertoire 'redmine': Permission non accordée
seems like i don't get permission to create something in /opt
Any idea?

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #2 on: January 29, 2009, 10:29:26 PM »
Code: [Select]
[quote author=cyberjuls2 link=topic=42419.msg205174#msg205174 date=1233234188]
[root@cube ~]# su - redmine
-bash-3.00$ cd /opt
-bash-3.00$ svn checkout http://redmine.rubyforge.org/svn/trunk redmine
svn: Impossible de créer le répertoire 'redmine': Permission non accordée
seems like i don't get permission to create something in /opt
Any idea?
[/quote]

User redmine may not have permission to create anything in /opt.
Thinking back to it, I might have done it as root and then changed permissions back to user redmine
Like with

 chown -R redmine:redmine /opt/redmine

Marco
Adelaide - Australia

Offline cyberjuls2

  • *
  • 40
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #3 on: January 30, 2009, 02:18:17 AM »
Done

Redmin working!!! man that was weird, but...that rocks. don't need to be logged as redmin, stay as root for this problem i raised. i encountered many others, will debrief all this later. Got to go to sleep.

c ya

Offline cyberjuls2

  • *
  • 40
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #4 on: January 30, 2009, 10:37:00 AM »
Ok now i've slept i'll debrief the situation i faced yesterday so you can change the how to.

1-Install Subversion contribs : http://wiki.contribs.org/Subversion
Install PHPmyAdmin : http://wiki.contribs.org/PHPMyAdmin

2-Install Ror but force 2.1.2 version for the moment (don't know why, but at the end it has told me to install 2.1.2.
Code: [Select]
gem install rails --version 2.1.2
3-Install Redmine
3.1 Create user redmine (use this link : http://forums.contribs.org/index.php/topic,36951.0.html to see what option you have to give shell access to redmine user. At the moment i'm really not sure you need it because you don't need redmine shell access as in the how to)
3.2 do not do this:
Code: [Select]
su - redmine
 cd /opt
 svn checkout http://redmine.rubyforge.org/svn/trunk redmine
but this : Stay root
 
Code: [Select]
cd /opt
 svn checkout http://redmine.rubyforge.org/svn/trunk redmine
It can stop without explanation. I just removed the redmine folder that was created and restart command until it works.

4-Create the Redmine database
Follow how to but just remember that localhost must stay "localhost" do not replace with "myservername"
database is in utf8_general_ci and redmine@localhost granted full access on the base

5-Connecting Redmine to the database
Ok no prob follow how to, just remember that localhost must stay "localhost" do not replace with "myservername" (same as database creation)
Code: [Select]
cd /opt/redmine/config
cp database.yml.example database.yml
We are already in config folder according to first command!

6-Create the database structure
ok normally no prob if you have rails 2.1.2 (that was here that it told me that it need rails 2.1.2)

7-Start the server
Ok, just don't close your ssh session because otherwise the site is going down. Just let open your session, and log in http://yourservername:3000/ (log:admin;pass:admin).

And play....
Think i have to go further in the howto so that the server don't shut off automatically. Will tell you all what's up then.

From what i've seen, Redmine just match what i was looking for (kind of basecamp clone). I'm leading a small architecture office in france and i'm sure my clients will be really happy to get such a professional interface to xchange files and informations.

Hope we will get a full contrib soon for Redmine.
kudo's to Marco hess because installation is not really linear and the how to was robust enough so someone like me (linux nooby) could with a bit of time create a redmine system.

PS:
would need more information on this command:
Code: [Select]
  <Location /redmine>
    Order Deny,Allow
    Deny from All
    Allow from 127.0.0.1 10.1.0.0/255.255.255.0
  </Location>
I don't understand exactly how it restrict ip adresses to local lan! by the way my local lan adress are 192.168.1.x so maybe it's not included in the range you wrote.
« Last Edit: January 30, 2009, 10:47:25 AM by cyberjuls2 »

Offline cyberjuls2

  • *
  • 40
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #5 on: January 31, 2009, 02:20:57 AM »
Ok it did work.

Hard to get it working on the internet. here' what i did.

8-Accessing Redmine through your main webserver

 
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 vim 95redmine

 
Code: [Select]
# Redmine proxy to connect to mongrel process on port 2555 (stayed on port 3000 can't get it working otherwise)

  ProxyPass        /redmine http://localhost:3000
  ProxyPassReverse /redmine http://localhost:3000

  <Location /redmine>
    Order Deny,Allow
    Deny from All
    Allow from All
  </Location>
Allow from All so it can be accessed via internet. not sure it's good or not, but better experienced people can share their knowledge on this.

then expand templates same way as in howto
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd-e-smith restart

then:
Code: [Select]
cd  /opt/redmine/config
 vim environment.rb
no need to be in redmine user mode here, just stay root.

Code: [Select]
ActionController::AbstractRequest.relative_url_root = "/redmine"Add this really on the last line after the last "end" command in the text file

9-Restart server

Code: [Select]
cd /opt/redmine
ruby script/server -e production
Should be a reflex to restart everytime you made a change

will check last howto part tomorow as it seems that it start definitly the server. Now it works but my putty shell must stay open, if i close it, the server stop.

Hope it helps

« Last Edit: January 31, 2009, 02:23:12 AM by cyberjuls2 »

Offline cyberjuls2

  • *
  • 40
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #6 on: February 03, 2009, 09:05:25 AM »
ok, resolved last part.

just once you have change this to port 2555

Code: [Select]
# Redmine proxy to connect to mongrel process on port 2555 (stayed on port 3000 can't get it working otherwise)

  ProxyPass        /redmine http://localhost:3000
  ProxyPassReverse /redmine http://localhost:3000

  <Location /redmine>
    Order Deny,Allow
    Deny from All
    Allow from All
  </Location>

got to start your server with this command, as in the final script.

Code: [Select]
ruby script/server -e production -p 2555
else, it will start by default on port 3000

Did all the final stuff, then wrote script in /etc/init.d (saved as redmine with no extension)

Code: [Select]
chown -R redmine:redmine /opt/redmineto change rights on the folder as marco hess suggested.

But whenever i try to run script
Code: [Select]
/etc/init.d/redmine
-bash: /etc/init.d/redmine: Permission non accordée
I get the second line as an answer. equal if i run the script as root or redmine

Any idea?

Activate script with this command :
Code: [Select]
sudo chmod +x /etc/init.d/redminehttp://doc.ubuntu-fr.org/redmine#automatiser_le_lancement_de_redmine
then getting this...
Code: [Select]
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:628:in `report_activate_error': Could not find RubyGem mongrel (>= 0) (Gem::LoadError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:139:in `activate'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
        from /etc/init.d/redmine:9


« Last Edit: February 03, 2009, 09:18:43 AM by cyberjuls2 »

Offline cyberjuls2

  • *
  • 40
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #7 on: February 03, 2009, 11:17:12 AM »
Ok found the problem, but need help to solve it.

Marco seems you forgot to add mongrel installation process in your how-to. By defaut when launching redmine, this one start WEBrick and not mongrel. As in production mongrel should be used, and because all your launching scripts are referring to mongrel, i assume you did it, but forgot to mention it.
Could you pleaase post the how to here? Thanks.


found something here, but i'm not sure if it's the right way.
http://www.admincafe.re/forums/showthread.php?t=110

here there are also info on installing mongrel but not sme specific.
http://ubuntuforums.org/showthread.php?t=674598&highlight=redmine
« Last Edit: February 03, 2009, 12:17:25 PM by cyberjuls2 »

Offline cristihcd

  • 4
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #8 on: February 20, 2009, 02:00:47 PM »
I used:
Code: [Select]
yum install make gcc (also useful later for sqlite libs).
Code: [Select]
gem install rails mongrel mongrel_cluster daemons --include-dependencies
See also http://www.sheepguardingllama.com/?p=3012

cheers

Offline sti

  • *
  • 29
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #9 on: May 08, 2009, 01:51:13 PM »
Hi all

after doing all that was discribed in this forum, I get the message
->Ruby version is not up-to-date
when trying to start mongrel

Ruby is 1.8.5
Rails is  2.3.2
mongrel is 1.1.5

someone can help ?

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #10 on: May 08, 2009, 02:19:08 PM »
Hi all

after doing all that was discribed in this forum, I get the message
->Ruby version is not up-to-date
when trying to start mongrel

Ruby is 1.8.5
Rails is  2.3.2
mongrel is 1.1.5

someone can help ?

Does it say:
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix

then it think that it just a warning that it loaded a special workaround fix of some kind for the older version of ruby. On my system I have not found any issues of things not working properly.

Marco
Adelaide - Australia

Offline dimvin

  • 7
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #11 on: June 11, 2011, 04:32:54 PM »
Hi

Has anyone played with ruby/gem/rails/redmine on a 7.5.1 smeserver?

I've had a look at the redmine demo and it would be nice to be able to deploy, I had a look at the how to ( :) 2 years old now (: ) and in it's current form won't install.

The ruby package is still 1.8.5 in the repo, I got as far as the gem install, when i tried installing rails I got a message saying ruby was an old version. Had a good look around the net for past couple of days but short of compiling (not my field, nor do i have a test environment) I haven't found a solution. Any ideas or pointers?

Thanks in advance.
Dim.
vin, a little bit dim.

Offline dimvin

  • 7
  • +0/-0
Re: [ANNOUNCE] HOW-TO install Redmine
« Reply #12 on: June 21, 2011, 07:59:34 AM »
Just in case anyone else was looking down this path, don't.

Go to SME8 and install redmine on ruby3.2 or something like that.

Cheers
dimvin

vin, a little bit dim.
vin, a little bit dim.