Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
ActionController::RoutingError (Recognition failed for “/tracks/public/dispatch.cgi”)
 
Bill
Posted: 04 October 2006 05:45 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  1
Joined  2006-10-04

After running tracks via webrick, I thought I’d try to get Tracks running via apache tonight.  To avoid borking the main webserver on the box, I thought I’d snag the apache source + mod_ruby and getting running on a different port.  I’ve gotten things to the point where the ruby scripts execute, but it gives me the following error:

Your environment.rb uses the old syntax, it may not continue to work in future releases.
For upgrade instructions please see: http://manuals.rubyonrails.com/read/book/19
  User Columns (0.001772)  SHOW FIELDS FROM users


Processing Base#index (for 68.123.232.229 at 2006-10-04 00:30:31) [GET]
  Session ID: 15f75544496119cb6aeaf970b1cea475
  Parameters: {“tracks/public/dispatch.cgi”=>nil}


ActionController::RoutingError (Recognition failed for “/tracks/public/dispatch.cgi”):
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:522:in `recognition_failed’
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:512:in `recognize!‘
  /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch’
  /home/wdr1/apache-ruby/htdocs/tracks/public/dispatch.cgi:10

I’m using Tracks 1.03 (according to CHANGELOG)
Ruby: 1.8.2
Apache: 1.3.37
mod_ruby: 1.2.6

In my apache config I have:

<VirtualHost *:4096>
  ServerName rails
  DocumentRoot /home/wdr1/apache-ruby/htdocs/tracks/public/
  ErrorLog /home/wdr1/apache-ruby/htdocs/tracks/log/server.apache.log

  <Directory /home/wdr1/apache-ruby/htdocs/tracks/public>
  Options ExecCGI FollowSymLinks
  AllowOverride all
  Allow from all
  Order allow,deny
  </Directory>
</VirtualHost>


To get apache up & running, all I basically did was:

gzip -dc apache_1.3.37.tar.gz |tar xvf -
cd apache_1.3.37
./configure—prefix=$HOME/apache-ruby—enable-module=so—enable-module=rewrite
make
make install

cd ..
gzip -dc mod_ruby-1.2.6.tar.gz |tar xvf -
cd mod_ruby-1.2.6
./configure.rb—with-apxs=/home/wdr1/apache-ruby/bin/apxs—prefix=/home/wdr1/apache-ruby/
make
make install

Thanks in advance for any help,
-Bill

Profile
 
bsag
Posted: 21 October 2006 10:48 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  217
Joined  2006-03-05

If you’re running this on your own box, I’d really recommend using lighttpd as a server instead. It’s a lot easier to set up, lighter weight and perfectly fine with a few users. Apache is a real beast to set up for Ruby, and you really need to enable fcgi to get decent speed.

Profile
 
   
 
 
‹‹ Various problems installing tracks on ubuntu      HOWTO: Install Tracks on Ubuntu or Debian ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.1 (20081028)
Script Executed in 0.1158 seconds

Atom Feed
RSS 2.0