I have the following config in my lighttpd.conf:
$HTTP["host"] == "trac.domain.tld" {
server.document-root = "/usr/home/daniels/trac/htdocs/"
fastcgi.server = ( "/trac" =>
( "trac" =>
( "socket" => "/tmp/trac-fastcgi.sock",
"bin-pa...
Let's say I've got some Perl code that increments a column in a specific row of a database each time it's hit, and I'm expecting it to be hit pretty frequently, so I'd like to optimize it with FCGI. Right now, I basically wrapped most of the code in something like this:
while (FCGI::accept() >= 0) {
[code which currently creates a db ...
I'm running a django instance behind nginx connected using fcgi (by using the manage.py runfcgi command). Since the code is loaded into memory I can't reload new code without killing and restarting the django fcgi processes, thus interrupting the live website. The restarting itself is very fast. But by killing the fcgi processes first so...
We've got an apache module in place for authentication. If the user is able to authenticate, the REMOTE_USER environment variable is set to their username, where it's available to any CGI they access.
I'd like to add a feature/module so that we can get additional information about the user from an LDAP data source and make it available...
I am facing the dreaded "Unhandled Exception" raised by Flup. The sad part is its raised at the webserver (lighttpd+flup) level and not at the application level(Django). So no 500 email is raised about where the problem is.
Our entire team struggled hard to cleanup the codebase, incase of any ambigous imports and someones of that sort,...
I would like to run several virtual hosts via nginx, each serving a different django app via fcgi. Is this possible? If so, does anyone have good resources on where/how to start? The nginx docs seem to be mostly examples, but none of the particular config I'm attempting...
...
I'm using apache 2.2 (part of the xampp distribution) and I was trying to load my scripts written in lua using fastcgi, so I added to httpd.conf this:
LoadModule mod_fcgi modules/mod_fcgid.so
and now when I try to start apache I get the following error:
syntax error on line 530 of /xampp/apache/conf/httpd.conf: Can't locate API module...
I'm running Django on a server with a dozen or so virtual hosts set up. The first Django site I've put together works great, but I'm about to set up a second. Do I need to run a second fastcgi process?
For the first site I'm running fcgi this way:
/home/django/app1/manage.py runfcgi protocol=fcgi host=127.0.0.1 port=8081
The nginx ...
I've got lighttp configured to start and serve django via fastcgi on ubuntu. When I have only a single site enabled (via ubuntu's apache-like conf-available, conf-enabled mechanism), everything runs beautifully. When I enable a second site, my url rewrites seem to stop working correctly, though the fcgi processes are started and serving ...
The impression I get both from Microsoft's discussions about FastCGI and PHP, and also from Coast R&D's site, is that php-cgi.exe is able to detect whether it is being used in either a CGI or FastCGI context. If so, how does it do it, as I'd like to have similar functionality in my own product.
...
Hello.
I have a problem with Lighttpd, PHP and CGI.
I use OpenSUSE.10.
I have builded lighttpd (version 1.4.23) and php (version 5.3.0).
This is lighttpd build command lines:
./configure --prefix=/home/gosh/Desktop/web_server/lighttpd_native_installed --without-zlib --enable-ssl --enable-openssl --with-openssl=/home/gosh/Desktop/we...
Is this log file familiar to someone of UBUNTU users?
Lighttpd log file:
> 2009-08-30 21:37:45: (log.c.75) server started
> 2009-08-30 21:37:45: (mod_fastcgi.c.1029) the fastcgi-backend php5-cgi *failed* to start:
> 2009-08-30 21:37:45: (mod_fastcgi.c.1033) *child exited with status 9 php5-cgi*
> 2009-08-30 21:37:45: (mod_fastcgi.c....
I am using Lighttpd + FastCGI + Django on a dev machine. I start FastCGI server via manage.py's command line option.
Problem is that I do make changes to sources quite often and I need to get FastCGI to pick up those changes automatically, just as "./manage.py runserver" does.
Is there a command-line option for that, perhaps, or any ot...
I developed my django app on my local machine, however when I uploaded it to my server (dreamhost, runnig fcgi) I got some problems.
How can I debug django on my dreamhost server that's running fcgi?
...
Hello,
I have an Apache server with mod_fcgi and I made a project with Juno, which I'd like to run on it. Juno says it supports flup for fcgi but I can't find any info on that, has anyone used it/set it up? Can it be done with server-spawned processes, like with Django?
...
I have a problem similar to http://stackoverflow.com/questions/1168384/how-to-troubleshoot-php-processes, but with a twist. We have a couple of managed servers that recently migrated to FastCGI. Since then we've been having problems.
We have a content management system at a central place that we manage all our sites with. All the sites ...
Solved: Unfortunately I wasn't able to solve the problem but I started over and followed the Django + FastCGI guide on the "A Small Orange" wiki and everything is working as expected.
I am trying to setup Django with FCGI on Apache. The web hosting plan that I am using is A Small Orange's shared hosting plan.
Django is installed, worki...
From the web I've gleaned that WSGI is a CGI for python web development/frameworks. FCGI seems to be a more generalised gateway for a variety of languages. Don't know the performance difference between the two in reference to the languages python and C/++.
...
I've found only two FastCGI libraries for C++. There's the "official" one, and fastcgi++. How is either one better than the other? Do any others exist?
...
I'm building a site for a client using django. It's been hosted on shared hosting and mod_wsgi can't be used. In the old year, I got it working using fcgi, but when I got back, it was broken.
I have replaced the fcgi script with a simple hello world script:
#!/usr/bin/python
def myapp(environ, start_response):
start_response('200 O...