LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Problem running Rails app with dispatch.lsapi

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2010, 01:17 PM
dougconran dougconran is offline
Member
 
Join Date: Jan 2010
Posts: 15
Question Problem running Rails app with dispatch.lsapi

Hi,

I've recently installed Litespeed Standard (v 4.0.11) onto a Suse Linux 2.6.27.19-5-pae system and am having problems configuring it to run Rails applications.

I've followed (to the letter as far as I can see) the instructions described in the Rails Manual Configuration wiki, mounting the application to a URL called /ruby/. I can see the Rails welcome page when I enter <domain name>/ruby/ in the browser but get an error

Code:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'LS' (include_path='.:/usr/local/lsws/lsphp5/lib/php') in Unknown on line 0
when I try and access the application proper.

I also have the following error in the server log:-

Code:
ERROR	execve() failed with errno=2, when try to start Fast CGI application: /home/dconran/rails/hello/public/dispatch.lsapi!
As far as I can see everything that needs to has executable permissions. What throws me a bit is that litespeed appears to be trying to run dispatch.lsapi as a Fast CGI app whereas it is definitely configured as a LSAPI one.

I have managed to get everything running as a separate virtual host by following the RoR Easy Configuration instructions but I need to be able to get it to run alongisde Perl apps in a single host.

Any help would be much appreciated.

TIA

Doug
Reply With Quote
  #2  
Old 01-03-2010, 02:04 PM
dougconran dougconran is offline
Member
 
Join Date: Jan 2010
Posts: 15
Oops, I can answer this myself, now. The execve error was denoting that there was a problem with the shebang line in dispatch.lsapi and, lo and behold, it was set up for #!/usr/local/bin/ruby whereas my copy of ruby is in /usr/bin.

So, problem solved and many thanks for a pretty awesome application (which I am still getting to grips with )

Doug
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:04 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.