H
H
heihachi882015-02-26 11:16:03
Ruby on Rails
heihachi88, 2015-02-26 11:16:03

How to properly install redmine on Ubuntu 14.04?

On a clean server with Ubuntu 14.04 I'm trying to install redmine from the native ubunta repositories:
apt-get update && apt-get dist-upgrade
apt-get install mysql-client- mysql database is created on a remote server.
apt-get install apache2 libapache2-mod-passenger
apt-get install redmine redmine-mysql- I skip setting up the database, because I have it remote and has already been created.
I'm making a symlink:
ln -s /usr/share/redmine/public /var/www/redmine
What Apache settings need to be done so that redmine is launched simply by the IP address of the server?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Ergil Osin, 2015-02-26
@Ernillew

Why do you need Apache?
Do you suffer from zoonecrophilia?
Use thin+nginx.

V
Vyacheslav Barsukov, 2015-02-26
@slavabars

mod-passenger hook to apache config.

I
Ilya Evseev, 2015-02-27
@IlyaEvseev

Working /etc/apache2/sites-enabled/redmine.conf

<IfModule mod_passenger.c>
    PassengerDefaultUser www-data
</IfModule>

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName redmine.example.org

    DocumentRoot /var/www

    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>

    <Directory /var/www/>
        Options +FollowSymLinks -Indexes -MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    # ln -s /usr/share/redmine/public /var/www/redmine
    <Directory /var/www/redmine>
        RailsBaseURI /redmine
        PassengerResolveSymlinksInDocumentRoot on
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
    LogLevel notice

    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question