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
8
votes
4 answers

What Apache/PHP configurations do you know and how good are they?

I wanted to ask you about PHP/Apache configuration methods you know, their pros and cons. I will start myself: ---------------- PHP as Apache module---------------- Pros: good speed since you don't need to start exe every time especially in…
Vladislav Rastrusny
  • 2,671
  • 12
  • 42
  • 56
7
votes
7 answers

Performance of IIS+ASP.NET vs (NGINX + FastCGI + Mono or XSP)?

How much requests each can handle? How many RAM needed? As I remember FastCGI are opened initialized processes, each can handle one request. What about multithreading?
Igor Golodnitsky
  • 287
  • 1
  • 2
  • 13
7
votes
1 answer

Nginx fastcgi_cache_valid vs fastcgi_cache_path's inactive

If I've config fastcgi_cache_path /opt/nginx levels=1:2 keys_zone=TEST:100m inactive=40m; .. fastcgi_ignore_headers Cache-Control Expires Set-Cookie; fastcgi_cache_valid 30m; How long will my cache stored in the path above?
Ryan
  • 5,831
  • 24
  • 72
  • 91
7
votes
1 answer

Create FastCGI application with PowerShell

I'm trying to automate the provisioning of a Windows 2012 server, but I'm having trouble getting PHP to work. This is the command I'm using to add a handler mapping to IIS: New-WebHandler -Name "PHP-FastCGI" -Path "*.php" -Verb "*" -Modules…
7
votes
1 answer

How to debug CGI over fcgiwrap/nginx

I serve executable scripts (mainly in C) through fcgiwrap connected with nginx. Since the scripts are complied, I can get the coding errors during compilation, but sometimes I receive CGI errors simply stating An error occurred while reading CGI…
Googlebot
  • 1,047
  • 2
  • 15
  • 30
7
votes
3 answers

how to add an open_basedir path in nginx vhost

In php.ini I've set open_basedir = /home/user/web/ Now I would like to run phppgadmin on a subdomain which needs to include files from /usr/share/phppgadmin. So I added the following line to the nginx-config for this host: fastcgi_param PHP_VALUE…
32bitfloat
  • 253
  • 2
  • 3
  • 10
7
votes
1 answer

" scriptProcessor could not be found in application configuration" when accessing PHP script in subfolder

Possible Duplicate: “ scriptProcessor could not be found in application configuration” when accessing PHP script in subfolder I have a configuration problem with php on IIS 7.5. It is a practically fresh install made with the…
Priednis
  • 285
  • 1
  • 3
  • 9
7
votes
2 answers

Error When Installing PHP5 on IIS6

I am trying to install PHP on my Windows Server 2003 machine that is using IIS6. I followed this guide for installing it, including using the binaries of fastCGI. I think I did everything correctly, however, when I went to create my phpinfo(); page…
numone
  • 205
  • 1
  • 3
  • 6
7
votes
2 answers

Nginx + PHP-FPM = "Random" 502 Bad Gateway

I am running Nginx and proxying php requests via FastCGI to PHP-FPM for processing. I will randomly receive 502 Bad Gateway error pages - I can reproduce this issue by clicking around my PHP websites very rapidly/refreshing a page for a minute or…
user39547
6
votes
1 answer

FastCGI: Unable to open primary script on NGinx and PHP-FPM

I am apparently not the only one with this problem, but after trying every suggested solution for couple I reached I point where I don't know what to do. I am running Ubuntu 16.04, NGinx and PHP-FPM. The nginx.conf is the default one, I only set a…
n.r.
  • 289
  • 1
  • 2
  • 10
6
votes
0 answers

How do I allow users to override X-Frame-Options when using Apache + PHP-FPM?

I have an Ubuntu 14.04 server running Apache + PHP-FPM + FastCGI, serving user home pages. For security, I have enabled in Apache's configuration: Header set X-Content-Type-Options: "nosniff" Header set X-Frame-Options: "sameorigin" Header set…
muru
  • 589
  • 8
  • 26
6
votes
2 answers

What is the difference between proxy_cache_ and fastcgi_cache?

I was searching for a simple Nginx microcache solution and I end up seeing two ways to have microcache. Some tutorials use proxy_cache, while others fastcgi_cache. What are the differences, pros and cons between these two solutions? Thanks!
Daniel
  • 193
  • 1
  • 6
6
votes
2 answers

FastCGI: comm with server ... aborted: idle timeout (30 sec)

I have multiple virtual webs running Wordpress but this one started to throw errors and I am unable to find the problem. Apache says: [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: comm with server…
Bruce
  • 407
  • 2
  • 6
  • 13
6
votes
1 answer

nginx + fcgiwrap: how come order of fastcgi_param matters?

I'm running Debian 6.0.3 (squeeze), nginx-0.7.67, fcgiwrap-1.0-1+squeeze1. Here is the test script: #!/usr/bin/perl use 5.010; use warnings; use strict; use Data::Dumper; print "Content-Type: text/html\n\n"; say Dumper {map {$_ => $ENV{$_}}…
x-yuri
  • 2,141
  • 2
  • 24
  • 29
6
votes
1 answer

Unable to set php_value in .htaccess file

I am trying to set up NewRelic on my Apache2/PHP server, and have it report different applications per vhost. To do this, the php value newrelic.appname must be changed. It is defined by default in /etc/php.d/newrelic.ini however to do per vhost…
doublesharp
  • 217
  • 1
  • 3
  • 12
1 2
3
48 49