![]() |
Problem installing RoR app in Litespeed (no such file to load -- lsapi)
Hi guys!
I am having some problems installing Redmine (as an example of RoR app) in Litespeed (cPanel 11.32/CloudLinux) We are installing Redmine from a test cPanel account (logged as a normal user for redmine installation steps), the goal is document the process and make a tutorial to teach our clients about how to use Litespeed + Ruby / RoR. Its a shared hosting server with cPanel, to complete the installation of Redmine 1.4 I used several resources: http://www.asyndetic.com/blog/2012/0...g-environment/ http://www.litespeedtech.com/support...iki:ruby_rails http://www.litespeedtech.com/support...:rails_hosting http://www.geekstorage.com/blog/inde...at-geekstorage Finally we achieve the installation of Redmine but does not run properly, get this error: Code:
503 Service UnavailableCode:
2012-06-05 18:22:09.558 [STDERR] /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require': no such file to load -- lsapi (MissingSourceFile)We have installed ruby-lsapi, restarted the app, restarted LiteSpeed and nothing... always have the same error. Other info: Code:
# gem list --local | grep lsapiThanks |
I think you need to update cagefs to include ruby lsapi. it only installed at server level, but not included in cagefs for each user account.
|
Hi mistwang,
First, thanks for the reply. The problem is I do not use cagefs (disabled). I found other user with (apparently) the same problem: http://www.question-defense.com/2010...singsourcefile But this no work for me, ruby-lsapi is installed. Code:
# gem install ruby-lsapiThanks! |
Problem solved! I reinstalled ruby-lsapi manually and now work fine... but I have other problem.
Redmine appear to work fine if I access for example to: subdomain.domain.com/admin subdomain.domain.com/projects subdomain.domain.com/my/account etc... But when I try access to: subdomain.domain.com I see the public directory content (listing) I tried with this rules but dont work: Code:
RewriteRule ^$ index.html [QSA]Thanks! |
is .htaccess enabled?
Do you have "RewriteEngine on" in the .htaccess? |
>is .htaccess enabled?
Yes, is enabled. >Do you have "RewriteEngine on" in the .htaccess? Yes. In this moment the .htaccess appear to work (I think this was a browser cache problem) but the main problem continues :( The problem now is the same comented in the last reply but I see a strange behavior: When the rules are added in the .htaccess, redmine stop working, all petitions redirect to "dispatch.lsapi" but instead run, it displays the contents of this file (permissions 755 in this file): Code:
#!/usr/bin/ruby |
You can just turn off directory indexing from .htaccess, it should be direct to rails automatically.
right now, no need to create dispatch.lsapi file. |
no luck...
I put "Options -Indexes" (now this file only contains this directive) in .htaccess (inside public folder of redmine) and is showing the tipical 403 Forbidden error. Internal pages like /login, /projects, etc work perfect but the start page continue without work... Thanks |
| All times are GMT -7. The time now is 11:52 AM. |