fastcgi

How do I configure Ruby alone with Apache + FastCGI?

Hi, There are many how-to's for people who want to use Rails with Apache and fastcgi. But I need to use Ruby alone without any frameworks (for educational purpose). So does anyone know how to configure Apache with FastCGI and to write a simple "Hello world"-style dispatcher on Ruby? ...

C++: What script can I use to test my Apache and FastCGI set up?

I asked at serverfault: How to set up apache with fastcgi and a simple test script? I have been having real difficulties for a couple of weeks trying to understand how to set up my machine so that I can test my C++ application with Apache/FastCGI. I tried with the simplest "Hello World" type of script. The only reply I have had so far...

Why would one use accelerators with fastcgi for PHP?

I'm a newbie to web technology, and still on a learning curve. Heard that, fastcgi would keep the compiled(interpreted) php code in memory, so why would one has to use op-code caching (apc or eaccelerators) for PHP? But I never heard of any such accelerators for Python. I'd expect as python and php are both interpreted language, it make...

lighttpd fastcgi optimization

I have a web service using lighttpd and fastCGI (using TCP) where lighttpd causes a processor bottleneck. How can I optimize the performance of lighttpd and fastCGI? Best Regards ...

Lighttpd + fastcgi + django: truncated response sent to client due to unexpected EOF

I'm trying to get my Django based webapp into a working deployment configuration, and after spending a bunch of time trying to get it working under lighttpd / fastcgi, can't get past this problem. When a client logs in for the first time, they receive a large data dump from the server, which is broken into several ~1MB size chunks that ...

Can lighttpd be used with dynamic FastCGI scripts?

Although I'm aware that lighttpd can be used with Static and External FastCGI implementations, can it be used with dynamic implementations? Is it possible to upload a .fcgi file (assuming the file is a proper fastcgi) to a directory point your browser to its URL? Apache does this, but I'm exploring other web servers. From what I can tel...

How do I stop Apache from inserting unwanted line breaks in its error log?

My Perl/FastCGI app makes extensive use of "print STDERR" to log all sorts of debugging info to the Apache error log file. I insert frequent line breaks myself, but Apache (or perhaps FastCGI?) still feels the need to insert extra line breaks, usually right in the middle of my nicely formatted output. How can I stop this from happening...

Using aptitude to install extra php modules (after php has already been installed)?

Hello. I recently setup an Ubuntu Server 10.04 LTS server for a client which uses a PHP based forum. It's all gone well, but now it seems I need to install a new php module to enable spell checking in the forum (the forum is Simple Machines Forum) So when I first setup the server, I installed like this: sudo aptitude -y install php5-c...

nginx + php-fpm ignores no-cache headers

I'm using the following header on a php page. // Prevent page caching. header('Expires: Tue, 20 Oct 1981 05:00:00 GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); I'm also using a rand=999999999 (with a real random number...

how to config apache2 and fastCGI to run my c++ application

Hi. I have written a program with c++ and compiled it with gcc ( like the sample in the fastcgi.com) but i dont know how to run it on localhost. everywhere i searched , i found the php configuration for mod_fcgi which wont work for c++. does any body configured apache and mod_fcgi to run a c++ web application ??? ...

How do I configure nginx and CodeIgniter?

I'm running nginx on my home computer for development. I also have it linked to DynDNS so I can show progress to my co-worker a bit easier. I can't seem to get nginx to rewrite to CodeIgniter properly. I have CodeIgniters uri_protocol set to REQUEST_URI. All pages that should be showing up wtih content show up completely blank. If I ph...

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

I'm just wondering what the differences and advantages are for the different CGI's out there. Which one would be best for python scripts, and how would I tell the script what to use? Thanks! ...

Nginx, FastCGI and Django connection refused error

I've setup nginx, fastcgi and django. The run my django project through fastcgi using: python26 manage.py runfcgi host=127.0.0.1 port=8080 --settings=settings When I visit http://127.0.0.1 I can see the normal django 404 since I haven't setup everything on my django project aside from the admin. So I tried visinting http://127.0.0.1/a...

How can I remove index.php from the address while redirect requests to index.php via fastcgi?

I have a basic Magento (PHP app, using index.php as the controller) setup on an Ubuntu server. I configured NGINX to use PHP-CGI to serve all PHP pages. While the site is working as expected, all the URLs are of the form: http://domain.com/index.php/apparel/shoes.html Is there a way to use the nginx rewrite setting so that I can have the...

Load-Balancing between Web-Server and FastCGI-Interface

Instead of installing a web-server on every machine I'm thinking about load-balancing at the fastcgi-level. Fast-CGI has the ability to go over a tcp-ip-connection to another server. This means (for e.g.) the lighttp is running on one machine and the php-fastcgi is running on another machine. Is there a http-server with a built-in fastcg...

nginx + fastCGI + Django - getting data corruption in the responses sent to the client

I am running Django behind nginx using FastCGI. I have discovered that in some of the responses sent to the client, random data corruption is occurring in the middle of the responses (might be a couple hundred bytes or so in the middle). At this point I have narrowed it down to either being a bug in either nginx's FastCGI handler or Dj...

NginX Friendly PHP Framework

Hey Guys, I'm looking for a PHP framework that, if I'm lucky, just works in nginx under FastCGI, otherwise, one that doesn't take too much tweaking. ...

nginx and Perl: FastCGI vs reverse proxy (PSGI/Starman)

A very popular choice for running Perl web applications these days seems to be behind a nginx webserver proxying requests to either a FastCGI daemon or a PSGI enabled webserver (e.g. Starman). There have been lots of question as to why one would do this in general (e.g. http://stackoverflow.com/questions/2939393/why-use-nginx-with-catal...

403 Forbidden with php in worker mode. Only to php files from browser

Hello First off let me start by saying that yes I have searched for this in google and in stackoverflow specifically, I have found many answers and tried them all. At this point I believe my only resource is posting the question myself, even if the scenario sounds repeated please be so kind as to try to help. The situation is quite b...

How to enable SSL with a IIS 6 + FastCGI + Django setup?

Hi folks, I have successfully setup FastCGI/Django on a IIS 6 Server. What I don't know how to do, is to enable SSL connections. Any tips or ideas to get me started? I'm not an IIS expert, so this is quite confusing for me. :) ...