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

How to identify fastcgi processes

We are running multiple php sites on iis using FastCgi Some site is now spawning many instances of FastCgi that is running at high cpu usage. Unfortunately all the sites are running from Network Services, and we are not seeing what W3WP process is…
Andrey Lurye
  • 443
  • 4
  • 8
2
votes
1 answer

Fastcgi request record is too big

I am running an Nginx server, which requires me to accept URI String containing up to 4mb of data. I have configured nginx to accept the params by setting: /etc/nginx/nginx.conf large_client_header_buffers 18 2048k; client_header_buffer_size…
Kao
  • 197
  • 1
  • 13
2
votes
1 answer

Catalyst stderr going to the wrong log

I have several vhosts served by Apache 2.2.22 on a Debian Wheezy server. Some vhosts are Catalyst apps; all vhosts run with mod_fastcgi and mod_suexec. Each virtual host is configured to use a different ErrorLog. When code in the Catalyst apps…
Flup
  • 7,978
  • 2
  • 32
  • 43
2
votes
0 answers

Apache 2.4 + mod_rewrite + FastCGI (php-cgi.exe) on Windows

I am trying to port my Mac config on Windows for some of my clients. Since Windows is not Mac OS, I have to use php-cgi.exe instead of PHP-FPM. I have tested each component individually and everything seems to work, so I believe it is a config-only…
Matworms
  • 61
  • 7
2
votes
1 answer

Apache FastCGI server connection failure

I have a virtual machine base box for Debian wheezy that I've been using with vagrant for the last few months without any issues, however yesterday when I brought up a new machine and updated/upgraded packages I started getting a FastCGI server…
bruchowski
  • 151
  • 1
  • 6
2
votes
2 answers

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ((\.php$)|(^/(status)$)) { fastcgi_pass 127.0.0.1:9000; …
level_0
  • 31
  • 1
  • 4
2
votes
2 answers

Go(lang) with nginx - Serving Static Files

Currently I have the following HTTP server written in Go: func main() { http.HandleFunc("/", func(response http.ResponseWriter, request *http.Request) { http.ServeFile(response, request, "/var/www/default/htdocs/index.html") }) …
Alix Axel
  • 2,803
  • 6
  • 29
  • 30
2
votes
1 answer

Apache2/fastcgi/php fastcgi/haproxy - graceful restart problems changing configuration settings

I have an Apache2 with php fastcgi setup; I want to do config changes without a client noticing it (so no dropped/failing requests), so I put haproxy in front of it; so I have 2 Apache2 servers running on different IPs on the same server and Haproxy…
CharlesS
  • 229
  • 1
  • 7
2
votes
1 answer

FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

I know this isn't a unique question, but perhaps the manifesting situation is unique. Answers found elsewhere don't match what I believe are my circumstances. I have a box hosting a few sites and, although there are no functional issues as far as I…
Rob Wilkerson
  • 1,465
  • 4
  • 17
  • 25
2
votes
1 answer

CGI permissions with NGINX & FastCGI

I'm running GitWeb (which is essentially a CGI script) on a server which also runs GitLab. My aim is to provide reaad-only access to GitLab repositories without registering people. I've pointed GitWeb to my repositories folder which have permissions…
bayindirh
  • 654
  • 1
  • 5
  • 15
2
votes
1 answer

Website with no traffic takes 10 seconds to load with Nginx + FastCGI

Yesterday I had a working optimized Nginx install serving a website and it was really fast. Today I just did some tests with some extra changes in the config ( just adding a redirect ) and suddenly now the server takes like 7 or 10 seconds to serve…
Chroma Funk
  • 43
  • 1
  • 5
2
votes
0 answers

IIS and PHP with FastCGI/WinCache not seeing updated files

We have a script that regularly updates itself on a scheduled task. It downloads a ZIP, then extracts and overwrites a bunch of app files with new ones. We're seeing many cases on IIS where the updated files aren't "seen": Display oddities or in the…
chroder
  • 664
  • 2
  • 8
  • 17
2
votes
0 answers

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and many places, try_files should do the trick. I tried…
Thaxll
  • 21
  • 3
2
votes
1 answer

Supervisord unable to shutdown fcgi processes

I've managed to set up supervisord with fastcgi on a django project of mine, the problem is that when I make mi program stop, the server keeps running somehow, and my page keeps online. Here is my supervisord program…
danielrvt
  • 239
  • 5
  • 13
2
votes
2 answers

FastCGI on lighttpd no data received

I have a simple FastCGI script: public static void main (String args[]) { int count = 0; while(new FCGIInterface().FCGIaccept()>= 0) { count ++; System.out.println("Content-type: text/html\n\n"); …
Michael Sh
  • 123
  • 2