D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Install RoR - Apache2 and FastCGI

 

Hi,

The error would probably have been obvious to anyone with some apache understanding but i followed the tutorials not always knowing what each step was for and so I ended up

 - installing mod-fcgid for apache2 since it says in several places that mod-fascgi is bugged for apache2 (nevertheless people named the tutorial apache2 w. fastCGI which can be confusing)

 - changing the following line in the .htaccess file placed within the ruby app directory
      RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
    to
      RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

  - and adding these lines in the <directory> declaration for the ruby app in my apache2 config:
       Options ExecCGI FollowSymLinks
       AddHandler cgi-script .cgi



I understand now I was telling apache to use the cgi mod to read .cgi files found within the ruby app where there would be only fcgi files thanks to the rewriting rule in the .htaccess.
The first correction was to change the apache2 config to
AddHandler fcgid-script .fcgi

Also, I realised some of these apache2 declaration were also repeated (still with the errors) in the default .htaccess file generated by ruby so i simply deleted them all in the htaccess file.

Maybe that will help someone else out there :)

Sam







Matt Lee <mattl@xxxxxxx> wrote:
On Wed, Aug 30, 2006 at 06:07:17AM -0700, Samoh wrote:

> After a good night sleep I returned to the problem with a new mind and found the error in the Apache config file (there was also the same error repeated in the .htaccess for ruby). It took a long time to get ruby going but at least I have a little better understanding of Apache now.

What was the error in these files? :) I'd find it useful to see...

--
Matt Lee
Chief Webmaster, GNU Project - http://www.gnu.org/ - Free as in Freedom

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html