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 installcd ..
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
