yannickwurm/sequenceserver — Issue #81: Difficulties setting up passenger
Author: yannickwurm
Created: 2012-02-24 15:29:49+00:00
State: open

Copied from email:

I am a postdoctoral researcher from The University of Arizona. My lab works on plant evolutionary study. Recently, I need to setup a blast web server on our lab server. I really want to use sequenceserver you've established. However, I am not quite familiar with ruby, so just follow the online instruction. The installation was smooth, but I finally got an error page. FAQ cannot help me solve the problem. I have to email you and hope to get your help.

Below is my server's information and what I have done:

Red Hat Enterprise Linux Server release 6.2 (Santiago)

I had installed and run Apache2 on it. The DocumentRoot is /var/www/html.

Probably I didn't install sequenceserver into correct folder. After I finished everything, I found sequenceserver was installed at

/usr/local/rvm/gems/ruby-1.9.3-p125/gems/sequenceserver-0.7.8/

I guess it should be under /var/www/html. Then I established a link under /var/www/html to correct this problem.

ln -s /usr/local/rvm/gems/ruby-1.9.3-p125/gems/sequenceserver-0.7.8 sequenceserver

I edited httpd.conf of apache like this:

ServerName localhost
DocumentRoot /var/www/html

Allow from all

RackBaseURI /sequenceserver

Options -MultiViews

I also wrote a file "passenger.conf" under /etc/httpd/conf.d, the content is:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p125/ruby

Then I restart httpd and opened a web browser. Access http://localhost/sequenceserver

I got an error page from passenger, saying:

Ruby (Rack) application could not be started.

Error message:
No such file or directory – config.ru

Exception class:
Errno:: ENOENT

Application root:
/usr/local/rvm/gems/ruby-1.9.3-p125/gems

…

There are still some backtrace..

I hope these are enough for you to diagnostic my problem. If you need more, I can offer in next email. Do you have any idea on how I can fix it? I appreciate any of your answer. Thank you very much! Looking forward to hearing from you.