I am using the following configuration for my server, and getting some very strange behavior. I can use mod_fcgid to access the cookbook app, but whenever I try it with my app, apache just returns the source code of dispatch.fcgi as text. Any ideas what I may be doing incorrectly? I used a copy of the virtual host for my app and changed the server name to cookbook. If I do a diff of the .htaccess, dispatch.fcgi, and dispatch.rb between my app and the cookbook, they''re exactly the same. Apache 2.0 fcgi 2.4.0 mod_fcgid 1.10 mysql 4.1 ruby 1.8.5 rails 1.2.3 Thanks, Todd Virtual Host file [code] <VirtualHost *:80> ServerName pm.arocksoftware.com SetEnv RAILS_ENV production DocumentRoot /var/www/rails/pm/public/ # TODO custom rolling logs <Directory /var/www/rails/pm/public/> Options ExecCGI FollowSymLinks AllowOverride All Order allow,deny Allow from all AddHandler fcgid-script .fcgi </Directory> </VirtualHost> [/code] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Todd - Where the default application/public/.htaccess file says AddHandler fastcgi-script .fcgi Change it to read AddHandler fcgid-script .fcgi This is a configuration difference between mod_fastcgi and mod_fcgid. Good luck, -mike On May 5, 1:34 pm, Todd Nine <todd.n...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using the following configuration for my server, and getting some > very strange behavior. I can use mod_fcgid to access the cookbook > app, but whenever I try it with my app, apache just returns the source > code of dispatch.fcgi as text. Any ideas what I may be doing > incorrectly? I used a copy of the virtual host for my app and changed > the server name to cookbook. If I do a diff of the .htaccess, > dispatch.fcgi, and dispatch.rb between my app and the cookbook, > they''re exactly the same. > > Apache 2.0 > fcgi 2.4.0 > mod_fcgid 1.10 > mysql 4.1 > ruby 1.8.5 > rails 1.2.3 > > Thanks, > Todd > > Virtual Host file > [code] > <VirtualHost *:80> > ServerName pm.arocksoftware.com > SetEnv RAILS_ENV production > DocumentRoot /var/www/rails/pm/public/ > > # TODO custom rolling logs > > <Directory /var/www/rails/pm/public/> > Options ExecCGI FollowSymLinks > > AllowOverride All > Order allow,deny > Allow from all > > AddHandler fcgid-script .fcgi > </Directory> > </VirtualHost> > > [/code]--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Gah! I can''t believe I overlooked that. Thanks for your help Mike, that fixed it. On 5/7/07, Mike D. <mike.dalessio-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Todd - > > Where the default application/public/.htaccess file says > > AddHandler fastcgi-script .fcgi > > Change it to read > > AddHandler fcgid-script .fcgi > > This is a configuration difference between mod_fastcgi and mod_fcgid. > > Good luck, > -mike > > > On May 5, 1:34 pm, Todd Nine <todd.n...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I am using the following configuration for my server, and getting some > > very strange behavior. I can use mod_fcgid to access the cookbook > > app, but whenever I try it with my app, apache just returns the source > > code of dispatch.fcgi as text. Any ideas what I may be doing > > incorrectly? I used a copy of the virtual host for my app and changed > > the server name to cookbook. If I do a diff of the .htaccess, > > dispatch.fcgi, and dispatch.rb between my app and the cookbook, > > they''re exactly the same. > > > > Apache 2.0 > > fcgi 2.4.0 > > mod_fcgid 1.10 > > mysql 4.1 > > ruby 1.8.5 > > rails 1.2.3 > > > > Thanks, > > Todd > > > > Virtual Host file > > [code] > > <VirtualHost *:80> > > ServerName pm.arocksoftware.com > > SetEnv RAILS_ENV production > > DocumentRoot /var/www/rails/pm/public/ > > > > # TODO custom rolling logs > > > > <Directory /var/www/rails/pm/public/> > > Options ExecCGI FollowSymLinks > > > > AllowOverride All > > Order allow,deny > > Allow from all > > > > AddHandler fcgid-script .fcgi > > </Directory> > > </VirtualHost> > > > > [/code] > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---