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

FastCGI launcher

I need to serve some FCGI scripts (via WSAPI, but that is irrelevant) from nginx. Currently I'm using spawn_fcgi to do this. This is the only solution I've found. I need to know my other options. Are there any other ways to run FastCGI under nginx?
Alexander Gladysh
  • 2,423
  • 8
  • 31
  • 49
4
votes
1 answer

Two separate PHP-FPM sites seem to be using the same code?

I have two websites with two codebases, yet when I change one codebase, I see the change in both. I have two checkouts of the same website. They are set up to use PHP-FPM through Apache2 with FastCGI. The checkouts are…
Sander Marechal
  • 289
  • 4
  • 11
4
votes
2 answers

Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi

I am currently running a high-traffic python/django website using Apache and mod_wsgi. I'm hoping that there's a faster webserver configuration out there, and I've heard a fair number of recommendations for lighttpd and fastcgi. Is this setup faster…
BrainCore
  • 161
  • 1
  • 3
4
votes
2 answers

NGINX, how to strip location prefix in $fastcgi_script_name

I've already read that : how to remove location block from $uri in nginx configuration? but is there a way to strip the location blocks's prefix from the $fastcgi_script_name without using regex ? for example : location /foo/ { access_log …
hl037_
  • 267
  • 2
  • 10
4
votes
1 answer

PHP eats a lot of memory on IIS

I just transferred one site from Linux to Windows and I'm getting strange fatal error messages. My Linux PHP had a 256MB memory limit and never had a single "out of memory" fatal error. Now on IIS I have the same memory limit but I'm receiving too…
4
votes
3 answers

Nginx / PHP-FPM = Blank pages

Dear ServerFault Community, I managed to get my site into a fully functional state two days ago.. Around 3 hours ago today, I've restarted my linux box and have found my site to no longer work. I have no idea as to why this would be and quite…
Jake
  • 101
  • 2
  • 7
  • 11
4
votes
1 answer

Enable FastCGI on Apache with Puppetlabs/Apache

I'm using Puppetlabs/Apache to configure Apache. In the main puppet file, I call and configure it: class { '::apache': } class { '::apache::mod::fastcgi': } apache::vhost { "${::fqdn} non-ssl": servername => $::fqdn, port =>…
kaiser
  • 1,251
  • 1
  • 16
  • 24
4
votes
2 answers

How to set up nginx and fastcgi to run Laravel in a subfolder?

I'm setting up multiple Laravel apps under subfolders of a single domain (social network apps, need https, single certificate). Cannot figure out how to write nginx config to map HTTP requests to /app1/ to a Laravel installation under…
Sergiks
  • 249
  • 3
  • 5
  • 11
4
votes
2 answers

PHP + Apache long wait time

I've run into a bit of a brick wall with troubleshooting my dedicated websever. Recently, my website spiked with the amount of request/per second and it crashed. The box original had 8GB of RAM, 8 Core Xeon E3-1230, 1TB 7,200 RPM Disk (No Raid),…
Moe
  • 167
  • 1
  • 1
  • 8
4
votes
3 answers

Nginx choose upstream depending on args

I need to two different sets of upstreams. But all my requests come from the same URL (same path). The difference is that some request will have a special argument and some won't. Depending on that, I would need to choose which upstream to use. Here…
4
votes
2 answers

Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?

TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response? I have a set up running php-fpm behind nginx. In general, this works very well and I'm happy with it, but there are a few…
pilif
  • 638
  • 9
  • 11
4
votes
5 answers

Make PHP-FPM Listen at 'IPAddress:Port' Instead of '/var/run/php5-fpm.sock;'

As I was load testing my site today (using blitz.io); despite lots of RAM (more than 50%) and CPU power (over 70%) available, results showed that my site started timing out at a certain number of concurrent users per second. Nginx error log for my…
its_me
  • 225
  • 1
  • 7
  • 23
4
votes
3 answers

Turn off gzip for a location in Nginx

How can gzip be turned off for a particular location and all its sub-directories? My main site is at http://mydomain.com and I want to turn gzip off for both http://mydomain.com/foo and http://mydomain.com/foo/bar. gzip is turned on in nginx.conf. I…
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
4
votes
1 answer

Lighttpd, Python, MySQLdb Python Module and Permissions

After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the application. I am having difficulty getting the MySQLdb…
breezy
  • 41
  • 2
4
votes
4 answers

SuExec: “command not in docroot” Even Though It Is?

Arch Linux 2011.08.19 (Linux 3.4.2 i686) Apache 2.2.22 with SuExec PHP 5.4.4 (cli) via FastCGI My sites were all working fine earlier… I’m not sure when it happened because I noticed it over a week later (I’m guessing perhaps after a system…
Hugh Guiney
  • 245
  • 2
  • 8
  • 21