Displaying 20 results from an estimated 67 matches for "fcgid".
Did you mean:
fcgi
2006 Aug 01
2
apache and fcgid
So I decided to just go with apache2 and fcgid. I looked into Mongrel
and apache and I looked into lighttpd and fastcgi and found both to be
too time consuming and not well enough documented for what I''m doing.
My question is, how do I set up apache and fcgid to actually work? I got
apache installed. I think I got fcgid installed (...
2006 Jul 28
4
[mod_fcgid] 503 server temporarily unavailable
Hi There,
Every now and then, and recently more and more we get a "503 server
temporarily unavailable" error from our rails app.
We are running Rails 1.0 with mod_fcgid in Apache 2.0.54 on Debian
The thing is I don''t think we have such a heavy load on the server, and
I haven''t seen this error occur at all outside the rails app. In fact I
don''t think I ever saw it before we switched to fcgid.
Has anybody else experienced anything simila...
2007 May 17
3
Ubuntu rails server
...39;ve been notified about this issue and we''ll take a look at it
shortly.
Here are my installed app versions:
root@otpsrv:~# ruby -v
ruby 1.8.5 (2006-08-25) [i486-linux]
root@otpsrv:~# rails -v
Rails 1.2.3
root@otpsrv:~# gem -v
0.9.3
and my conf are:
in .htaccess i have modify
AddHandler fcgid-script .fcgi
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
in apache conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName test
DocumentRoot /var/www/test/public
ErrorLog /var/www/test/log/apache.log
<Directory /var/www/test/public/>...
2006 Mar 12
4
Apache not running Fcgid
I''m having the same problems as this fellow, Mr. Cheetham, in getting
my rails app up and running on apache2+fcgid. Webrick runs, but
dispatch.fcgi never actually runs, and apache spits out a grusome
"Premature end of script headers: dispatch.cgi" error message in the
log. Mr. Cheetham describes his problem at
http://www.archivesat.com/Typo_blogging_engine/thread164398.htm
I can safely say dispatch...
2006 Apr 09
18
I can''t get mod_fcgid to work
Hi,
I just installed mod_fcgid on my apache2 server.
When I try to load my application I get an
"Application error - Rails application failed ..." message.
In my Apache2 error-log it says:
Premature end of script headers dispatch.fcgi
mod_fcgid process /data/www/app/dispacth.fcgi exit (communication
error),
terminate...
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
All,
I have run into a road block with my RoR project. The app works fine
without SSL but when I try to upload a file with the site running in
HTTPS, cgi.rb throws an EOFError:
[13/Mar/2006:23:05:48 :: 22982] Dispatcher failed to catch: bad content
body (EOFError) /usr/lib/ruby/1.8/cgi.rb:981:in `read_multipart?
2005 Dec 28
1
Can''t quite get fcgid working
I''m having trouble with running my app under fcgid. I am getting errors in
my Apache log. It seems that it is choking on the gems replacement for
require. The relevant lines from /var/log/apache2/error.log:
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError)
from /usr...
2006 Aug 31
2
How to set RAILS_ENV for different directories (fcgid)
Hello!
I want to use the same application in two environments (production and
development) on the same server (apache2 with fcgid) in different
(aliased) directories.
Is there a way to specify RAILS_ENV inside my <Directory> directives? I
have the line
DefaultInitEnv RAILS_ENV production
in my httpd.conf but I want one of the directories to be development.
Setting the ENV var directly in environment.rb is not an optio...
2006 Feb 12
1
fcgid -> errors
Hi,
I''m trying to get rails running on Debian stable with Apache 2,
mod_fcgid, Rails 1.0. The application works fine with webrick (*).
Let''s start here:
@eugene [/var/www/ls2/linuxsi/public] $ ./dispatch.fcgi
Status: 500 Internal Server Error
Seems to result in the following in the log files:
[12/Feb/2006:12:18:40 :: 4105] starting
[12/Feb/2006:12:18:40 :: 4105...
2006 May 07
0
apache/lighttpd or apache with fcgid
I am trying to determine (from people''s experience here) if there is a
benefit to proxying apache -> lighttpd -> rails instead of just using apache
mod_fcgid -> rails. I am having some concerns of the stability of the fcgid
apache modules as well as the incredibly painful first connect issue with
apache mod_fcgid. Is the lighttpd fcgi more stable and mature than apache ?
Is there a performance hit (or gain) to sticking lighttpd in the middle of
a...
2006 Mar 24
0
fcgid woes
hi there,
I''m running rails on apache2 with mod_fcgid which works, but I''m having trouble with environments adn separate dev & prodution vhosts. I have DefaultInitEnv set in the VirtualHost directive for each (as production | development), which works fine after a server restart for whichever vhost I hit first, but thereafter the RAILS_EN...
2006 Jun 15
12
RoR on Apache2
...w that I believe is pertinent.
Any thoughts? Thanks.
-Chad
Ubuntu 6.06, Apache/2.0.55 (Ubuntu) PHP/5.1.2, ruby 1.8.4 (2005-12-24)
[i486-linux], Rails 1.1.2
The app is located at /home/crvoelker/src/ToDo/
---start segment---- /etc/apache2/apache2.conf
...
#AddHandler cgi-script .cgi
AddHandler fcgid-script .fcgi
...
Alias /ToDo/ "/home/crvoelker/src/ToDo/public/"
<Directory "/home/crvoelker/src/ToDo/public/">
Options Indexes MultiViews ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AddHandler fcgid-script .fcgi .fcg .fpl
AllowOverri...
2006 Jul 19
4
Rails crashes my fcgid/fastcgi/scgi on apache2/lighttpd :<
Or maybe I crash it and don''t know why. Here is the setup:
I have an action that will crash my debian sarge development box
using fcgid, fastcgi and scgi running with Apache2, as well as
fastcgi running with lighttpd, every time. Here is the action from
the controller:
-------------------
def crashme
@orders = Order.find(:all, :order => "`id` ASC", :offset =>
0, :limit => 200)
emails_array =...
2006 Jan 31
0
Apache2+fcgid = "malformed header from script" when page starts with a space
I was getting some "application failed to start properly" pages, but
production.log was not showing anything.
Looking closer I''ve noticed that server_error.log (the apache log) was
giving lines like:
"malformed header from script. Bad header=<html>: dispatch.fcgi, referer:"
I was able to determine the cause, and that was that some pages were
starting with a space
2006 Mar 06
4
Apache 2.x: Use fcgid or Mongrel?
...#39;'s lots of stuff going on currently with choices of production
deployment environments. But I''m not clear on a few things as I need to
decide on a production setup where Apache is a given.
A recent thread (http://www.ruby-forum.com/topic/56590) seemed to favor
Apache 2 with mod_fcgid. And this is supported in articles such as:
http://paul.querna.org/journal/articles/2006/01/01/using-mod_fcgid-for-ruby-on-rails-applications
And then there''s all the excitement about Mongrel.
Question 1. What are the advantages of mongrel over fastcgi?
http://mongrel.rubyforge.org/ is...
2007 Feb 26
3
POST data not coming through
I developed an application using Rails and the WeBrick, and now I''ve
moved it to the production server using apache/fcgid. Now, however,
post data is not being populated in the params hash. Even a simple form
with one hidden field, which works fine as a GET request, does not work
using POST. The problem isn''t with the form, as I''ve posted the data to
a simple php script that just dumps the data, a...
2006 Feb 19
8
uninitialized constant RailsFCGIHandler
...rying to switch to FastCGI.
With CGI everything works, but after have done all the steps of the wiki
here
(http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntuDebianTestingAndUnstable)
My application started to give me "Error 500"
Looking at the Apache logs I can see :
[notice] mod_fcgid: server /rails/public/dispatch.fcgi(6127) started
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_missing'': uninitialized constant RailsFCGIHandler (NameError)
from /rails/public/dispatch.fcgi:25
[notice] mod_fcgid: process /rails/public...
2006 Jul 31
4
switching database dynamically based on incoming request
...s fairly straightforward to make the config settings dynamic,
since we can use request.host to work out which host the user is
hitting, and switch style sheets etc. based on that. [note that ENV
can''t be used in this fashion since it appears to only pick up
enviroment variables set for the fcgid process in general]
In principle we could do the same for the database by adjusting
database.yml like so:
development:
adapter: mysql
database: <%= request.env[''DEV_DATABASE''] %>
host: localhost
username: <%= request.env[''DEV_DATABASE_USERNAME'']
passwo...
2006 Apr 21
8
FastCGI: Apache 1.x or 2 on new Debian System?
Hi,
I am just installing a new test environment, but this is just for
preparing the next one, which will be a production server.
I am doing a clean Debian Sarge 3.1 install with stable sources. I have
to decide if I install Apache 1.x or 2 now.
I have read that FastCGI is better supported/developed for Apache 1.x.
Is this (still) true? What is easier, more stable, etc? I want to run
rails
2006 Nov 09
0
Apache configuration
...RY TO CONFIGURE APACHE FOR RUBY ON RAILS ON UNIX.
BY THE FOLLOWING WAYl:
Install FastCGI
1. wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
2. gunzip fcgi-2.4.0.tar.gz
3. tar -xvf fcgi-2.4.0.tar
4. cd fcgi-2.4.0
5. ./configure
6. make
7. make install
8. cd ../
Install mod_fcgid
1. cd ~
2. wget http://fastcgi.coremail.cn/mod_fcgid.1.09.tar.gz
3. gunzip mod_fcgid.1.09.tar.gz
4. tar -xvf mod_fcgid.1.09.tar
5. cd mod_fcgid.1.09
6. vi Makefile
Change top_dir to:
top_dir = /usr/lib/httpd
Uncomment #INCLUDES and change to
INCLUDES=-I /u...