Displaying 20 results from an estimated 900 matches similar to: "FastCGI and large file uploads"
2005 Sep 28
2
fastcgi timeout settings
I have few lengthly processes in my application, and I''m getting fastcgi
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
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
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
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
Hi,
I''ve generated a new Rails app and dummy controller "foo" with method
"hello". I am trying to run it under Apache/2.0.53 with fastcgi, and
getting the index.html page when I hit http://localhost/foo/hello, or
for any other request (http://localhost/kdjfslkfjs). Also, there is
nothing in the rails logs, and no errors in the apache logs.
Relevant bit of
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
We are currently running our servers with Apache 1.3 and fastcgi
(using cPanel). We have lots or rails applications running under
different virtual hosts. Everything works pretty well and applications
are served fast. The problem we would like to overcome is the startup
time for the applications when you hit the website for the first time.
We do not want to run fastcgi processes persistently due
2006 Aug 05
0
RMagick and FastCGI on Windows
I''m having trouble getting RMagick to work on my Apache/FastCGI setup.
If I top Apache and start WEBrick on the exact same app/dirs, it works
fine.
I installed RMagick following the instructions here:
http://rmagick.rubyforge.org/install-faq.html#win
That gives me:
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.9.2-mswin32\lib
2005 Dec 30
0
XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"
Dears,
Thanks to Demetrius (dema.ruby.com.br, see Taming FastCGI) I''ve a
running FastCGI Rails 1.0 environment with :
- Win XP "Professional" (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
2005 Aug 11
0
fastcgiconfig in .htaccess?
Digging through some mailing list archives, I found 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
2005 Jun 30
4
A Memoir on FastCGI and Apache
With the release of our filmfury.com project, I''ve been trying to
rise to the stature of a true system administrator in the last couple
of days (haha). I''m trying to understand how all of the pieces to
this apache/fastcgi deployment fit together.
Here''s what I''ve learned so far:
* You need a separate FastCGI server for each Rails application on
your
2006 Jan 11
3
Idle Apache+FastCGI sleeping?
Wondering: Does Apache shut down inactive FastCGI processes if it
doesn''t get any requests for a while? My app works fine if it''s being
used regularly, but it will respond very slowly to the first request
after an hour of zero traffic.
Is there a way to keep FastCGI ready all the time, even when there
haven''t been any requests for a while? We''re deploying
2006 Jan 03
1
Max Execution Time with fastcgi (and in general). Getting it done.
The purpose of this email is not to argue that there is a need to
have the option of killing a single response if it
takes longer 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.
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
2006 Jan 19
0
Rails with Apache - application failed to start
Hi,
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
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
2006 Jul 28
7
Uploading 2+ files simultaneously
I''m having trouble uploading 2+ files simultaneously (from different
client machines)...
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
2005 Jan 26
3
crahsing app
Can anyone tell me what is causing htis by chance? I know it is
the application. What's weird is i "fixed' it last time by
reformatting the machine to stabilize this one app. Now after a
month it crashes again....
Well the steam hlds has started randomaly crashing again.
----------------------------------------------
----------------------------------------------
CRASH: Tue
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!
2006 May 09
4
Upgrade from 2.3.1 to 2.6.6 fail
Hi all,
I upgrade my rsync from 2.3.1 to 2.6.6 today in the client host, everything
seems not working after the migration.
I didn't touch the rsync server.
Herewith is the log from my rsync server. I looks like something related to
IPV6, anyone has any idea?
Rsync Server : RHEL4 with rsync 2.6.3 deamon running
Rsync Client (merlin) : Solaris 8 with rsync 2.6.6
2006/05/09 16:18:40 [5332]
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 Programmer
The Santa Fe New Mexican, Inc.
www.freenewmexican.com