Hey everybody,
I started playing with Ruby and Rails about 3 weeks ago when I started a
job that required I know this stuff. So far I love it.
I''m attempting to run Instiki as a Rails app using Apache and fcgi.
I''ve used the Rails wiki and the Instiki homepage in attempt to
accomplish this, but it seems that I am just not familiar enough with
Apache configurations and rails to sort through all this.
So I started from scratch, and I was hoping somebody could point me in
the right direction.
Windows XP SP2
- Installed Apache 2.0.54 to C:\apache
- Installed RubyForApache
- Copied the mod_ruby.so into C:\apache\apache2\modules
- Copied the mod_fastcgi.so into C:\apache\apache2\modules
- Added the following code into my httpd.conf file
| LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
</IfModule>|
** At this point, I restarted Apache with no problems, so I assume that
it liked the fastcgi mod. I had problems with it before, and it didn''t
yell at me, so I figure it''s up and running just fine. Now I venture
into the unknown.
Problems
(1) The next piece of instruction tells me that I need to modify the
.htaccess file in the Public folder of my Rails App. The latest release
of Instiki it is a fully functional rails app, but there is no .htaccess
file in my public folder.
(2) Also instructed to modify the dispatch.fcgi in the public folder,
same problem as (1), there isn''t a dispatch.fcgi in my public folder.
(3) Told to rewrite my the first line of my dispatch.fcgi file to point
to my ruby installation. In other rails apps that I''ve seen, this file
also resides in the public folder of the Rails app, and again, I do not
have this file.
(4) I don''t know the proper entry for the DocumentRoot directive in
the
apache httpd.conf file for setting up a rails app. If I just installed
instiki to c:\instiki, is that the proper document root for my rails app?
Ben Robison