Questions tagged [fastcgi]

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

Filter by
Sorted by
Tagged with
104 votes
1 answer
128k views

Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM

There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not googleable). Why might I choose one over ...
Gacek's user avatar
  • 1,201
70 votes
3 answers
74k views

Is the PHP option 'cgi.fix_pathinfo' really dangerous with Nginx + PHP-FPM?

There has been a lot of talking about a security issue relative to the cgi.fix_pathinfo PHP option used with Nginx (usually PHP-FPM, fast CGI). As a result, the default nginx configuration file used ...
Totor's user avatar
  • 2,966
36 votes
9 answers
157k views

Nginx + php-fpm "504 Gateway Time-out" error with almost zero load (on a test-server)

After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres ...
rahul286's user avatar
  • 1,657
33 votes
3 answers
13k views

PHP: What are the advantages of FastCGI over mod_php?

It was recently suggested to me that I use FastCGI with PHP. Now I went to the FastCGI page and read it but I don't really understand what the advantages are.
cletus's user avatar
  • 10k
30 votes
3 answers
9k views

Apache vs Nginx

I have been investigating the differences between Apache and Nginx recently and am confused about which I should choose. I have done some searching but there is no definitive comparison between the ...
Sammaye's user avatar
  • 719
24 votes
4 answers
67k views

nginx + PHP-FPM = "permission denied" error 13 in nginx log; configuration mistake?

I've got nginx 0.7x + PHP-FPM running under PHP 5.2.10 on one RHEL5 server, but trying to duplicate that setup under the bundled-in PHP-FPM in PHP 5.3.3 on a second server, I'm having some trouble ...
Peter Kirn's user avatar
23 votes
3 answers
70k views

Nginx $document_root$fastcgi_script_name vs $request_filename

I can't notice any difference if in my config file I set fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; Or: fastcgi_param SCRIPT_FILENAME $request_filename; What do ...
MultiformeIngegno's user avatar
21 votes
1 answer
3k views

Recommended Nginx + WSGI Configurations

Please explain pros/cons when using the different Nginx WSGI interfaces? Please explain in detail what differentiates each configuration? Which configuration should scale the best? If relevant, what ...
cmcginty's user avatar
  • 1,303
19 votes
4 answers
40k views

How do you conditionally include files in Nginx vhost?

In the lines below, I might have a site-specific configuration file that contains additional fastcgi_params unique to that site. If this file exists I want to load it. server { listen 80 ...
Xeoncross's user avatar
  • 4,489
18 votes
3 answers
14k views

Should I impersonate PHP via FastCGI?

I am installing the latest version of PHP onto IIS 7.5 via FastCGI, and all of the instructions say that FastCGI should impersonate the calling client by setting fastcgi.impersonate = 1 If my ...
WimpyProgrammer's user avatar
16 votes
2 answers
22k views

Multiple php versions simultaneously on Ubuntu

I want to be able to run multiple php versions on my development box running Ubuntu 12.04. What I want to accomplish is that when I use localhost as a domain a default is used (let's say php 5.3.17). ...
SeeDoubleYou's user avatar
15 votes
2 answers
29k views

How to pass custom parameters to PHP from Nginx?

I'm using Nginx 1.2.4 in combination with PHP-FPM 5.4.8 with a fastcgi pass and trying to pass custom parameters to PHP. Here are the options I have found so far: using the env directive to set an ...
Max's user avatar
  • 3,553
14 votes
5 answers
14k views

Nginx/PHP-FPM long log lines get truncated

I am unsure is that is a Nginx or PHP-FPM setting, but long log lines are getting truncated. Is there a setting to increase the max log line length?
Jason Christa's user avatar
13 votes
3 answers
62k views

nginx projects in subfolders

I'm getting frustrated with my nginx configuration and so I'm asking for help in writing my config file to serve multiple projects from sub-directories in the same root. This isn't virtual hosting as ...
Timothy's user avatar
  • 233
13 votes
2 answers
59k views

How to enable error log in lighttpd properly?

I have a Centos 5 system with Lighttpd and fastcgi enabled. It does log access but does not log errors. I have Internal Server Error 500 and no info in log and when I try to open not -existing file ...
Tom Smykowski's user avatar
11 votes
2 answers
35k views

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 ...
Martin's user avatar
  • 411
11 votes
3 answers
53k views

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; ...
nnyby's user avatar
  • 298
11 votes
2 answers
18k views

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-...
David Souther's user avatar
11 votes
1 answer
20k views

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 ...
Reuben Debattista's user avatar
10 votes
3 answers
58k views

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 ...
Blankman's user avatar
  • 2,891
10 votes
1 answer
54k views

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 ...
rajankaneria's user avatar
10 votes
4 answers
2k views

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 ...
glenc's user avatar
  • 273
9 votes
1 answer
10k views

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; ...
Joran Den Houting's user avatar
9 votes
4 answers
6k views

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 ...
sdellysse's user avatar
  • 203
8 votes
3 answers
37k views

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 ...
AppleGrew's user avatar
  • 417
8 votes
2 answers
30k views

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 ...
Daniel W.'s user avatar
  • 1,679
8 votes
3 answers
7k views

SCGI or FastCGI - What do you prefer? [closed]

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's user avatar
  • 83
8 votes
1 answer
4k views

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 ...
F21's user avatar
  • 716
8 votes
4 answers
3k views

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 ...
Vladislav Rastrusny's user avatar
8 votes
6 answers
4k views

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. ...
Unknown's user avatar
  • 1,705
8 votes
4 answers
7k views

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 ...
aag's user avatar
  • 407
7 votes
7 answers
33k views

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

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's user avatar
7 votes
3 answers
25k views

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 ...
32bitfloat's user avatar
7 votes
2 answers
4k views

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, ...
numone's user avatar
  • 205
7 votes
1 answer
42k views

"<handler> scriptProcessor could not be found in <fastCGI> application configuration" when accessing PHP script in subfolder [duplicate]

Possible Duplicate: “<handler> scriptProcessor could not be found in <fastCGI> application configuration” when accessing PHP script in subfolder I have a configuration ...
Priednis's user avatar
  • 285
7 votes
1 answer
4k views

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 ...
Ryan's user avatar
  • 5,931
7 votes
1 answer
5k views

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-...
Willem-Aart's user avatar
7 votes
1 answer
3k views

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 ...
Googlebot's user avatar
  • 1,067
7 votes
2 answers
9k views

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 ...
user avatar
6 votes
9 answers
22k views

Why does any .php page give me a 404 error on Server 2008 with IIS 7.0? [closed]

I am using FastCGI to setup PHP. I've followed the instructions on the iis.net website. I added the handler mapping, edited the php.ini file as specified. None of it works, I just get a 404.0 error ...
scottm's user avatar
  • 359
6 votes
2 answers
23k views

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: ...
Bruce's user avatar
  • 407
6 votes
2 answers
5k views

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 ...
Daniel's user avatar
  • 193
6 votes
3 answers
19k views

FastCGI Error Access to the script denied

I have a Debian Squeeze server running nginx + php-fpm + fastcgi. I have a typo3 installation on this server which runs well. No I installed OTRS and I get an error that I do not understand: 2012/...
DarkLeafyGreen's user avatar
6 votes
1 answer
5k views

Mono 2.11 on nginx using fastcgi-mono-server4 will not work

I have mono 2.11 set up with my nginx 1.0.15 webserver running on centos 6.2. I built it from source and xps2, xps4 and fastcgi-mono-server2 work as expected. The problem is when I try and run fastcgi-...
fuzzycow101's user avatar
6 votes
2 answers
18k views

How to run PHP files as another user with Apache and FastCGI?

As per older questions, such as using mod_fcgid instead of mod_php and PHP as CGI or Apache Module? (and tangentially some other questions) I came to an understanding that running PHP as CGI or ...
Jari Keinänen's user avatar
6 votes
1 answer
18k views

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....
n.r.'s user avatar
  • 289
6 votes
1 answer
9k views

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/...
x-yuri's user avatar
  • 2,195
6 votes
1 answer
12k views

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 /...
doublesharp's user avatar
6 votes
2 answers
13k views

How to diagnose Internal Server error on Lighttpd?

I have Lighttpd on Centos 5 with Fcgi and Memcached. Periodically, once per week or two i get internal server error 500 and i must manually restart lighttpd to get it to work again. In my lighttpd ...
Tom Smykowski's user avatar
6 votes
2 answers
6k views

A single php-fastcgi process blocks all other PHP requests

I've recently switched to a FastCGI setup for PHP (Apache2-worker and mod_fcgid). However, when a single PHP script is very busy, it seems to block all other PHP requests. What would be wrong with my ...
vdboor's user avatar
  • 3,810

1
2 3 4 5
15