Displaying 20 results from an estimated 41 matches for "fastcgiipcdir".
2006 Mar 13
9
apache 1 fastcgi config correct???
...owed 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 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
</...
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 Jul 28
7
Uploading 2+ files simultaneously
...ouble uploading 2+ 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
...is true
even if 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.)...
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
...ex.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 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>
Rewri...
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 Jun 30
1
running in production mode
...y
app in production 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
Docu...
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...
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'...
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 /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/an...
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 Mar 15
5
Apache (both 1.3 & 2) not calling dispatch.fcgi on Debian
...with 1.3, giving the
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....
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
...#39;'ve tried various 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>
Not...
2006 Feb 16
4
Lost while trying to deploy rails app on apache
...hy things don''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 [...
2006 Mar 04
6
Can''t get Fast CGI working.
Well, after many hours of tinkering and internet browsing I just can''t
get Fast CGI to work with Rails and Apache 1.3 on FreeBSD 5.4 Normal CGI
works fine, but as soon as I enable FastCGI in .htaccess I get the
message:
Application error
Rails application failed to start properly
Here''s what I''ve done so far:
- I''ve installed all the necessary software for
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 Aug 09
0
Deployment: Best way to switch between test and prod envs.
...at so I can
switch 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...
2006 Jul 14
0
avoiding the application startup time
...requests to mongrel but I
have a few questions about this:
- would this avoid the start up issue?
- how would users be able to reload their configs?
- are their any issues with this setup?
Out of interest this is our current fastcgi configuration in our httpd.conf
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi/
AddHandler fastcgi-script .fcgi
FastCgiWrapper On
FastCgiConfig -autoUpdate -singleThreshold 100 -killInterval 300
-idle-timeout 240 -initial-env RAILS_ENV=production
</IfModule>
Thanks
2006 Jun 30
0
Production Mode in my Rails Application not responding
...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/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...