<div><br></div>The script is installed with "rvm"
<a href="https://rvm.io/">https://rvm.io/</a> . I did link it to /usr/local/bin/ruby and /usr/bin/ruby to no avail.<div><br></div><div><div>-rwxrwx--- 1 www-data root 859 May 8 17:19 dispatch.cgi</div><div><br></div><div>
It's owned and executable by the www-data user. It seems it has something to do with the "env ruby" portion.</div><div><br></div><div>Robert</div><div><br></div><br><div class="gmail_quote">On Tue, May 8, 2012 at 5:36 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>
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>
<div><div class="h5"><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 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 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] : 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 end of<br>
> script headers: dispatch.cgi<br>
><br>
> When I log into the system as www-date user and do "which ruby" 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 /usr/local/bin<br>
> did not help.<br>
><br>
> Any one have any ideas?<br>
> Robert<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>
</div></div>> _______________________________________________<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>
</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>
</div>