Displaying 20 results from an estimated 700 matches similar to: "Max Execution Time with fastcgi (and in general). Getting it done."
2005 Dec 13
1
Locals and partials
Since i can''t figure out how to use heredocs with erb. im looking at
solving my problem
with partials, but since partials seem to have a completely separate
namespace/scope
im looking for a way to pass the entire scope of the calling rhtml to
the partial.
------------------------------------------------------------------------
Hunter Peress
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
2005 Dec 15
1
A way to handle looong executions?
Is there somewhere I can specify a maximum execution time for a given
request. (Eg, someone does something in my application that brings about
and infinite loop). The idea of potentially huge queries or even a
programmer mistake
is not impossible, and I have a hard time accepting that I will
release an
application that has no way of handling that.
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 Feb 01
3
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
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 Dec 14
0
relative subdirectory of partials
if im in the views dir for the railtstest controller and
render a partial like so: render(:partial=>''container/
thepartial'') then
it will only work if that partial is in views/container/thepartial
not if its in
views/railstest/container/thepartial as I expected.
but what i want is to have a dir called container inside of railstest
and be
able to render a partial
2006 Apr 10
15
Apache/FastCGI still in development mode?
I''m running rails on RedHat ES3 managed by Plesk with Apache/FastCGI.
I''ve followed the directions here:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnPlesk
And got everything working, but my application refuses to run in
Production mode. It runs in development mode despite the fact that I''ve
set:
FastCgiServer
2006 Mar 13
9
apache 1 fastcgi config correct???
I followed this tutorial on the rails wiki about how to get apache with
fastcgi working on a vps machine:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel
In the tutorial it said to add this to the httpd.conf file to get fastcgi
working.
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
</IfModule>
However
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 Jul 14
3
Apache Takes 10mins to Reboot
I have 5 FastCgiServer processes running on my Rails app (specified in
httpd.conf) in Apache 2. When I restart Apache - I timed it - it takes
just over 10 minutes to reboot. What up with that?
The FastCgiServer processes also have the RAILS_ENV variable set to
production.
Of course, once it reboots the app is lightning fast and all is well.
Is this just something I have to deal with by
2006 Jan 06
3
fastcgi on apache
Running on Fedora Core
I have been playing with some of the tutorials and one of them had me
install lighttpd and lighttpd-fastcgi and that was much faster than
apache seems to be.
How do I get fastcgi stuff to work on apache...
I have this setup for my tutorial environment in httpd.conf
<VirtualHost *>
DocumentRoot /home/craig/cookbook/public
ServerName cookbook
<Directory
2006 Aug 16
3
problems with fastcgi, apache2 and debian sarge
Apache conf:
FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env
RAILS_ENV=prod
uction -processes 5 -idle-timeout 60
<virtualhost 212.87.142.234:80>
ServerName www.gissmoh.de
DocumentRoot /var/www/gissmoh.de/public
CustomLog /var/log/apache2/gissmoh.de/access.log
combined
SetEnv RAILS_ENV production
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 Mar 23
8
The fastcgi crash after few hours
I have this configuration on my server
- Windows 2000 server
- Apache 2.0.55
- MySQL 5.x
- Rails 1.0
For the moment I have a rails app that run on Apache with fastcgi. After
some hours i use the application the fastcgi go down and so the web app
is so slow (with cgi).
The error in RAILS_ROOT/log/fastcgi.crash.log is:
[23/Mar/2006:09:11:23 :: 5668] Ignoring unsupported signal USR1.
2006 Jan 13
4
FastCGI processes sometimes ''hang''
I am running a RoR application on Apache 1.3/RedHat 7.3/MySQL 3.1.23
(Old versions I know, but upgrading to latest versions are not practical
for a number of reasons). There are 5 RoR FastCGI processes configured
using FastCgiServer.
What I am finding is that, after a while, some of the FastCGI processes
seem to ''hang''. They no longer process requests, and the only way to
2006 Apr 26
2
application failed to start for subdomain
I recently setup a subdomain to run my app as a staging site before pushing
changes to the main site. So i setup a subdomain in cpanel, symlinked that
the directory to point to a staging directory where i check''d out my rails
app.
However, when i go to staging.railsapp.com, it times out and says
application failed to start properly.
I''m not sure what is causing this, but
2006 Aug 07
1
apache-fcgi - multiple applications on same server
hello,
I have a server running apache-1.3 with mod_fastcgi that''s happily
running a rails application. Life is good ;)
I would like to setup another application (vhost) on the same server..
How to do ?
My httpd.conf says:
<snip>
# fastcgi
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fgci_ipc
AddHandler fastcgi-script .fcgi
FastCgiServer
2006 Apr 05
13
Apache Deployment Woes
Hi Everybody,
I''m down to my last straw. I''ve been trying to deploy my latest rails
project on Apache for about two weeks with limited success. I have a
lot of info, but still no clue what is causing my problem. I decided to
turn to the community for some help...
Basically, my site works fine with Apache and FastCGI most of the time,
but sometimes I get the "Rails
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