Project

General

Profile

Not found on debian 8 with simple apt-get install

Added by nicolas wobi over 8 years ago

Hello,

I apologize in advance if the problem already been treated but I've searched the forum and found no definite answer. There are also many ways to install redmine, I would just use the simpler with the debian package, but must miss a step, I use the following tutorial: [[https://wiki.debian.org/redmine#Quick_installation_howto]]

I have not changed any files, I just input the password to my mysql database for installation. I checked the data is present in the database. I think the problem comes from the Apache configuration or passenger but I do not know how to correct the problem.

Installation Step

- apt-get install mysql-server redmine redmine-mysql apache2 libapache2-mod-passenger
- cp /usr/share/doc/redmine/examples/apache2-passenger-host.conf /etc/apache2/sites-available/redmine.conf
- edit /etc/apache2/sites-available/redmine.conf
- a2enmod passenger
- a2ensite redmine.conf
- service apache2 reload

more /etc/apache2/sites-available/redmine.conf

# The passenger module (from the libapache2-mod-passenger package) must be
# enabled
<VirtualHost *:80>
    # ServerName my.domain.name
    # this is the passenger config
    RailsEnv production
    SetEnv X_DEBIAN_SITEID "default" 
    # CHANGE PassengerAppGroupName FOR OTHER INSTANCES
    PassengerAppGroupName redmine_default
    PassengerDefaultUser www-data
    Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
    DocumentRoot /usr/share/redmine/public
    <Directory "/usr/share/redmine/public">
        Allow from all
        Options -MultiViews
        Require all granted
    </Directory>
</VirtualHost>

when I load the url http://xx.xx.xx.xx or http://xx.xx.xx.xx/redmine of my server I have a 404. can anyone help me please?


Replies (2)

RE: Not found on debian 8 with simple apt-get install - Added by Rick Berger over 8 years ago

New to Redmine, myself.

I installed it per the instructions in the tarball (lot of work, actually installing all the gems), and couldn't connect w/ Apache, initially. I used a variant of your virtual host file (and installed passenger - didn't know that was a requirement. thanx), and, bang! it worked.

Here is my vhost file:

# The passenger module (from the libapache2-mod-passenger package) must be
# enabled
<VirtualHost *:80>
    ServerName redmine.dev
    # this is the passenger config
    RailsEnv production
    SetEnv X_DEBIAN_SITEID "default" 
    # CHANGE PassengerAppGroupName FOR OTHER INSTANCES
    PassengerAppGroupName rickb
    PassengerDefaultUser rickb
    Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
    DocumentRoot /home2/wwwroot/redmine/public
    <Directory "/home2/wwwroot/redmine/public">
        Allow from all
        Options -MultiViews
        Require all granted
    </Directory>
</VirtualHost>
I would say
  • check all your paths and make sure they're pointing to real directories.
  • check your groupname and default user (they might be 'redmine' on your installation)

Those were the things I changed to conform to my installation (this is a private VM running NAT, no X11.)

Best.

RE: Not found on debian 8 with simple apt-get install - Added by nicolas wobi over 8 years ago

Thank you. It's working.

We just adapt the right config file : /usr/share/doc/redmine/examples/ to apache and edit ServerName.

Thanks

    (1-2/2)