Displaying 14 results from an estimated 14 matches for "defaultinitenv".
2007 May 29
4
undefined method `define_a_column' for class `OCI8::Cursor'
Hi,
Environment: Solaris 10, Orale 10g, Apache 2.2, Ruby 1.8.4, Rails
1.2.3, Ruby OCI8 1.0.0-rc2
As soon as I compiled and installed the Ruby/OCI8 interface, I got the
following error from my application:
=========================
[notice] mod_fcgid: call /export/home/invido/invido/portal2/public/
dispatch.fcgi with wrapper /usr/local/bin/ruby /export/home/invido/
2006 Mar 23
1
mod_fcgid
...I''m using rails on apache2 with mod_fcgid and I can''t seem to set the RAILS_ENV properly.
I have dev & production vhosts and would like to set the environment from within apache rather than globally via fcgid.conf, and I thought this might work from within the relevant vhost:
DefaultInitEnv RAILS_ENV production
but it seems to do nothing...
Does anyone know the right way to do it?
dorian
--
--
I do things for love or money
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 option because
I update the production server via SVN but need to keep environment.rb
in my repository.
--~--~---------~--~----~------------~-------...
2006 Aug 15
2
Apache & FCGI: Premature end of script headers:
...ge:
" Premature end of script headers: dispatch.fcgi"
I cant see any generel configuration problem, as sometimes everything is
running fine.
Maybe it is a problem related to timing:
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /var/lib/apache2/fcgid/sock
DefaultInitEnv RAILS_ENV production
IPCCommTimeout 50
IPCConnectTimeout 50
MaxProcessCount 40
ProcessLifeTime 86400
IdleTimeout 80
DefaultMaxClassProcessCount 8
</IfModule>
Dispatch.fcgi is running fine if I start direct from command line with
the following message (ignore the warning - I hav...
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),
terminated by calling exit(), return code 1
Any help with this would be
2007 May 17
3
Ubuntu rails server
...Order allow,deny
Allow from all
AddHandler fcgid-script .fcgi
</Directory>
</VirtualHost>
in fcgid.load
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
in fcgid.conf
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
DefaultInitEnv RAILS_ENV production
SocketPath /var/lib/apache2/fcgid/sock
IdleTimeout 60
ProcessLifeTime 6000
MaxProcessCount 32
DefaultMaxClassProcessCount 2
IPCConnectTimeout 6
IPCCommTimeout 6
</IfModule>
My apache version is 2.2.3 and this is the reason that all conf is
separated in file...
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 Jun 29
0
can''t run rails application
Hello,
I''m trying to run Rails on Apache 2.0 with mod_fcgid. It seems like
fcgi has been set up ok, but still I can''t run my rails application.
Here is my httpd.conf
IPCCommTimeout 40
IPCConnectTimeout 10
DefaultInitEnv RAILS_ENV production
SocketPath /tmp/fcgidsock
<VirtualHost *:80>
<Location />
RewriteEngine On
RewriteOptions MaxRedirects=3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
<...
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_ENV seems to be locked into one dispatch.fcgi which then handles requests for both vhosts. So if I hit my dev site first, the pr...
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
2006 Aug 06
19
Rails *that* slow?
I''m working on my first little rails-application. It''s a rewrite of a
gallery-script i once made (in PHP): http://notdotnet.net
However - my rails-version is waaay to slow :(
http://r.notdotnet.net/
I don''t do any heavy image-processing, I don''t have any
killer-algorithms with a time complexity on O(n^n), and I don''t use any
major hacks.
The only
2006 May 08
5
Ruby on Rails on Linux - Any suggestions/Help?
Hi, I''m really new to RoR and I''m trying to setup a development or even
production server for Ruby on Rails.
I''m trying to do it on Linux Debian, but somehow, I always get this Error:
Application Error - Rails application failed to start properly
This was running on Debian Linux, Apache2, Mysql and FastCGI.
The Tutorial I used:
2006 Sep 19
9
RoR with apache2 on SuSE
Hi,
I have an application completed that was built with RoR on windows. So
this of course was tested with the webbrick server. I now want to put
the project on our apache web server for production. I am having a very
hard time getting this accomplished. I followed some of the steps here
(because not all of them worked):
2006 Jun 16
12
FastCGI times out?
Hello there,
So I''m still struggling with this fastcgi stuff. I''m trying to upload and
process a decent sized ZIP file, but the request dies before it finishes and
I get the following error:
FastCGI: comm with (dynamic) server
"/Users/ryan/Workspace/rails/photos/public/dispatch.fcgi" aborted: (first
read) idle timeout (30 sec), referer: http://photos/album/new/4