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
11
votes
1 answer

Differences between mod_fastcgi and mod_proxy_fcgi

I have searched for an answer but cannot seem to find anything substantial related to this question. Should one use mod_proxy_fcgi or mod_fastcgi with php-fpm on Apache2.4? Are there any differences in terms of security and performance? Any…
Reuben Debattista
  • 113
  • 1
  • 2
  • 5
11
votes
2 answers

nginx, alias, php-fpm = File not Found

I'm trying to set up nginx with DAViCal. However, I'm getting a "File not Found" with a "FastCGI sent in stderr: "Primary script unknown" in the log. Looks like something is wrong with my aliasing but I sure can't figure it out. My virtual…
Martin
  • 411
  • 1
  • 3
  • 8
11
votes
2 answers

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with cgi-fcgi -bind, the result comes back as expected…
David Souther
  • 227
  • 1
  • 2
  • 7
11
votes
3 answers

nginx fastcgi "Primary script unknown" when configuring userdir

I hate configuring nginx. It's so complicated. How do I get PHP to work in my user dirs? Here's the relevant part of my nginx.conf: location ~ ^/~(.+?)(/.*)?$ { autoindex on; autoindex_exact_size off; alias…
nnyby
  • 298
  • 3
  • 5
  • 16
10
votes
1 answer

How do I increase FastCGI read timeout to prevent 504 error on nginx?

I am running a file with considerable amount of coding. It takes approximately 55 seconds to process 500 users, but now I have to process 1000 users. The default timeout is 60 seconds, so I have to increase the FastCGI read timeout. I found this…
rajankaneria
  • 103
  • 1
  • 1
  • 4
10
votes
4 answers

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…
glenc
  • 273
  • 1
  • 8
10
votes
3 answers

how to start/restart fastcgi process?

I'm running nginx, and fastcgi to run a wordpress blog. After a while of running, I am getting 502 bad gateway errors. If i reboot the server things work fine. Other sites that are running on nginx are not effected (they are not php based), so I…
Blankman
  • 2,891
  • 10
  • 39
  • 68
9
votes
1 answer

FastCGI cache "MISS" due to conflicting headers from PHP application?

I've setup FastCGI cache like this: location ~ \.php(/.*)?$ { fastcgi_cache RWI; fastcgi_cache_valid 200 60m; set $nocache 0; if ($request_method = POST) { set $nocache 1; } if ($http_cookie ~…
9
votes
4 answers

How do I setup Apache with FastCGI and Ruby?

I've been reading alot of forum posts, tutorials, etc., about setting up apache under linux with fastcgi. I'm trying to run fcgi for some of my ruby development (not rails), but I figure it should apply to any language. Please note that I already…
sdellysse
  • 203
  • 2
  • 8
8
votes
4 answers

munin + nginx: no dynazoom into graphs

I cannot get the Munin dynamic zoom to work. I am rather certain that the problem has something to do with the Nginx configuration. Any attempt to generate a zoomed graph triggers the following error entry in the nginx log: 2015/02/22 13:26:01…
aag
  • 407
  • 1
  • 6
  • 19
8
votes
2 answers

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, set fastcgi_param SCRIPT_FILENAME and it will work (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a 404 page, because the root of the problem is…
Daniel W.
  • 1,609
  • 4
  • 26
  • 48
8
votes
1 answer

Nginx - Enable PHP for all hosts

I am currently testing out nginx and have set up some virtual hosts by putting configurations for each virtual host in its own file in a folder called sites-enabled. I then ask nginx to load all those config files using: include …
F21
  • 706
  • 3
  • 11
  • 20
8
votes
3 answers

SCGI or FastCGI - What do you prefer?

I was doing some research (googling) on the subject, but all I could find were 2-3 year old posts. I'm interested in today's situation. Which do you prefer and why?
KRTac
  • 83
  • 1
  • 4
8
votes
6 answers

PHP-CGI Started Serving Blank Pages

My PHP-CGI started serving blank pages for no apparent reason until I restarted the process. I want to know why. Unfortunately the "production" configuration file of PHP has no error_log by default. My Nginx error log also displayed no errors…
Unknown
  • 1,685
  • 6
  • 20
  • 27
8
votes
3 answers

What is wrong in my php-fpm configuration?

I have a 64-bit server but only 256MB of RAM. So, I moved to nginx server with fast-cgi to connect to PHP. I have PHP 5.3.6 running. The issue is that after every two or three days when I try to access any PHP page then I get server internal error.…
AppleGrew
  • 417
  • 2
  • 6
  • 14
1
2
3
48 49