search for: fcgi_ipc

Displaying 20 results from an estimated 33 matches for "fcgi_ipc".

2005 Mar 14
1
(newbie) /tmp/fcgi_ipc ?
I am running Rails on my Mac, installed from fink/gems. I get this error when I try to re/start Apache: FastCgiIpcDir /tmp/fcgi_ipc: access for server (uid -1, gid -1) failed: read not allowed If I chmod the /tmp/fcgi_ipc directory, apache starts and everything''s fine. Why is fcgi_ipc in my /tmp directory? Can anyone guess why the chmod''ing doesn''t seem to "stick" ? I''m just t...
2006 Jan 14
6
Error installing Rails/FastCGI/Apache2
Trying to install rails/fcgi/apache2. Following these instructions: http://xmlareas.com/ruby-rails-howto.html Using Fedora Core 4. I installed ruby and ruby-devel using apt-get. Everything under Adding FastCGI (optional) works fine up to the gem install fcgi part. Here is what happens: [root@paulbarry fcgi-2.4.0]# gem install fcgi -r -- -with-fcgi-lib=/usr/local/fcgi/lib
2006 Mar 13
9
apache 1 fastcgi config correct???
...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 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>...
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 15
5
Apache (both 1.3 & 2) not calling dispatch.fcgi on Debian
...e same problem). * We installed the latest version of mod_fastcgi (after installing the Developers Kit). * We installed the fcgi gem for Ruby. * We have the following server configuration in httpd.conf (essentially straight from the Agile book): <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /var/www/dispatch.fcgi \ -initial-env RAILS_ENV=production \ -processes 3 -idle-timeout 60 </IfModule> * With this set up, we see that Apache starts three FastCGI threads, showing up in both the apache logs and the fastcgi.crash.log in the Rails application. * To be sure:...
2006 Jul 28
7
Uploading 2+ files simultaneously
...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 -minProcesses 2 </IfModule> thoughts/suggestions? -- Posted via http://www.ruby-forum.com/.
2005 Jun 30
4
A Memoir on FastCGI and Apache
...they crash?). Dynamically 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 exam...
2006 Jun 30
1
running in production mode
...n mode, but 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....
2006 Mar 26
3
help with rails and apache
i just went through the tutorial on http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel but i''m having some problems. when i add: <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule> under the line that says: LoadModule fastcgi_module libexec/mod_fastcgi.so apache fails to restart. i went on through the rest of the tutorial, but i can''t set up my rails apps to work right. i set up a directory for my rails app a...
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 Apr 24
12
setup a staging site?
Hi, i''m wondering how to setup a staging site for my RoR app. Right now i run webrick on my laptop to develop, then i svn commit my changes to the production server. However i need to make my development environment available to others and not just for me on my laptop. I have RoR setup on a hosted vps server which runs in production environment. Its on apache 1.3 and mysql. How can i
2006 Apr 05
13
Apache Deployment Woes
...arious numbers of dispatchers and I still have 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...
2006 Feb 16
4
Lost while trying to deploy rails app on apache
...#39;t work. Today I decided to take a different route and try the second setup. I placed the symlink into apache''s document root, built mod_fcgi, added LoadModule fastcgi_module libexec/httpd/mod_fastcgi.so AddModule mod_fastcgi.c <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script fcgi </IfModule> to the global apache config file and added <Directory "/Volumes/Data/WebContent/htdocs/path/to/symlink"> Options +ExecCGI RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] R...
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 Mar 30
11
Rails 1.1 and Ruby 1.8.3
I''ve seen that Rails 1.1 is not reliable with Ruby 1.8.2 so you should upgrade to 1.8.4 I''m running ruby 1.8.3. What''s the story with it? Do I need to upgrade before I try Rails 1.1? Thanks Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
2006 Aug 09
0
Deployment: Best way to switch between test and prod envs.
...back and forth with more ease. Obviously, I can do a symlink thing with the mod_fastcgi.conf file, but I was thinking, can I access OS level environment variables directly from Apache and use their values in an Apache config file? Like this: <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /var/www/html/eSimplyTest/public/dispatch.fcgi \ -initial-env RAILS_ENV=${CUSTOM_ENV_VAR} \ -processes 15 -idle-timeout 300 </IfModule> I''d like to be able to set CUSTOM_ENV_VAR in the shell and have it be seen by Apache. Anybody know how to do that...
2006 Jun 30
0
Production Mode in my Rails Application not responding
...ing 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/dispatch.fcgi \ -initial-env RAILS_ENV=production \ -processes 2 \ -idle-timeout 60 I scratched my head until I was bonkers. Then I read where the database.yml file was a problem. I checked out my databas...
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 Rails app: #! /usr/local/bin/ruby require File.di...
2006 Feb 11
1
Fastcgi and mysql woes
...--socket=/opt/local/var/run/mysql5/mysqld.sock So I''m guessing its an Apache or Fastcgi problem. Here is my config inside apache: LoadModule fastcgi_module /opt/local/apache2/modules/mod_fastcgi.so <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi FastCgiIpcDir /tmp/fcgi_ipc/ FastCgiServer /tmp/railstest/public/dispatch.fcgi -initial-env RAILS_ENV=development -processes 2 -idle-timeout 60 </IfModule> Any ideas? scott ---------------------------------------------------------------------------------------------------- What''s an Intel chip doing in a...
2006 Feb 12
0
FastCGI config problem on RHEL 4.0 w/ Apache 2.0.52
...or fastcgi from the wiki and googled for a day and am getting nowhere. Anybody have a hint? :) error_log: [Sun Feb 12 08:51:01 2006] [crit] (13)Permission denied: FastCGI: can''t create (dynamic) server "/var/www/rails/mobmemo_prod/public/dispatch.fcgi": bind() failed [/tmp/fcgi_ipc/dynamic/30e79f0d49f25465be5c75e9cb091d52] [Sun Feb 12 08:51:06 2006] [alert] [client 10.3.0.38] (2)No such file or directory: FastCGI: failed to connect to (dynamic) server "/var/www/rails/mobmemo_prod/public/dispatch.fcgi": something is seriously wrong, any chance the socket/named_pip...