Project

General

Profile

Old Problem ... Apache show only Directory

Added by marc Kunadtads about 11 years ago

Hallo all,

i have try to install redmine with this manual http://www.redmine.org/projects/redmine/wiki/InstallRedmineOnDebianStableApacheMysqlPassenger
But i get only the directory listing if i call localhost/redmine
I work with Debain 7.0 and Mysql 5.5. Passenger is activated.
Here my Configs:
RAILS

Environment:
  Redmine version                          2.3.0.devel
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.12
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed


GEM ENV
:/opt/redmine/public$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.9.1
     - /home/moe/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

/etc/apache2/sites-available

<VirtualHost *:80>
  ServerName localhost
  DocumentRoot /opt/redmine/public
  RailsBaseURI /
  RailsEnv production
  LogLevel info
  ErrorLog /var/log/apache2/test-error.log
  CustomLog /var/log/apache2/test-access.log combined

  <Directory "/opt/redmine/public">
    Options -MultiViews
  </Directory>
</VirtualHost>


database.yml

production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: xxx

Here are the permissions of /opt/redmine


drwxr-xr-x 16 root     root     4096 Mär  3 11:35 .
drwxr-xr-x  3 root     root     4096 Mär  2 21:36 ..
drwxr-xr-x  6 root     root     4096 Mär  2 21:36 app
drwxr-xr-x  5 root     root     4096 Mär  3 11:37 config
-rw-r--r--  1 root     root      160 Mär  2 21:36 config.ru
drwxr-xr-x  3 root     root     4096 Mär  3 11:40 db
drwxr-xr-x  2 root     root     4096 Mär  2 21:36 doc
drwxr-xr-x  5 root     root     4096 Mär  2 21:36 extra
-rwxr-xr-x  1 root     root     7886 Mär  3 11:13 favicon.ico
-rwxr-xr-x  1 root     root     7886 Mär  3 11:12 favivon.ico
drwxr-xr-x  2 www-data www-data 4096 Mär  2 21:36 files
-rw-r--r--  1 root     root     3078 Mär  2 21:36 Gemfile
-rw-r--r--  1 root     root     3365 Mär  3 11:38 Gemfile.lock
drwxr-xr-x  8 root     root     4096 Mär  2 21:36 .git
-rw-r--r--  1 root     root      597 Mär  2 21:36 .gitignore
-rw-r--r--  1 root     root      593 Mär  2 21:36 .hgignore
drwxr-xr-x  7 root     root     4096 Mär  2 21:36 lib
drwxr-xr-x  2 www-data www-data 4096 Mär  3 11:36 log
drwxr-xr-x  2 root     root     4096 Mär  2 21:36 plugins
drwxrwxr-x  8 root     root     4096 Mär  3 11:53 public
-rw-r--r--  1 root     root      275 Mär  2 21:36 Rakefile
-rw-r--r--  1 root     root      205 Mär  2 21:36 README.rdoc
drwxr-xr-x  2 root     root     4096 Mär  2 21:36 script
drwxr-xr-x  9 root     root     4096 Mär  2 21:36 test
drwxr-xr-x  9 www-data www-data 4096 Mär  3 11:36 tmp

and here from /var/www

drwxr-xr-x  2 root root 4096 Mär  3 11:13 .
drwxr-xr-x 13 root root 4096 Mär  2 17:24 ..
-rwxr-xr-x  1 root root 7886 Mär  3 11:13 favicon.ico
-rwxrwxr-x  1 root root  177 Mär  2 17:24 index.html
lrwxrwxrwx  1 root root   19 Mär  2 18:32 redmine -> /opt/redmine/public

I hope someone can help me. Thx and best regard


Replies (5)

RE: Old Problem ... Apache show only Directory - Added by Jan Niggemann (redmine.org team member) about 11 years ago

Hi Marc,

thank you for using my guide, I hope it was helpful :-)
I also have to express how cool it is to not only read "Redmine doesn't work" in a posting, your post is a very good example of how aksing for help it should be done!

That said, would you like to have redmine on a sub-URI, i.e. http://your_site.de/redmine or rather at http://your_site.de directly? Or would you like to have it in a name-based virtual host, i.e. http://redmine.your_site.de?

What's the name of the config file in /etc/apache2/sites-available? Did you create a new file called redmine?
If so, there's one thing I forgot in the guide (will complete it later today): You have to enable the new site with a2ensite redmine...

RE: Old Problem ... Apache show only Directory - Added by marc Kunadtads about 11 years ago

Hello Jan,

The guide is the best i saw untill now. There are so bad howto´s sometimes Oo. I favourite the sub-uri method...

The name ist redmine yes.

The Site is also enabled with a2ensite .. Do you see something wrong in the configuration? And what i have to do in the enviroments.rb file ?

best regards

RE: Old Problem ... Apache show only Directory - Added by Jan Niggemann (redmine.org team member) about 11 years ago

marc Kunadtads wrote:

The guide is the best i saw untill now.

:-) I'm asking to constantly improve it...

I favourite the sub-uri method...
The name ist redmine yes.
The Site is also enabled with a2ensite ...

Hmm, OK.

Do you see something wrong in the configuration?

All that needs to be in /etc/sites-available/redmine is

<Location /redmine>
        RailsEnv production
        RailsBaseURI /redmine
        Options –MultiViews
</Location>
Nothing less - perhaps you can add other directives like ErrorLog, but I'm not 100% sure if they are permitted in Location...

And what i have to do in the enviroments.rb file ?

Nothing, I never changed it on my install.

RE: Old Problem ... Apache show only Directory - Added by marc Kunadtads about 11 years ago

mhm it works now with...

<Location /redmine>
        RailsEnv production
        RailsBaseURI /redmine
        Options –MultiViews
</Location>

This was my first try... Okay big thx.

    (1-5/5)