HowTo: RedMine 2.0.0, Passenger & Subversion Repositories in Ubuntu 12.04

This is an update to my earlier installation guide for Redmine 1.1.0.

The new Redmine 2.0.0 release now supports Rails 3.2.3 and that, along with a few other changes, makes the installation route slightly different.

As stated before, I AM NOT a Linux/Ubuntu guru, so any mistakes are of my own making and I’d appreciate any feedback to make the installation better/clearer.

So, with all that said, here goes:

I know that Redmine can be installed as a package in Ubuntu, but it doesn’t appear to be the latest version (1.4.2 at the time of writing). So I’m taking the longer route to get it working, as I couldn’t get it to configure the way I want. It does have the advantage that I’m using the very latest version straight from RubyForge.

For this install, I’m using a fresh install of Ubuntu 12.04 LTS, configured as a LAMP server, so Apache, MySQL & PHP are already installed.
Get into the folder where we’re going to install & configure Redmine from:

cd /usr/share
Now we’re going to download the latest version of Redmine from RubyForge:
sudo wget http://rubyforge.org/frs/download.php/76134/redmine-2.0.0.tar.gz

Unpack the archive:

sudo tar xvfz redmine-2.0.0.tar.gz

And tidy things up a little:

sudo rm redmine-2.0.0.tar.gz
sudo mv redmine-2.0.0 redmine

We also need to adjust some of the ownership of the folders

sudo chown -R root:root /usr/share/redmine

However, we need to make sure that a particular file is set to www-data as owner. This is because Passenger runs as the user that owns this file.

sudo chown www-data /usr/share/redmine/config/environment.rb

We’ll create a symbolic link from the main website home back to our actual Redmine application directory:

sudo ln -s /usr/share/redmine/public /var/www/redmine

Now create the database:

sudo mysql -u root -p

This will prompt you for the password for the ‘root’ MySql account you created when you installed MySql.

The prompt will change to:

mysql>

Now enter the following, line by line:

CREATE DATABASE redmine character SET utf8;
CREATE user 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL privileges ON redmine.* TO 'redmine'@'localhost';

Type exit to leave the MySQL prompt.

Now configure the database:

sudo cp redmine/config/database.yml.example redmine/config/database.yml

Run nano or your favourite editor and edit it to the following:

sudo nano redmine/config/database.yml
production:
 adapter: mysql2
 database: redmine
 host: localhost
 username: redmine
 password: my_password
 encoding: utf8
NOTE: Make sure you change the adapter to mysql2! I spent HOURS trying to debug this issue.
NOTE: Don’t forget to change my_password to a password of your own choosing and that it matches what you configured in the MySQL database.
Firstly install all the required libraries:
sudo apt-get install ruby1.9.3 libmysqlclient-dev
If you’re going to use RMagick (to enable Gantt export to png image), you’ll need to add these libraries:
sudo apt-get install libmagickcore-dev libmagickwand-dev
New to Redmine version 1.4.0 and above is support the Bundler to install all the Ruby Gems needed by Redmine.
Enter the following to install Bundler:
sudo gem install bundler
Change into the redmine directory to run Bundler to install our Gems:
cd redmine
As we’ll only be configuring for MySQL, our Bundler needs to know NOT to include Postgre and SQLite.
sudo bundle install --without development test postgresql sqlite
NOTE: If you’re not going to use ImageMagick then change the line to read:
sudo bundle install --without development test postgresql sqlite rmagick
Configure Redmine:
sudo rake generate_secret_token
sudo RAILS_ENV=production rake db:migrate 
sudo RAILS_ENV=production rake redmine:load_default_data

When the last command completes, it will prompt to choose your language. Type the code for the best match to your country & press Enter.

We now need to configure correct directory permissions:

sudo mkdir public/plugin_assets
sudo chown -R www-data:www-data files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets

Test Redmine:

sudo ruby script/rails server webrick -e production

If you enter your webaddress:http://my_website:3000 you should see the Redmine homepage.

If all is well at this point, we can now configure Passenger to make sure it launches when Apache runs.

Install & Configure Passenger:

sudo gem install passenger

Before we can install the Passenger module, we need some additional software:

sudo apt-get install libcurl4-openssl-dev libssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev
Now we are set to install the Passenger module for Apache:
sudo passenger-install-apache2-module

Passenger will run & compile the source code into the module for Apache.

Now use nano or your favourite editor to create the loader:

sudo nano /etc/apache2/mods-available/passenger.load
LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.12/ext/apache2/mod_passenger.so

Make a link to make the module enabled:

sudo ln -s /etc/apache2/mods-available/passenger.load /etc/apache2/mods-enabled/passenger.load

Now create a configuration file for Passenger:

sudo nano /etc/apache2/mods-available/passenger.conf
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.12
PassengerRuby /usr/bin/ruby1.9.1

Now configure Apache for our new site:

sudo nano /etc/apache2/sites-available/mysite
<VirtualHost *:80>
 ServerName my_domain.com
 DocumentRoot /var/www/redmine
 ServerAdmin user@example.com
 LogLevel warn
 ErrorLog /var/log/apache2/redmine_error
 CustomLog /var/log/apache2/redmine_access combined
 <Directory /var/www/redmine>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
 allow from all
 RailsBaseURI /redmine
 PassengerResolveSymlinksInDocumentRoot on
 </Directory>
</VirtualHost>

We also need to tell Apache how to configure Passenger:

sudo nano /etc/apache2/apache2.conf

Add the following line at the end of the file:

Include /etc/apache2/mods-available/passenger.conf

Finally, enable the site:

sudo ln -s /etc/apache2/sites-available/mysite /etc/apache2/sites-enabled/mysite

Remove the default site:

sudo rm /etc/apache2/sites-enabled/000-default

Make sure the Passenger module is enabled:

sudo a2enmod passenger

And, restart Apache:

sudo service apache2 restart

If everything went well, then you should be able to see Redmine in your browser:

http://my_website
Configure Subversion

We need to install the necessary packages before we start:

sudo apt-get install subversion libapache2-svn libapache2-mod-perl2
We need to copy the Perl script from Redmine to somewhere it can be accessed:
sudo ln -s /usr/share/redmine/extra/svn/Redmine.pm /usr/lib/perl5/Apache/Redmine.pm

Create the site description for our Subversion HTTP access:

sudo nano /etc/apache2/sites-available/svn

Enter the following details:

# /svn location for users
PerlLoadModule Apache::Redmine
<Location /svn>
 DAV svn
 SVNParentPath "/var/svn"
 Order deny,allow
 Deny from all
 Satisfy any
 PerlAccessHandler Apache::Authn::Redmine::access_handler
 PerlAuthenHandler Apache::Authn::Redmine::authen_handler
 AuthType Basic
 AuthName "Redmine SVN Repository"
 #read-only access
 <Limit GET PROPFIND OPTIONS REPORT>
 Require valid-user
 Allow from my_domain.com
 Allow from localhost
 Satisfy any
 </Limit>
 # write access
 <LimitExcept GET PROPFIND OPTIONS REPORT>
 Require valid-user
 </LimitExcept>
 ## Mysql-Settings
 RedmineDSN "DBI:mysql:database=redmine;host=localhost"
 RedmineDbUser "redmine"
 RedmineDbPass "my_password"
</Location>

Now setup our repository directory:

sudo mkdir -p /var/svn
sudo chown -R www-data:www-data /var/svn
sudo chmod 0750 /var/svn

Now you need to log into Redmine, then select Administration->Settings->Repositories.

Tick the ‘Enable WS for repository management’ option and then click ‘Generate a key’. Remember to click ‘Save’ to store all the settings.

Now run the following code, entering the data that is correct for your site & key:

ruby /usr/share/redmine/extra/svn/reposman.rb --redmine my_domain.com --svn-dir /var/svn --owner www-data --url http://my_domain.com/svn --verbose --key=my_api_key

This should query your Redmine installation and attempt to create a project directory under the repository root you specified. As this isn’t being run as root this will fail, but that’s fine.

Now set this up so it’ll automatically check for any new projects & create any necessary repositories:

sudo crontab -e

Add the following at the end:

*/10 * * * * ruby /usr/share/redmine/extra/svn/reposman.rb --redmine my_domain.com --svn-dir /var/svn --owner www-data --url http://my_domain.com/svn --verbose --key=my_api_key

Now enable the site:

sudo ln -s /etc/apache2/sites-available/svn /etc/apache2/sites-enabled/svn

Finally, restart Apache

sudo service apache2 restart

And that’s all…finally! 🙂

References:

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu

http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

http://www.modrails.com/install.html

http://lordsauron.wordpress.com/2008/06/18/zero-to-redmine-in-22-steps/

https://help.ubuntu.com/community/CronHowto

http://rails.vandenabeele.com/blog/2011/11/26/installing-ruby-and-rails-with-rvm-on-ubuntu-11-dot-10/

http://stackoverflow.com/questions/9134113/i-cant-run-bundler-keep-getting-error

Advertisements

69 thoughts on “HowTo: RedMine 2.0.0, Passenger & Subversion Repositories in Ubuntu 12.04

  1. Thanks for the details step-by-step guide!

  2. 1. “sudo mkdir public/plugins_assets” should be “sudo mkdir public/plugin_assets”

    2. For those who are using apache friends – xampp package, you need to add the following statement in database.yml:
    “socket: /your/path/to/mysql.sock”, which default to be /opt/lampp/var/mysql/mysql.sock

  3. First, thanks for your guide.

    I have problem with “RAILS_ENV=production rake db:migrate” step.
    rake aborted!
    Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)
    Tasks: TOP => db:migrate => environment
    (See full trace by running task with –trace)

    I have tried to install that gem: gem install activerecord-mysql2-adapter
    ERROR: Could not find a valid gem ‘activerecord-mysql2-adapter’ (>= 0) in any repository
    ERROR: Possible alternatives: activerecord-jdbch2-adapter, activerecord-jdbcmysql-adapter, activerecord-postgis-adapter, activerecord-jdbc-adapter, activerecord-odbc-adapter

    Please, show me how to fix.

    Thanks & Best Regards,

    Thongtt

    • Same issue here for me.

    • Great tutorial! I have one question:

      Before editing the Apache2 settings, when the passenger apache module is installed, I get this in the installation:

      Suppose you have a Rails application in /somewhere. Add a virtual host to your
      Apache configuration file and set its DocumentRoot to /somewhere/public:

      ServerName http://www.yourhost.com
      # !!! Be sure to point DocumentRoot to ‘public’!
      DocumentRoot /somewhere/public

      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews

      Should I be modifying what you put up to make sure I don’t have it in /var/www/redmine but in /var/www/redmine/public ? Does that make a difference, and if so, how do I modify everything else?

      Thank You!

    • Add

      gem “mysql2”, “~> 0.3.11”

      in your Gemfile after

      gem “bundler”

      then use again

      sudo bundle install –without development test postgresql sqlite

    • I have same issue. Ubuntu 12.04

    • Editing /usr/share/redmine/Gemfile fixed this issue. I’m commented out (added #) to this strings:

      # gem “rmagick”, “>= 2.0.0”
      # gem “pg”, “>= 0.11.0”
      # gem “sqlite3”
      # gem “mysql”

      #platforms :mri_19, :mingw_19 do
      # group :mysql do
      gem “mysql2”, “~> 0.3.11”
      # end
      #end

    • After more investigation I find out, that I also have ruby 1.8 already installed and it was using as a main ruby package, that’s why I have this problem.

      To solve it:
      1. Check that ruby packages is installed by “dpkg -L | grep ruby”.
      2. Remove all ruby packages with config files by command “apt-get purge package_name”
      3. Remove gems folder “rm -R /var/lib/gems”.
      4. Install all from the beginning of this guide.

    • maybe the problem is with your database configuration file

    • production:
      adapter: mysql2
      database: redmine
      host: localhost
      username: redmine
      password: my_password
      encoding: utf8

      here at the passwort you must make “123”

    • I have the same problem with Thongtt..
      I have done “gem install acriverecord-mysql2-adapter” and also can see that it exists in Gemfile, but still it gives this error.
      Thanks in advance.

    • I had the same issue.
      It was because of bad syntax in config/database.yaml
      Make sure you add a space after the ‘:’ in the line passowd:

    • Really goo instructions. Here’s what I did to get it working when I hit a wrinkle!

      Edit the Gemfile, make sure lines that look like

      gem “mysql”

      are changed to say

      gem “mysql2”

      When you run the command

      sudo passenger-install-apache2-module

      Take careful note of the lines it tells you to put in /etc/apache2/mods-available/passenger.load and /etc/apache2/mods-available/passenger.conf

      Use the value it says in the output to the command NOT the values given above (it’s not they are wrong per se but they are not necessarily the correct locations in your installation!) look in /var/log/apache2/error.log if it can’t find passenger it will tell you.

      Instead of the line

      sudo ln -s /etc/apache2/mods-available/passenger.load /etc/apache2/mods-enabled/passenger.load

      I think you also need to link to the corresponding passenger.conf

      For consistency with other mods I think you should do it this way

      cd /etc/apache2/mods-enabled
      sudo ln -s ../mods-available/passenger.load .
      sudo ln -s ../mods-available/passenger.conf .

      In /etc/apache2/apache2.conf instead of the instruction above add the line

      Include /etc/apache2/mods-available/passenger.conf

      i.e. reference the mods-enabled not the availabe one.

    • This a great post & addresses the Ubuntu install quite well, thanks.

      I’m getting hung up on the same bug as the one above (on a *clean* Ubuntu 12.04 64 VM):

      $ sudo RAILS_ENV=production rake db:migrate
      rake aborted!
      Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)

      Tasks: TOP => db:migrate => environment
      (See full trace by running task with –trace)

      I’m following this up with:

      $ sudo gem install activerecord-mysql2-adapter mysql2
      Successfully installed activerecord-mysql2-adapter-0.0.3
      Building native extensions. This could take a while…
      Successfully installed mysql2-0.3.11
      2 gems installed
      Installing ri documentation for activerecord-mysql2-adapter-0.0.3…
      Installing ri documentation for mysql2-0.3.11…
      Installing RDoc documentation for activerecord-mysql2-adapter-0.0.3…
      Installing RDoc documentation for mysql2-0.3.11…

      & try running again the initial command, but the problem remains.

      I try to check the setup (? sorry – I’m not a ruby dev):
      $ sudo bundle install | grep -i sql
      Using mysql (2.8.1)

      Indications are I need to have the Gemfile to change mysql to mysql2, but honestly I have no idea what to do

      • OK – think I found a bug & a solution to said bug – I can be wrong, but this allowed be to sake a step forther.

        In the Gemfile, I searched for references to “mysql” & commented out & replaced (based on the next portion of same file)

        platforms :mri_18, :mingw_18 do
        group :mysql do
        # gem “mysql”
        gem “mysql2”, “~> 0.3.11”
        end
        end

        ran `sudo bundle update` & then the buggy command again

    • sudo nano redmine/config/database.yml
      production:
      adapter: mysql2 mysql2)
      database: redmine
      host: localhost
      username: redmine
      password: my_password
      encoding: utf8

  4. I’m getting the same error as Thongtt

  5. “Thongtt PERMALINK” Same problem.

  6. Thanks for your wonderful instructions.
    I’ve successfully install Redmine 2.0.3 on Ubuntu 12.04 server

  7. One thing you have to be careful of is that ruby 1.8.7 is not the default ruby being I found that this howto worked perfectly once I found this out.

    ruby –version
    sudo update-alternatives
    Tells you what you version you are using and then you have to options to choose ruby1.9.1 which can be 1.9.3

    Or http://lenni.info/blog/2011/12/installing-ruby-1-9-2-on-ubuntu-11-10-oneric-ocelot-without-using-rvm/#uninstall

    Great post

  8. I forgot watch your paths they change LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.12/ext/apache2/mod_passenger.so

  9. Thanks. This is a awesome guide

  10. Great document !! Thank You.
    If You want to update document: passenger-3.0.12 is now passenger-3.0.14

  11. Thanks for this very detailed guide! As soon as it is running with Passenger, neither the attachments nor the plugin assets directories are writable anymore (according to Redmine -> Administration -> Information). They were when I tested the Redmine installation with “sudo ruby script/rails server webrick -e production”. Any ideas?

  12. Simply you can install it with :
    sudo apt-get install redmine

  13. Hi! First, work’s fine! only version, I needed to change passenger-3.0.12 for passenger-3.0.14.Thanks!

  14. same problem as Thongtt… Any thoughts would be helpful to get past this bit.

  15. DocumentRoot in the virtual host file should be:

     DocumentRoot /var/www 

    instead of:
    DocumentRoot /var/www/redmine

    It doesn’t work if you’re using that. Please fix it. Took me for ever to figure that out

    • Document root I used:

      <VirtualHost *:80>
         DocumentRoot /var/www
         LogLevel warn
         ErrorLog /var/log/apache2/redmine_error
         CustomLog /var/log/apache2/redmine_access combined
         <Directory var/www/html>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride all
         RailsBaseURI /redmine
         PassengerResolveSymlinksInDocumentRoot on
        </Directory>
      </VirtualHost>
      

      Please see: http://doc.ubuntu-fr.org/redmine#servir_redmine_via_apache

  16. Thongtt, please check database.yml, it has adapter = mysql, try changing it to mysql2

  17. Anne Jon Schoonhoven

    Hej, Thank you for your useful guide. I had some trouble when configuring this with Rails 3. Redmine wasn’t thinking about starting at all.

    The solution for me was using the directive RackBaseURI instead of RailsBaseURI, which is depricated in Rails 3. Hope it helps.

    See also http://stackoverflow.com/questions/4430847/passenger-error-phusionpassengerclassicrailsapplicationspawnererror

  18. Thank you.Your article was a big help.

  19. Thanks for your time dedicated to this great step by step guide. But you forgot to default passenger runs as ‘noboy’.
    To fix this we must add the following line in passenger.conf:

    PassengerDefaultUser www-data

    Then, have fun with Redmine. ;-D

  20. Hi Andy,
    thanks 4 this great install-guide however i am having difficulties: I cant restart the apache2 and am stuck at:

    sudo a2enmod passenger
    And, restart Apache:

    sudo service apache2 restart

    after restarting I get:

    root@h2076703:/etc/apache2/sites-available# sudo service apache2 restart
    apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/passenger.load: Cannot load /var/lib/gems/1.9.1/gems/passenger-3.0.12/ext/apache2/mod_passenger.so into server: /var/lib/gems/1.9.1/gems/passenger-3.0.12/ext/apache2/mod_passenger.so: cannot open shared object file: No such file or directory
    Action ‘configtest’ failed.
    The Apache error log may have more information.
    …fail!

    If you have any idea how to solve my prob. I’d be glad hearing from you!

  21. Thank you very much!
    Follow your guide, I succeeded.

  22. Thanks for your guide. It helped me installing Redmine on a 12.04 server. I didn’t follow it completely though. I installed the Passenger stuff from the Ubuntu repositories and used ruby1.8 instead of ruby1.9.3. When doing this you can skip the whole “Install & configure Passenger” section.
    This has some implications though:
    * In database.yml the adapter designation doesn’t have to be changed to mysql2.
    * RailsBaseURI /redmine needs to be RackBaseURI /redmine in your Apache conf.

    Best,

    Jeremy

  23. I have problem with Make sure that `gem install mysql -v ‘2.8.1’`. I solved after installed libmysql++-dev on ubuntu. sudo apt-get install libmysql++-dev.

  24. I’ve exactly the same problem as Thongtt!!
    Any idea?

    Thanks.

  25. sudo nano /etc/apache2/mods-available/passenger.conf

    and add the following line:

    PassengerDefaultUser www-data

  26. Just a question. Is it possible to use libapache2-mod-passenger installed through apt-get instead downloading the gem and compile the apache module ?

  27. sudo ln -s /etc/apache2/sites-available/svn /etc/apache2/sites-enabled/svn
    after enable this link
    sudo service apache2 restart bellow error comming

    sudo service apache2 restart
    Syntax error on line 2 of /etc/apache2/sites-enabled/svn:
    Invalid command ‘PerlLoadModule’, perhaps misspelled or defined by a module not included in the server configuration
    Action ‘configtest’ failed.
    The Apache error log may have more information.
    …fail!

  28. I’ve tried with libapache2-mod-passenger, but it’s not worked out of the box.
    Back on the way you described, I’ve a suggestion from your tutorial:

    In /etc/apache2/mods-available/passenger.conf I think is better to add a line saying:

    PassengerDefaultUser www-data

    In this way passenger will run with www-data user permission instead of nobody. This prevent error coming from the uploading of documents in Redmine.

    Hope to help somebody, thanks for the tutorial.

  29. @Thongtt: switch back to ‘adapter: mysql’ instead of mysql2 in redmine/config/database.yml

  30. Very very very excellent, I daresay !
    I installed redmine 2.1.2 with your procedure.
    Passenger is V 3.0.17 now, the rest is identical absolutely.

    I had subsequent trouble with 2 things:
    1.- Phusion couldn’t be loaded by Apache for want of a link:
    ln -s /var/lib/gems/1.9.1/gems/passenger-3.0.17 /usr/share/phusion-passenger
    2.- Phusion then started with the anonymous user and could’t write to the “files” directory (owned by www-data).
    resource: http://www.modrails.com/documentation/Users%20guide%20Apache.html#user_switching
    Consequently, fix:
    chown www-data /usr/share/redmine-2.1.2/config.ru

    You helped me a lot, Andy, thanks a bundle 🙂

  31. Hi,
    I was having troubles with “Attachments directory writable” and “Plugin assets directory writable” that was set to false.

    I found in another forum that editing the passenger conf the following way worked out:

    sudo nano /etc/apache2/mods-available/passenger.conf

    Add this at the end:

    PassengerDefaultUser www-data

    Otherwise great howto, thanks.

  32. Christian Hammer

    I had an error while restarting apache because the version of passenger.

    I had to adjust your version of /etc/apache2/mods-available/passenger.conf
    from
    PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.12
    PassengerRuby /usr/bin/ruby1.9.1
    to
    PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.18
    PassengerRuby /usr/bin/ruby1.9.1

    But still a great tutorial. The first one I tried that actually worked. I have to fix an issue with the apache intergration though. When I open the site in my browser it only show the file list. But I think there should be no problem to fix that.

    Thanks

    • > When I open the site in my browser it only show the file list. But I think there should be no problem to fix that.

      How did you fix this??

  33. hi, i try to install Redmine 2.1.4, they have no problem to follow you tutorial, but when i try to do : “sudo ruby script/rails server webrick -e production” don’t work :s, next i continu and at the ned i have nothing in my home page, can you help me? :s

  34. Hi Andy, thanks for a great tutorial!

    Since my Redmine was initializing a bit slow, I found out it is due Passenger’s optimization which turns the server off if there is no connection to it for specified time (300 sec by default). Therefore I added these two lines to the /etc/apache2/sites-available/mysite:


    CustomLog /var/log/apache2/redmine_access combined
    PassengerPreStart http://localhost/redmine
    PassengerPoolIdleTime 0

    This way Apache-Redmine is not shut down after 300 seconds of inactivity. In addition to that, PassengerPreStart tells Apache to load the site when it is started.

    I hope it helps somebody.

    Cheers,
    Nejc

  35. will it work for ubuntu 10.10 LTS ?

  36. i think you are missing a command just after your database configuration

    gem install activerecord-mysql-adapter

    thanks for this great summary.

    http://www.brainpowered.net

  37. I have the same result as Thongtt, stuck at the “Configure redmine” step.

  38. Thank you!

    You have helped me *a lot* with your guide!

    I had a problem with uploading a file to a Redmine project,
    after the upload the following error was shown in the browser:

    > Internal error
    >
    > An error occurred on the page you were trying to access.
    > If you continue to experience problems please contact your redMine administrator for assistance.

    The solution was mentioned in this Redmine forum:
    http://www.redmine.org/boards/2/topics/19859

    Problem: Passenger is running as user nobody / ubuntu
    Solution: Define PassengerDefaultUser in passenger.conf

    > Now create a configuration file for Passenger:
    >
    > sudo nano /etc/apache2/mods-available/passenger.conf
    > PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.18
    > PassengerRuby /usr/bin/ruby1.9.1
    > PassengerDefaultUser www-data

    Perhaps this has something to do with using passenger-3.0.18?
    Or is this because I am running Mint 14 instead of Ubuntu 12.04?

    Don’t know, but this fixed it for me…

  39. getting an Internal Error when I try to access http://my_domain/settings…any idea where the problem is? couldn’t find any error in the log…

  40. I discovered your “HowTo: RedMine 2.0.0, Passenger & Subversion Repositories in Ubuntu 12.04 | Musings of a sometime computer geek” page and noticed you could have a lot more traffic. I have found that the key to running a website is making sure the visitors you are getting are interested in your subject matter. There is a company that you can get traffic from and they let you try it for free. I managed to get over 300 targetted visitors to day to my website. Visit them today: http://voxseo.com/traffic/

  41. Thanks designed for sharing such a pleasant opinion, piece of writing is nice, thats why i have read it
    fully

  42. Excellent doc!
    But there is some moment.
    It is necessary REMOVE old version of RUBY before install it.
    Else appear problem like this http://stackoverflow.com/questions/2896485/no-such-file-to-load-rubygems-loaderror/12385824#12385824

  43. SeongHun, Heo

    Thanks..I waste very long time for installing redmine.. but your guide helps me..
    your guide is brilliant..but in addition if the problem occurs “permission denied” when redmine is running, edit /etc/apache2/mods-available/passenger.conf and add PassengerDefaultUser www-data

    Sorry, my English is very poor..anyway thanks again

  44. I’m not sure why but this site is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back
    later on and see if the problem still exists.

  45. I used your guide to install the latest Redmine on Ubuntu Server 12.04 and (as with other attempts) things broke when I did “apt-get install ruby1.9.3”. The problem is that Ubuntu somehow creates a symlink to to ruby1.9.1 and then rubygems doesn’t install, looking for ruby 1.9.3.

    I solved this my following this how-to on Digital Ocean after switching to root using “sudo su -“.

    (I didn’t installed rail from that how-to, since I didn’t need it)

    Thanks again for your nicely documented blog!

  46. Big thanks for this guide!
    I had mayor problems upgrading this using the normal install guide from redmine site.

  47. large thanks for this very easy to follow install!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s