Project

General

Profile

Cannot complete redmine installation on Debian Jessie

Added by Ariel Arelovich almost 10 years ago

I'm attempting to install redmine in the server where I work. I have followed these steps:

1) I've installed rails (which installs all the other ruby stuff) and libmysqlclient-dev so to use Redmine with MySQL.

2) I "untared" the following file: redmine-2.5.2.tar.gz in /var/www/redmine folder (I'm using Apache web server).

3) I did chown -R www-data:www-data redmine/ to give access to the server

4) I entered the directory and ran bundle install --without development test rmagick 5) I tried to do rake generate_secret_token However it did not work and I got the suggestion from the command to preappend bundle exec. So I did bundle exec rake generate_secret_token And it worked!!

6) RAILS_ENV=production bundle exec rake db:migrate

7) RAILS_ENV=production bundle exec rake redmine:load_default_data

8) I installed the libapache2-mod-passenger package

9) Modified /etc/apache2/mods-available/passenger.conf to add the line PassengerDefaultUser www-data

10) Modified /etc/apache2/sites-available/000-default.conf so as to add these lines:

<Directory /var/www/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
11) Restarted the apache server.

What I get when I go the redmine website is the typical file explorer like view showing me the files and folders in the redmine folder.

So I tried to do the webrick test that the installation webpage tells me to do. I ran ruby script/rails server webrick -e production And got the message: Rails 3.2.19 application starting in production on http://0.0.0.0:3000 so I went to that page and I got can't establish a connection to the server at 0.0.0.0:3000.

I'm at a loss. Can anyone tell me why this is not working? I think I did every step of the installation instructions without errors.

Also here is the output of RAILS_ENV=production script/about

sh: 1: svn: not found
sh: 1: darcs: not found
sh: 1: hg: not found
sh: 1: cvs: not found
sh: 1: bzr: not found
Environment:
Redmine version 2.5.2.stable
Ruby version 2.1.3-p242 (2014-09-19) [x86_64-linux-gnu]
Rails version 3.2.19
Environment production
Database adapter MySQL
SCM:
Git 2.1.0
Filesystem
Redmine plugins:
no plugin installed


Replies (2)

RE: Cannot complete redmine installation on Debian Jessie - Added by Martin Denizet (redmine.org team member) almost 10 years ago

Hi Ariel,
The IP 0.0.0.0 is a way to say it will listen on port 3000 on all available interfaces (it actually refers to a local network, it's not a routable address). Local backloop(127.0.0.1), LAN address, public, VPN, 3G... Whatever available, so replace 0.0.0.0 with an IP relevant to your setup.
I suggest you do disable the default configuration:

sudo a2dissite 000-default

And make a configuration of your own, there are many many examples available according to how you want to serve Redmine.
You may want to use the configuration Options -MultiViews to forbid file listing.
Cheers,

RE: Cannot complete redmine installation on Debian Jessie - Added by Ariel Arelovich almost 10 years ago

Ok. We are getting somewhere now.

It seems that going to localhost:3000 using the webrick test worked!!!

However I cannot disable the default configuration because the default is where I added all modifications to the web server, for other webpages. I tried adding the Multiviews option and this did not work. I'm copying the coplete configuration below:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <Directory /redmine>
                RailsEnv production
                RailsBaseURI /redmine
                PassengerResolveSymlinksInDocumentRoot on
                AllowOverride all
                Options -MultiViews
        </Directory>

</VirtualHost>
    (1-2/2)