search for: fastcgiconfig

Displaying 20 results from an estimated 24 matches for "fastcgiconfig".

2005 Dec 30
0
can''t kill infinite loop with FastCgiConfig directive
FastCgiIpcDir /www/fastcgi FastCgiConfig -idle-timeout 30 I have that right in the root level of my httpd.conf (1.3) i made an inifinite loop in rails, and its not killed at all. Any ideas? ------------------------------------------------------------------------ Hunter Peress hunterp-hceJc2YFNylFcjXmduoLkw@public.gmane.org Web Progra...
2005 Aug 11
0
fastcgiconfig in .htaccess?
...und a solution[1] (maybe) to my occasional fastcgi deaths, which return 500''s. Since I don''t have access to httpd.conf on my hosted server, is it possible to modify my .htaccess file in order to increase the idle-timeouts for fastcgi? What is the syntax? I tried adding the line: FastCgiConfig -idle-timeout 1200 -maxClassProcesses 5 to .htaccess, but that didn''t work. Thanks, Bryce http://lightincense.com [1] http://wrath.rubyonrails.org/pipermail/rails/2005-March/004475.html
2005 Sep 28
2
fastcgi timeout settings
...astcgi timeout after 30 seconds. From apache log: FastCGI: comm with (dynamic) server "D:/projects/MojAlbum/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec), referer: http://mojalbum.4dva.hr/albumi/moji I tried to set timeout in apache conf by: <IfModule> FastCgiConfig -killInterval 900 -idle-timeout 900 AddHandler fastcgi-script .fcgi </IfModule> but nothing changes. What I,m missing? Where could I set fastcgi timeout to be a little longer? Thanks, Igor
2006 Jul 28
7
Uploading 2+ files simultaneously
...achines)... the upload page just hangs... I''m running... - ruby 1.8.4 (2005-12-24) [i686-linux] - rails 1.1.4 - red hat el 4 - apache - fcgi (0.8.7, 0.8.6.1) - firefox 1.5.0.5 - httpd.conf <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi FastCGIConfig -minProcesses 2 </IfModule> thoughts/suggestions? -- Posted via http://www.ruby-forum.com/.
2005 Mar 17
4
Specifying Which Environment I Am In
After I have uploaded my app where do I specify that my app should now use production environment settings and not development? Can that be done dynamically so that I don''t have to reset a value once I upload website? Thanks for your help!
2005 Jun 30
4
A Memoir on FastCGI and Apache
...lt;/IfModule> (Note that the backslashes in the above FastCgiServer line should be removed--those three lines are really one line.) - An example dynamic configuration: <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi FastCgiConfig -restart -minProcesses 5 -maxProcesses 50 \ -initial-env RAILS_ENV=production -idle-timeout 360 \ -pass-header HTTP_AUTHORIZATION </IfModule> As of this writing, I have been unable to get the dynamic processes to stay running (they die mysteriously and do not get res...
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
...nd no errors in the apache logs. Relevant bit of httpd.conf: <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi </IfModule> FastCgiIpcDir /tmp FastCgiServer "/tmp/rubystuff/testapp/public/dispatch.fcgi" -idle-timeout 20-initial-env RAILS_ENV=development -processes 2 FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 [ ... ] <Directory /tmp/rubystuff/testapp/public> RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f Re...
2006 Jan 11
3
Idle Apache+FastCGI sleeping?
...; ServerName rails DocumentRoot "approot/rails/public" <Directory "approot/rails/public"> Options ExecCGI FollowSymLinks AllowOverride all Allow from localhost 127.0.0.1 Order allow,deny AddHandler fastcgi-script .fcgi </Directory> </VirtualHost> FastCgiConfig -initial-env RAILS_ENV=production -maxProcesses=1 Am I missing anything? -- Jason Anderson http://www.thenewjhp.com
2006 Jan 03
1
Max Execution Time with fastcgi (and in general). Getting it done.
...than say 30 seconds. This is a worthwhile feature, years of work in php has shown me that it is. Thanks to a bit of help from various source in the community, I''ve been able to find something that works with fastcgi and surely should work with webbrick. I tried -idle-timeout with the FastCgiConfig/FastCgiServer directives and they failed, eg FastCgiServer /www/vhosts/whatever/public/dispatch.fcgi -idle-timeout 30 left me with dispatch.fcgi still using up 98% of the cpu on my intentional infinite loop test. I tried require "timeout" and Timeout::timeout(2){ logger.info('...
2005 Dec 23
1
FastCGI and large file uploads
I use dreamhost for my hosting provider, and I am working on app where it requires large files (max 10 MB) to be uploaded to the server. As of right now the fastcgi processes are configured with: FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production \ -idle-timeout 120 -maxClassProcesses 5 -killInterval 300 My problem is that I try and upload a file via the web that is around 5 MB to the fastcgi process, the webbrowser sits for a few minutes, then an error message comes back. Uploading vi...
2006 Apr 08
3
FastCGI issues
I am attempting to get Rails running on Windows with an Apache 2 server. I seem to be having some trouble, and in spite of my best efforts to find a solution, I could not. I believe that I configured Apache correctly. I have included EnableSendfile Off EnableMMAP Off Win32DisableAcceptEx FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 \ -initial-env PATH="c:/ruby/bin;c:/windows/system32;c:/windows;C:/mysql/bin" \ -initial-env RUBYOPT=rubygems in httpd.conf per this article: http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windo...
2005 Mar 10
5
dispatch.fcgi dieing randomly
Recently my application has refused to start on my production environment. The setup is debian(unstable)/apache2/fastcgi/mysql Rails 0.10 (upgrading to 0.10.1 as we speak) When I first start up apache the machine grinds to a crawl starting up the dispatch.cfi processes. It''s a VPS with 256M of ram, but still (in addition to user time) it''s spending 30% of time in system
2005 May 10
8
fastcgi approach?
I''ve just had a problem with fastcgi killing processes off while they were running (I have a long-running background process)... but it took me a while to track it down and pinpoint that fastcgi was asking the process to quit. So i was thinking if it would be a good idea to tweak the way ruby-fastcgi handles this. At the moment, in fcgi.rb (part of the fcgi gem) there is
2006 Jul 14
0
avoiding the application startup time
...void the start up issue? - how would users be able to reload their configs? - are their any issues with this setup? Out of interest this is our current fastcgi configuration in our httpd.conf <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi/ AddHandler fastcgi-script .fcgi FastCgiWrapper On FastCgiConfig -autoUpdate -singleThreshold 100 -killInterval 300 -idle-timeout 240 -initial-env RAILS_ENV=production </IfModule> Thanks
2006 May 30
0
Performance problem with Apache-FCGI-Rails
We have our Rail 1.0 application running on Apache 1.3 with FastCGI. The httpd.conf has : <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /root/zs/public/dispatch.fcgi -processes 2 FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production -idle-timeout 120 -maxClassProcesses 2 -killInterval 300 </IfModule> The dispatch.fcgi is the default provided in the Rails app: #! /usr/local/bin/ruby require File.dirname(__FILE__) + "/../config/environment" require ''fcgi...
2006 Feb 03
0
FastCgiExternalServer vs. static/dynamic
I''m trying to switch to the "external" fcgi method. In httpd.conf, this works: FastCgiServer "/tmp/rubystuff/testapp/public/dispatch.fcgi" -idle-timeout 20 -processes 4 FastCgiConfig -maxClassProcesses 2 -maxProcesses 2 -minProcesses 1 -processSlack 1 This fails with an error (the public/500.html page is returned): FastCgiExternalServer "/tmp/rubystuff/testapp/public/dispatch.fcgi" -idle-timeout 20 -host localhost:19999 For the external, I am also starting $ cgi...
2006 Jan 19
0
Rails with Apache - application failed to start
..., I followed the instructions in the article http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows to make rails work with apache: Install Apache2, latest stable version Install the latest Ruby Installer for Windows Install the latest Ruby For Apache In httpd.conf I have: FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 \ -initial-env PATH=e:/ruby/bin;d:/windows/system32;d:/windows \ -initial-env RUBYOPT=rubygems \ -initial-env MAGICK_CONFIGURE_PATH=e:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.7.0-mswin32/config When I browse http://127.0.0...
2005 Dec 30
0
XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"
...l" (just brand name) - Apache 2.0.55 (msi) - Ruby for Apache 1.3.1 - Database backend is now Oracle 8.1 Everything run fine with default environment, I''m confused for switching into ''production''. By default RAILS_ENV is null, and my env is like explained by Deme : FastCgiConfig -maxClassProcesses 1 -MaxProcesses 1 -minProcesses 1 -processSlack 1 \ -initial-env PATH="c:/ruby/bin;C:/oracle/ora817/bin;[snip] -initial-env RUBYOPT=rubygems \ -initial-env MAGICK_CONFIGURE_PATH=C:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/config Also tried to add more p...
2006 Aug 05
0
RMagick and FastCGI on Windows
...%> # returns false. But it works, so that is misleading. For prod, I am running Apache2 and FastCGI (yes, I got it working.) RMagick is not working however. The best lead I have is from here: (http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows) It says to try this: FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 -initial-env PATH="c:/ruby/bin;c:/windows/system32;c:/windows;" -initial-env RUBYOPT=rubygems \ -initial-env MAGICK_CONFIGURE_PATH="c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib;" No luck....
2006 Apr 29
2
iCal / Authentication / Site5 ?
So, I''m working on adding iCal support to my app. Since I want to restrict users to their own calendars, form-based authentication isn''t going to work, so I''m using the Basic HTTP Authorization from this page - http://blogs.23.nu/c0re/stories/7409/ Everything works fine in my dev machine, but on the server (Site5), I get the login prompt ad infinitum. Has anyone run