Project

General

Profile

incorrect redmine installation

Added by Ilya Zaytsev over 8 years ago

Hello everyone!

I am trying to install redmine 3.2.0 like in the following article: https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Debian_8_with_Apache2-Passenger

The point

2.4 Test Redmine
works fine, i.e. I am able to open redmine using
http://MY_IP:3000
.

After this, I did:

sudo chown -R www-data files log tmp public/plugin_assets  
sudo chmod -R 755 files log tmp public/plugin_assets  
sudo ln -s /opt/redmine/redmine-3.2.2/public/ /var/www/html/redmine

Added

Listen 89
into
/etc/apache2/ports.conf

Created the following

sudo vim /etc/apache2/sites-available/redmine.conf
:

<VirtualHost MY_IP:89>

    ServerAdmin email@example
    DocumentRoot /var/www/html/

        <Location /redmine>
                RailsEnv production
                RackBaseURI /redmine
                Options -MultiViews
        </Location>

</VirtualHost>

Enabled redmine.conf:

sudo a2ensite redmine.conf

Added

PassengerUser www-data
into
/etc/apache2/mods-available/passenger.conf
Now passenger.conf contains the following:

<IfModule mod_passenger.c>
  PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
  PassengerDefaultRuby /usr/bin/ruby
  PassengerUser www-data
</IfModule>

And restarted apache: sudo service apache2 restart.

So

/var/www/html/
contains:

drwxr-xr-x 2 root root  4096 Jan 25 09:32 .
drwxr-x--x 7 root root  4096 Jan 22 07:21 ..
-rw-r--r-- 1 root root 11104 Jan 22 02:57 index.html
lrwxrwxrwx 1 root root    34 Jan 25 09:32 redmine -> /opt/redmine/redmine-3.2.0/public/

Now if I am going to

http://MY_IP:89
then
/var/www/html/index.html
is opened instead of redmine home page.

Could you please advise where I did an error?

Thanks in advance!

Also:

If I use the following

redmine.conf
:

<VirtualHost MY_IP:89>

    DocumentRoot /var/www/html/redmine

        <Directory /var/www/html/redmine>
                RailsBaseURI /
                PassengerResolveSymlinksInDocumentRoot on

                AllowOverride None
                RailsEnv production
                Options -MultiViews
        </Directory>

</VirtualHost>

Redmine won't start, only shows

index of /var/www/html/redmine/
.


Replies (1)

RE: incorrect redmine installation - Added by Ilya Zaytsev over 8 years ago

SOLVED THE ISSUE:

I did `gem install passenger`. And I use the following `redmine.conf`:

<VirtualHost MY_IP:89>

  DocumentRoot /var/www/html/redmine

  <Directory /var/www/html/redmine>
    RailsBaseURI /
    PassengerResolveSymlinksInDocumentRoot on

    AllowOverride None
    RailsEnv production
    Options -MultiViews
  </Directory>

</VirtualHost>
    (1-1/1)