<div><br></div>Unfortunately, due to redmine we can't use the 'normal' method. Thats why the rvm version.<br><br><div class="gmail_quote">On Tue, May 8, 2012 at 5:50 PM, Leam Hall <span dir="ltr"><<a href="mailto:leamhall@gmail.com" target="_blank">leamhall@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Robert,<br>
<br>
Up front I don't know Ruby, but my recommendations would be to install<br>
Ruby and its components via the "normal" method for your Operating System.<br>
<br>
Then run a chmod 755 on your dispatch.cgi.<br>
<br>
Those may solve your problem.<br>
<br>
Leam<br>
<div class="im"><br>
<br>
On 05/08/2012 07:41 PM, Robert L Harris wrote:<br>
><br>
> The script is installed with "rvm" <a href="https://rvm.io/" target="_blank">https://rvm.io/</a> . I did link it to<br>
> /usr/local/bin/ruby and /usr/bin/ruby to no avail.<br>
><br>
> -rwxrwx--- 1 www-data root 859 May 8 17:19 dispatch.cgi<br>
><br>
> It's owned and executable by the www-data user. It seems it has<br>
> something to do with the "env ruby" portion.<br>
><br>
> Robert<br>
><br>
><br>
> On Tue, May 8, 2012 at 5:36 PM, Leam Hall <<a href="mailto:leamhall@gmail.com">leamhall@gmail.com</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:leamhall@gmail.com">leamhall@gmail.com</a>>> wrote:<br>
><br>
> Hey Robert,<br>
><br>
> Is Ruby even installed on the machine in a normal location? Can you<br>
> install it? It looks like your session can't find it. The other issue is<br>
> the permission denied might mean you didn't make your script executable<br>
> by the web app user.<br>
><br>
> Leam<br>
><br>
><br>
> On 05/08/2012 07:24 PM, Robert L Harris wrote:<br>
> ><br>
> > I'm trying to build out a redmine system. It looks like<br>
> everything is<br>
> > right but when I hit the main page I get this:<br>
> ><br>
> ><br>
> > Application error<br>
> ><br>
> > Rails application failed to start properly<br>
> ><br>
> ><br>
> > In the error log I'm getting this:<br>
> > [Tue May 08 17:19:04 2012] [error] [client 10.1.250.2] Premature<br>
> end of<br>
> > script headers: dispatch.cgi<br>
> > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] /usr/bin/env:<br>
> > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] ruby<br>
> > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] :<br>
> Permission denied<br>
> > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2]<br>
> > [Tue May 08 17:19:07 2012] [error] [client 10.1.250.2] Premature<br>
> end of<br>
> > script headers: dispatch.cgi<br>
> ><br>
> > When I log into the system as www-date user and do "which ruby"<br>
> it can't<br>
> > find ruby which is here:<br>
> ><br>
> > /usr/local/rvm/rubies/ruby-1.8.7-p358/bin/ruby<br>
> ><br>
> > I tried going into my vhost definition and putting this:<br>
> ><br>
> > SetEnv ruby /usr/local/rvm/rubies/ruby-1.8.7-p358/bin/ruby<br>
> ><br>
> > Putting an alias for ruby, linking ruby in /usr/bin and<br>
> /usr/local/bin<br>
> > did not help.<br>
> ><br>
> > Any one have any ideas?<br>
> > Robert<br>
> ><br>
> ><br>
> > --<br>
> > :wq!<br>
> ><br>
> ---------------------------------------------------------------------------<br>
> > Robert L. Harris<br>
> ><br>
> > DISCLAIMER:<br>
> > These are MY OPINIONS With Dreams To Be A King,<br>
> > ALONE. I speak for First One Should<br>
> Be A Man<br>
> > no-one else. - Manowar<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Ale mailing list<br>
</div></div>> > <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>><br>
<div class="im">> > <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> > See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> > <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
> _______________________________________________<br>
> Ale mailing list<br>
</div>> <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>><br>
<div class="HOEnZb"><div class="h5">> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
><br>
><br>
><br>
> --<br>
> :wq!<br>
> ---------------------------------------------------------------------------<br>
> Robert L. Harris<br>
><br>
> DISCLAIMER:<br>
> These are MY OPINIONS With Dreams To Be A King,<br>
> ALONE. I speak for First One Should Be A Man<br>
> no-one else. - Manowar<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br> These are MY OPINIONS With Dreams To Be A King,<br>
ALONE. I speak for First One Should Be A Man<br> no-one else. - Manowar<br>