what exactly is needed to make redmine available through a simple apache vhost

Added by Thomas Oppelt over 9 years ago

Hi,

what exactly is needed to make redmine available through a simple apache vhost?
what is needed to setup within .htacess and dispatch.cgi?

thx
tom

Replies (5)

RE: what exactly is needed to make redmine available through a simple apache vhost - Added by Thomas Oppelt over 9 years ago

An Addition: all got for now is:
"Application error
Rails application failed to start properly"

RE: what exactly is needed to make redmine available through a simple apache vhost - Added by Thomas Oppelt over 9 years ago

Ok, if i am right i need mongrel mongrel_cluster to run rails through apache?
Is that rquired?
I am running Ubuntu 8.04 server with rubygems 0.9.4-4.
I tried:
gem install --include-dependencies mongrel
Than i am asked which gem to install:
1. mongrel 1.1.5 (ruby)
2. mongrel 1.1.5 (x86-mswin32-60)
3. mongrel 1.1.5 (java)
4. mongrel 1.1.4 (x86-mswin32-60)
5. mongrel 1.1.4 (ruby)
6. mongrel 1.1.4 (java)

If i take 1. then comes up:

1. fastthread 1.0.1 (mswin32)
2. fastthread 1.0.1 (ruby)
3. fastthread 1.0.1 (i386-mswin32)

If i take 2. it ends up with an error:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install --include-dependencies mongrel
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Any suggestions?

RE: RE: what exactly is needed to make redmine available through a simple apache vhost - Added by Thomas Lecavelier over 9 years ago

The first thing you have to do, is to update your gem system: 0.9.4 is far TOO OLD. Please install gem 1.x

Then have a look to your usage of redmine:
  • you only want to test it, alone, or with a friend -> just run an instance, reverse proxy it in your apache. You're done.
  • you want to setup a real-condition redmine -> install redmine, check it works alone. Install mongrel, mongrel cluster, test an instance of the cluster, then reverse proxy them to your apache.

RE: what exactly is needed to make redmine available through a simple apache vhost - Added by Thomas Oppelt over 9 years ago

Thy Thomas, i have installed rubygems 1.1.1 now, but gem install mongrel fails with this output:
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install mongrel
creating Makefile

make
cc -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c fastthread.c
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/ruby.h:40:21: error: stdlib.h: No such file or directory
/usr/lib/ruby/1.8/i486-linux/ruby.h:44:21: error: string.h: No such file or directory
/usr/lib/ruby/1.8/i486-linux/ruby.h:54:19: error: stdio.h: No such file or directory
/usr/lib/ruby/1.8/i486-linux/ruby.h:71:20: error: alloca.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
from /usr/lib/ruby/1.8/i486-linux/ruby.h:91,
from fastthread.c:12:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory
In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:718,
from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/missing.h:16:24: error: sys/time.h: No such file or directory
/usr/lib/ruby/1.8/i486-linux/missing.h:25:25: error: sys/types.h: No such file or directory
In file included from /usr/lib/ruby/1.8/i486-linux/ruby.h:719,
from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: expected declaration specifiers or '...' before 'fd_set'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: expected declaration specifiers or '...' before 'fd_set'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: expected declaration specifiers or '...' before 'fd_set'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: warning: 'struct timeval' declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:219: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/lib/ruby/1.8/i486-linux/intern.h:220: warning: 'struct timeval' declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:454: warning: parameter names (without types) in function declaration
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/ruby.h:728:21: error: pthread.h: No such file or directory
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-linux/ruby.h:730: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rb_nativethread_t'
In file included from fastthread.c:13:
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: expected declaration specifiers or '...' before 'fd_set'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: expected declaration specifiers or '...' before 'fd_set'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: expected declaration specifiers or '...' before 'fd_set'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: warning: 'struct timeval' declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: conflicting types for 'rb_thread_select'
/usr/lib/ruby/1.8/i486-linux/intern.h:219: error: previous declaration of 'rb_thread_select' was here
/usr/lib/ruby/1.8/i486-linux/intern.h:220: warning: 'struct timeval' declared inside parameter list
/usr/lib/ruby/1.8/i486-linux/intern.h:220: error: conflicting types for 'rb_thread_wait_for'
/usr/lib/ruby/1.8/i486-linux/intern.h:220: error: previous declaration of 'rb_thread_wait_for' was here
/usr/lib/ruby/1.8/i486-linux/intern.h:454: warning: parameter names (without types) in function declaration
In file included from fastthread.c:14:
/usr/lib/ruby/1.8/i486-linux/rubysig.h:15:19: error: errno.h: No such file or directory
fastthread.c: In function 'wait_condvar':
fastthread.c:626: warning: passing argument 1 of 'rb_ensure' from incompatible pointer type
make: *** [fastthread.o] Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out

RE: what exactly is needed to make redmine available through a simple apache vhost - Added by Thomas Oppelt over 9 years ago

Maybe somybody else runs into it:
Seems that it's required to apt-get install build-essential on ubuntu hardy first.
regards
tom

(1-5/5)