fcgi

Hosting Django on a shared FastCGI host.

Hi, I am trying to set up django shared hosting at iPage.com using FastCGI but I keep running into issue. The CGI script lods in the browser as text instead of executing. Below is the .htaccess and the fcgi script .htacess AddHandler fastcgi-script .fcgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ cgi-bin/my...

What's the best way to find out if a given process has been started started as fcgi?

I have an libfcgi program. It would be nice if it could detect if it has been started under FCGI (in which case it could go to the FCGI_Accept runloop) or if it's been started at the command line (in which case it could do something else). Is there an environment variable I can check for? I know I could set these in the webserver, but ...

What is the significance of the dispatch.fcgi file in Rails

Hi, There is a file under public folder in Rails environment called dispatch.fcgi. What is the significance of this particular file? I opened that file and it has this # # Default log path, 50 requests between GC. # RailsFCGIHandler.process! nil, 50 # # # Custom log path, normal GC behavior. # RailsFCGIHandler.process! '/var/l...

Sudden problems with using dispatch.fcgi with an old rails application

I'm maintaining an old rails application that was working just fine until recently. I believe it uses fcgi and lighttpd on Debian for deployment. Normally when release a new version, I restart lighttpd and everything is fine. Today for the first time I got the following error message when trying to restart I don't know what any of this...

IIS + PHP + MySQL: A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306)

I'm running Windows, having installed IIS 7.5, PHP 5.3 (FastCGI). Trying to connect to MySQL and getting an error "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.". Started to develop a project with XA...

If I have an fcgi server running and visit it with a browser, what should happen?

I have the following setup - and don't get any response when I visit the server in a browser. Should I expect some? Here's the test setup, using python & flup. #test.py def myapp(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) return ['abc\n'] import os os.environ['FCGI_WEB_SERVER_ADDRS']="12...