Questions tagged [fastcgi]

FastCGI is an open interface web servers can use to execute applications in a secure and isolated manner.

FastCGI is an open interface web servers can use to run applications as separate isolated processes. It is an enhancement of the original NCSA CGI interface specification, with a range of improvements. The primary improvement over the standard CGI approach offered by FastCGI is performance, hence the name.

FastCGI is supported by a broad range of Web Servers (such as Apache, nginx, lighttpd).

730 questions
1
vote
1 answer

Apache and fastcgi - How to secure an Apache server with fastcgi enabled?

I am running a headless server on Ubuntu 10.x. I am running Apache 2.2. I am writing a fastcgi application for deployment on the server. I remember reading a while back (I could be wrong) that running CGI (and by implication fastcgi) on a server,…
skyeagle
1
vote
1 answer

php as fast_cgi shutdowns without log

I'm running php5 behind a nginx proxy, as Fast_CGI, after some usage (Always while being used, not while idle. The Fast_CGI server just shuts down (no longer displays in a 'ps -A'. In php.ini Log_Errors is set to On and Error_Log is set to…
Arelius
  • 357
  • 2
  • 5
1
vote
0 answers

Build apache with fastcgi (as static linked module)

I've downloaded apache source and FastCGI source. Now, I wish to add FastCGI as a static module to apache (NOT DSO). I've read the installation guide @ svn.apache.org, but still couldn't make it work. I can't find the fastcgi module after installing…
Dor
  • 165
  • 1
  • 3
  • 12
1
vote
2 answers

Apache ignoring extension and executing other files through fastcgi

I've got a problem with configuring apache to run only files with .php extension through FastCGI. Sample VirtualHost configuration : ServerName host1.example.com DocumentRoot /home/www/host1.example.com/WWW/ …
1
vote
1 answer

Unrestricted access to a single file + FastCGI with basic_auth for whole domain in nginx

What's the easiest way to restrict access to all files except one, where whole domain is served via FastCGI? The problem occurring when below conf is used, is that I cannot access /dir (I'm asked for password in some kind of loop, correct…
piobyz
  • 123
  • 6
1
vote
2 answers

Nginx Fastcgi performance issues

I am running several fastcgi servers behind Nginx. I run 3 Nginx workers and 6 fastcgi servers as upstream backends. When I run load tests of 1 req per sec, I can clearly see that on avarage a reply is 0.1sec, but from time to time there are 3.1 sec…
Barry
  • 31
  • 4
1
vote
2 answers

Single fastcgi/php-cgi server for multiple virtualhosts?

I'm currently hosting sites for clients using the following setup: Apache 2.2.16 mod_fastcgi 2.4.7 php 5.3.3 Apache uses the worker MPM and serves PHP through a dynamic FastCGI config: FastCgiSuexec /usr/sbin/suexec FastCgiConfig -singleThreshold…
hlidotbe
  • 215
  • 3
  • 6
1
vote
1 answer

How to export a variable to a fastCGI application in Apache

I am using Apache on Linux(RHEL5) and Apache version is 2.2.4. I am running a fastCGI application using Apache and I want to export a variable to this application. I have already tried SetEnv directive in the httpd.conf file but it doesn't seem to…
ghayalcoder
  • 131
  • 2
1
vote
1 answer

How to convert php5 cgi to module?

I installed PHP5 on my debian lenny system as cgi. Now I found that flush() in php is only working for php installed as module. Anyone know how to (re)install php5 as module? (apache2) Thanks :)
MilMike
  • 206
  • 1
  • 5
1
vote
1 answer

Can not restart lighttpd? Receiving strange errors with regards to fcgi?

I received the following error when I tried to restart lighttpd. I'm running a rails application, and when I deploy a new version of the site I usually do /etc/init.d/lighttpd restart This used to always work, until today when I got the following…
Janak
  • 264
  • 3
  • 8
1
vote
1 answer

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

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…
littlejim84
  • 267
  • 1
  • 3
  • 9
1
vote
1 answer

Memory Issues, CGI, User Switching

Okay so the situation is as follows: I have a small cloud VPS that has 256mb of RAM, one of my 'heavier' websites was causing apache to use more and go into deep swap usage. I have now tweaked down apache and it stays stable at around 200mb's of ram…
Not Available
  • 226
  • 1
  • 16
1
vote
1 answer

PHP _SERVER[“USER”] and _SERVER[“HOME”] appear from nowhere

I run PHP via FastCGI with nginx web server on Gentoo. PHP is started by spawn-fcgi script from lighttpd, which is started run as a daemon using start-stop-daemon. Among other things, startup scripts cleans-up environment, so that only PATH,…
JonsJ
1
vote
2 answers

nginx + php fcgi + high load = hang

I've got PHP working in fast-cgi configuration with nginx (0.7.65-2~bpo50+1), PHP 5.2.9, but I find that our busy website hangs when there is high load. The problem is immediately relieved by killing and restarting the php processes. I have 8 php…
chrism2671
  • 2,579
  • 9
  • 34
  • 45
1
vote
0 answers

Cannot set Cherokee FastCGI to Mono

I used this as information source: /usr/bin/fastcgi-mono-server2 --socket=tcp --address=127.0.0.1 --port=39893 --applications=/:/var/www Put extension to *.aspx and made one index.aspx file in /var/www But when pointed it, see only text of it.
Igor Golodnitsky
  • 287
  • 1
  • 2
  • 13