[ale] OT: ruby/redmine/apache
JD
jdp at algoloma.com
Tue May 8 20:48:34 EDT 2012
Which app server are you using?
We use thin for Ruby stuff behind a nginx load balancer and reverse proxy to
filter nasty hits.
If you are using Apache, I can't help. Never tried to get apache to handle ruby
myself. All the guides seemed to complex.
BTW, using RVM is a great idea. NEVER use the OS perl, python, php or ruby
installs for non-OS purposes. That just beings dependency problems at every
upgrade, unless you can use the package system for the apps (redmine) too.
On 05/08/2012 07:53 PM, Robert L Harris wrote:
>
> Unfortunately, due to redmine we can't use the 'normal' method. Thats why the
> rvm version.
>
> On Tue, May 8, 2012 at 5:50 PM, Leam Hall <leamhall at gmail.com
> <mailto:leamhall at gmail.com>> wrote:
>
> Hey Robert,
>
> Up front I don't know Ruby, but my recommendations would be to install
> Ruby and its components via the "normal" method for your Operating System.
>
> Then run a chmod 755 on your dispatch.cgi.
>
> Those may solve your problem.
>
> Leam
>
>
> On 05/08/2012 07:41 PM, Robert L Harris wrote:
> >
> > The script is installed with "rvm" https://rvm.io/ . I did link it to
> > /usr/local/bin/ruby and /usr/bin/ruby to no avail.
> >
> > -rwxrwx--- 1 www-data root 859 May 8 17:19 dispatch.cgi
> >
> > It's owned and executable by the www-data user. It seems it has
> > something to do with the "env ruby" portion.
> >
> > Robert
> >
> >
> > On Tue, May 8, 2012 at 5:36 PM, Leam Hall <leamhall at gmail.com
> <mailto:leamhall at gmail.com>
> > <mailto:leamhall at gmail.com <mailto:leamhall at gmail.com>>> wrote:
> >
> > Hey Robert,
> >
> > Is Ruby even installed on the machine in a normal location? Can you
> > install it? It looks like your session can't find it. The other issue is
> > the permission denied might mean you didn't make your script executable
> > by the web app user.
> >
> > Leam
> >
> >
> > On 05/08/2012 07:24 PM, Robert L Harris wrote:
> > >
> > > I'm trying to build out a redmine system. It looks like
> > everything is
> > > right but when I hit the main page I get this:
> > >
> > >
> > > Application error
> > >
> > > Rails application failed to start properly
> > >
> > >
> > > In the error log I'm getting this:
> > > [Tue May 08 17:19:04 2012] [error] [client 10.1.250.2] Premature
> > end of
> > > script headers: dispatch.cgi
> > > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] /usr/bin/env:
> > > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] ruby
> > > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] :
> > Permission denied
> > > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2]
> > > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] Premature
> > end of
> > > script headers: dispatch.cgi
> > >
> > > When I log into the system as www-date user and do "which ruby"
> > it can't
> > > find ruby which is here:
> > >
> > > /usr/local/rvm/rubies/ruby-1.8.7-p358/bin/ruby
> > >
> > > I tried going into my vhost definition and putting this:
> > >
> > > SetEnv ruby /usr/local/rvm/rubies/ruby-1.8.7-p358/bin/ruby
> > >
> > > Putting an alias for ruby, linking ruby in /usr/bin and
> > /usr/local/bin
> > > did not help.
> > >
> > > Any one have any ideas?
> > > Robert
> > >
> > >
> > > --
> > > :wq!
> > >
> >
> ---------------------------------------------------------------------------
> > > Robert L. Harris
> > >
> > > DISCLAIMER:
> > > These are MY OPINIONS With Dreams To Be A King,
> > > ALONE. I speak for First One Should
> > Be A Man
> > > no-one else. - Manowar
> > >
> > >
> > >
> > > _______________________________________________
> > > Ale mailing list
> > > Ale at ale.org <mailto:Ale at ale.org> <mailto:Ale at ale.org
> <mailto:Ale at ale.org>>
> > > http://mail.ale.org/mailman/listinfo/ale
> > > See JOBS, ANNOUNCE and SCHOOLS lists at
> > > http://mail.ale.org/mailman/listinfo
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org <mailto:Ale at ale.org> <mailto:Ale at ale.org <mailto:Ale at ale.org>>
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
> >
> >
> >
> > --
> > :wq!
> > ---------------------------------------------------------------------------
> > Robert L. Harris
> >
> > DISCLAIMER:
> > These are MY OPINIONS With Dreams To Be A King,
> > ALONE. I speak for First One Should Be A Man
> > no-one else. - Manowar
> >
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org <mailto:Ale at ale.org>
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> _______________________________________________
> Ale mailing list
> Ale at ale.org <mailto:Ale at ale.org>
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
>
>
> --
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris
>
> DISCLAIMER:
> These are MY OPINIONS With Dreams To Be A King,
> ALONE. I speak for First One Should Be A Man
> no-one else. - Manowar
>
>
> This body part will be downloaded on demand.
More information about the Ale
mailing list