Displaying 20 results from an estimated 60 matches for "fastcgiserver".
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 lig...
2006 Jan 03
1
Max Execution Time with fastcgi (and in general). Getting it done.
...conds. 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(''im
here...
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 Feb 01
3
Configure Apache 2.0.55 and FastCGI
...tturails/ "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 +FollowSymL...
2006 May 17
12
Help with Apache config
I have been attempting for days to configure Apache for Rails. I have
read forums, followed How-To''s all in vain. I am hoping someone can help
me out. I am getting the Rails Welcome screen, but when trying to go to
any other url, I get the 500.html message. Take a look for yourself at
http://66.139.78.237 and click on "about your application''s
environment".
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 Apr 26
2
application failed to start for subdomain
...e 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 i''m thinking that it has something to
do with dispatch.fcgi. Right now in httpd.conf, i have the FastCGIServer
pointing to dispatch.fcgi in my main app. Can that dispatch.fcgi file also
route requests for my staging subdomain?
If not, how can i start another dispatch.fcgi process to route requests for
my staging site?
Thanks so much for all your kind help.
-------------- next part --------------
An HTML...
2006 Jan 15
2
What mode does Apache/Rails start in?
Hi ,
I am using Rails with APache on FC3. While I can control the mode in which
rails starts using WEBrick.How do I make APache start in one of the
dev/production modes.?
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060115/b823481f/attachment.html
2006 Aug 07
1
apache-fcgi - multiple applications on same server
...at''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 /my/path/to/rails/my_app1/public/dispatch.fcgi \
-initial-env RAILS_ENV=production \
-processes 4 -idle-timeout 120
</IfModule>
</snip>
I guess I somehow have to tell apache to use
/my/path/to/rails/another_app2/public/dispatch.fcgi for the other
application ?
Any i...
2006 May 19
5
more fcgi problems
Finally got fcgi installed with apache. Now whe I click on "About your
application''s environment" on the Rails Welcome page, it simply prints
out the dispatch.fcgi script as shown below. I would appreciate any help
I can get on this. I can provide other infomation if necessary.
#!/usr/local/bin/ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
#
2006 Apr 05
13
Apache Deployment Woes
...the same
problem. I''m pretty confident that if I can fix the number of
dispatchers, my problem will go away.
Here is what I have in my httpd.conf (directly after the AddModule
section):
<IfModule mod_fastcgi.c>
FastCgiIpcDir /var/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCgiServer /home/app1/public/dispatch.fcgi -idle-timeout 120
-initial-env RAILS_ENV=production -processes 4
FastCgiServer /home/app2/public/dispatch.fcgi -idle-timeout 120
-initial-env RAILS_ENV=production -processes 2
</IfModule>
Note that I have two rails apps running on this server. As far as I...
2006 Mar 13
9
apache 1 fastcgi config correct???
...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 in the rails book, it says to do:
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc
FastCgiServer /path/to/app/public/dispatch.fcgi -initial-env
RAILS_ENV=production -processes 15 -idle-timeout 60
</IfModule>
Right now i have my app up and running on the vps machine. It seems to be
pretty responsive considering it is in development mode.
- How can i tell if the fastcgi setup is correct...
2005 Mar 01
3
problems with apache
Hi all
I''m currently running rails on apache/windows and it seems like rails
has trouble getting started the first few times I start apache and
request a page.
I created a blank controller called ''test'', and it has an index method
and associated index.rhtml file. (All it contains is <p>hello world</p>)
I keep getting ''500 server
2005 Jun 30
4
A Memoir on FastCGI and Apache
...ynamically means the FastCGI server (the
monitoring/controlling process) will create and destroy FastCGI
processes on an as-needed basis.
- An example static configuration (from Norman Timmler and David
Hansson):
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc
FastCgiServer /app/public/dispatch.fcgi \
-initial-env RAILS_ENV=production \
-processes 15 -idle-timeout 60
</IfModule>
(Note that the backslashes in the above FastCgiServer line
should be removed--those three lines are really one line.)
- An example dynamic configura...
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 Feb 01
3
apache2 / fcgi / RoR - no connection
...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 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...
2006 Jun 30
0
Production Mode in my Rails Application not responding
I also had a problem with our client''s site www.storkselect.com. When
working with up-dating coding...Everythng was fine until I changed the
coding from:
IfModule mod_fastcgi.c>
FastCgiServer /var/www/storkselect/public/dispatch.fcgi \
-initial-env RAILS_ENV=development \
-processes 2 \
-idle-timeout 60
</IfModule>
To this:
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc
FastCgiServer /var/www/storkselect/public/disp...
2006 Jun 30
1
running in production mode
...I could not. Following is what I have in my
httpd.conf. Can someone tell me why it does not recognize the env
variable for production? The app always runs under development mode i.e
ignores the RAILS_ENV directive.
thanks/ thila.
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
FastCgiServer /app.......dir/public/dispatch.fcgi \
-initial-env RAILS_ENV=production \
-processes 4 -idle-timeout 180
AddHandler fastcgi-script .fcgi
</IfModule>
..
.
.
.
<VirtualHost 192.168.1.10>
ServerName www.myurl.com
ServerAlias myurl.com
DocumentRoot /app...dir/public/
&...
2006 Mar 29
1
load testing
...running on apache2 with fastcgi?
I have an app running circa 3000 page requests per day, most of which are static pre-cached files and fastcgi seems to be coping well so far (crosses fingers) but I would like to be able to work out my server limit.
Currently I have the following in my apache conf:
FastCgiServer /var/rails/production/public/dispatch.fcgi -initial-env RAILS_ENV=production -idle-timeout 120 -processes 1
but curiously this seems to spawn 2 processes, only one of which ever seems to be used.
I suppose I just want to know what will happen on the days we spike, and I''m not sure how fas...
2006 Feb 13
8
Anyone have Ruby for IIS installer?
Erwin:
We found it''s not worth the time to do this. It won''t work reliably.
You''re in for a world of hurt. We''ve given up on the idea after several
months of trying (and some great feedback from this list). There are
some on this list who claim to have gotten it to work, but that might
just be luck.
We''re now using Apache on a higher port, and using