I''m installing a Rails App under Apache 2.0.55 with FastCGI. I have this config under httpd.conf ------------------------ LoadModule fastcgi_module modules/mod_fastcgi.dll ... Alias /fatturails/ "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/" <Directory "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public"> AddHandler fastcgi-script .fcgi Options +ExecCGI AllowOverride All Allow from all Order Allow,deny </Directory> FastCgiServer "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" -processes 1 ------------------------- Then in my .htaccess i have this code ------------------------- # General Apache options # AddHandler fastcgi-script .fcgi # AddHandler cgi-script .cgi # Options +FollowSymLinks +ExecCGI ... RewriteRule ^(.*)$ /fatturails/dispatch.fcgi [QSA,L] ... ------------------------- When I start Apache all ok, but if I try to open my application I have this error in errors.log (after 40 seconds...). ------------------------- FastCGI: server "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Wed Feb 01 20:37:10 2006] [error] [client 127.0.0.1] (OS 2)Impossibile trovare il file specificato. : FastCGI: failed to connect to server "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi": CreateFile()/WaitNamedPipe() timed out [Wed Feb 01 20:37:10 2006] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" ------------------------- Thans to all for the help. --Reis -- Posted via http://www.ruby-forum.com/.
1. Did you install Ruby? (of course you did!) 2. Did you install RubyForApache? 2a. DId you uncheck mysql and mod_ruby options when installing RubyForApache? 3. Did you check your htaccess for the rewrite base? 4. Did you set your rails environment to Production? (either in environment.rb or through the FastCGIServer line? 5. Did you install mod_fastcgi? (LoadModule fastcgi_module modules/mod_fastcgi.dll) Here''s my working httpd conf and htaccess.... You are using an alias, so you need to uncomment RewriteBase in your htaccess file: Httpd part: Alias /code "e:/sites/rails/code/public" # the next line starts the environment in production mode with idel of 120 seconds... # it should all be on one line!!!!! FastCgiServer e:/sites/rails/code/public/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 1 <Directory e:/sites/rails/code/public> Options ExecCGI FollowSymlinks AllowOverride All </Directory> .htaccess file: # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI ... Snip .... # Example: # Alias /myrailsapp /path/to/myrailsapp/public RewriteBase /code RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] ... Snip .... Let me know if that gets you anywhere.... Currently running Rails apps on one box with this configuration (win32 apache 2.0.55) -Brian Hogan -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Reis Sent: Wednesday, February 01, 2006 1:51 PM To: rails@lists.rubyonrails.org Subject: [Rails] Configure Apache 2.0.55 and FastCGI I''m installing a Rails App under Apache 2.0.55 with FastCGI. I have this config under httpd.conf ------------------------ LoadModule fastcgi_module modules/mod_fastcgi.dll ... Alias /fatturails/ "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/" <Directory "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public"> AddHandler fastcgi-script .fcgi Options +ExecCGI AllowOverride All Allow from all Order Allow,deny </Directory> FastCgiServer "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" -processes 1 ------------------------- Then in my .htaccess i have this code ------------------------- # General Apache options # AddHandler fastcgi-script .fcgi # AddHandler cgi-script .cgi # Options +FollowSymLinks +ExecCGI ... RewriteRule ^(.*)$ /fatturails/dispatch.fcgi [QSA,L] ... ------------------------- When I start Apache all ok, but if I try to open my application I have this error in errors.log (after 40 seconds...). ------------------------- FastCGI: server "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Wed Feb 01 20:37:10 2006] [error] [client 127.0.0.1] (OS 2)Impossibile trovare il file specificato. : FastCGI: failed to connect to server "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi": CreateFile()/WaitNamedPipe() timed out [Wed Feb 01 20:37:10 2006] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" ------------------------- Thans to all for the help. --Reis -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hogan, Brian P. wrote:> 1. Did you install Ruby? (of course you did!)Ruby is installed (182.15)> 2. Did you install RubyForApache? > 2a. DId you uncheck mysql and mod_ruby options when installing > RubyForApache?Noooooooo... This is the error. The administrator of the server has installed mysql and mod_ruby. Thanks so much.> 3. Did you check your htaccess for the rewrite base?Ok> 4. Did you set your rails environment to Production? (either in > environment.rb or through the FastCGIServer line?No... but now it start.> 5. Did you install mod_fastcgi? (LoadModule fastcgi_module > modules/mod_fastcgi.dll)Yes, but I have a question. Becouse I load the .dll and not the .so. is the same?> Here''s my working httpd conf and htaccess.... You are using an alias, so > you need to uncomment RewriteBase in your htaccess file:Done.>Thanks so much... --Reis -- Posted via http://www.ruby-forum.com/.
Dunno... I used the dll I got from http://www.fastcgi.com/dist/mod_fastcgi-2.4.2-AP20.dll Renamed it to mod_fastcgi.dll, placed it in apache2/modules and everything worked great. -Brian -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Reis Sent: Wednesday, February 01, 2006 2:23 PM To: rails@lists.rubyonrails.org Subject: [Rails] Re: RE: Configure Apache 2.0.55 and FastCGI Hogan, Brian P. wrote:> 1. Did you install Ruby? (of course you did!)Ruby is installed (182.15)> 2. Did you install RubyForApache? > 2a. DId you uncheck mysql and mod_ruby options when installing > RubyForApache?Noooooooo... This is the error. The administrator of the server has installed mysql and mod_ruby. Thanks so much.> 3. Did you check your htaccess for the rewrite base?Ok> 4. Did you set your rails environment to Production? (either in > environment.rb or through the FastCGIServer line?No... but now it start.> 5. Did you install mod_fastcgi? (LoadModule fastcgi_module > modules/mod_fastcgi.dll)Yes, but I have a question. Becouse I load the .dll and not the .so. is the same?> Here''s my working httpd conf and htaccess.... You are using an alias, > so you need to uncomment RewriteBase in your htaccess file:Done.>Thanks so much... --Reis -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails