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

apache2 + mod_fastcgi + suexec + php5.2 = unstable on high load

I am hosting several (~30) different sites on one server with apache2+fastcgi+suexec+php5. Sites have different loads and different execution times of their scripts (some of them process request for 5-7 seconds, some <1sek). Sometimes when single…
None
0
votes
0 answers

FastCGI allowed memory exhausted in Wordpress

I have Wordpress running on a Ubuntu 20.04 server with Nginx and PHP 7.4. When trying to generate a feed (by going to a feed URL such as /category/feed) , I receive the following error: 2020/09/11 18:51:26 [error] 4446#4446: *5 FastCGI sent in…
0
votes
2 answers

nginx how to passthrough frontend ip address to backend server (do not confuse passing through user ip address to backend)

I have server Front server:Apple and Back End server Orange Just to be clear in first line I don't want to pass through user ip address through Apple to Orange as I already implemented that by using proxy_set_header X-Real-IP $remote_addr; My…
danone
  • 166
  • 1
  • 10
0
votes
1 answer

How to Enable Immediate CGI Line Outputs With Nginx, Without Waiting for a CGI Script to Finish?

I have a perl and shell script that process a bunch of data and output results as they happen, like: 5 processed in 0.58 seconds. 10 processed in 0.79 seconds. ... 150 processed in 0.65 seconds. DONE! etc. However, when I visit the URL with Chrome,…
Crash Override
  • 601
  • 1
  • 10
  • 21
0
votes
0 answers

Nginx Location Directive - Sending Query Parameters to index.php

I'm trying to setup a location directive in nginx with an exact URI match of the form: http://host/authenticate/?username=test&password=test. I have a script called, index.php located in the public folder, /usr/share/nginx/html/authenticate/ which…
Malanie
  • 5
  • 2
0
votes
2 answers

Nginx Location Directive - File gets downloaded

I currently have setup an Nginx location block that matches a uri if and only if it starts and ends with /auth/test.php. The only match would be http://host/auth/test.php. location ~ ^/auth/test\.php$ { # Use try files or the if statement…
Malanie
  • 5
  • 2
0
votes
1 answer

nginx config causes "Primary script unknown"

I am having a really puzzling issue with my nginx config. I keep seeing this error: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream client: 76.14.172.29, server: apistaging.mydomain.com, request: "GET /…
kp123
  • 101
0
votes
1 answer

Nginx - Redirect to remove index.php from path

I'm trying to deploy a web application for building REST services. The application is built using PHP and you BYO web server and database software. I'm using Nginx and MySQL (MariaDB). I've managed to deploy it using the following Nginx…
damiante
  • 1
  • 2
0
votes
0 answers

Nginx FastCGI primary script unknown when using a wildcard setup

I am trying to set up a dev stack where I can simply create a new directory and have it accessible as subdomain through nginx. I am running into the infamous 'primary script unknown' issue, and I think it has something to do with the wildcards as…
Ieuan
  • 111
  • 4
-1
votes
1 answer

NGINX location block to fastcgi process URL segments as URL parameters. How?

I am trying to understand how to get this location block to work as desired. ## TESTING MOD REWITE FROM APACHE... location /beta9/projects/project/ { try_files $uri $uri/ /beta9/projects/project/index.php?$args; fastcgi_pass …
suchislife
  • 356
  • 4
  • 11
-1
votes
1 answer

W3-total-cache with nginx fastcgi cache at same time?

Can anyone tell me how do these two cache work together? How does nginx know what cache to pull from first? what to ignore? or does it pull both? thanks in advance.
-1
votes
2 answers

Why FastCGI and C in Nginx instead of PHP?

I want to run a (compiled) C program every time Nginx receives a request for a URL, say https://myserver.com/programs/my-C-file. More specifically, when a PR in GitHub is merged, I want a hook to initiate a custom build and release process written…
OrdinaryHuman
  • 139
  • 2
  • 9
-1
votes
1 answer

Nginx/Php Fastcgi permission issue

Suddenly I started getting the following error when I try to restart nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] mkdir() "/var/run/nginx-cache/site1" failed (2: No such file or directory) nginx:…
Jun
  • 3
  • 1
-1
votes
1 answer

How do I supposed to run Nginx + Django site connected together by UNIX socket?

runfcgi.py:18: RemovedInDjango19Warning: FastCGI support has been deprecated and will be removed in Django 1.9. What to use instead? I don't want Nginx and Django site to share user account, chroot and other things and want a UNIX socket between…
Vi.
  • 841
  • 11
  • 19
-1
votes
1 answer

Wordpress Site Broken After Updating Theme

If I leave out needed details, please tell me. I'm running Nginx on Ubuntu 14.04 x64. I use php5-fpm. Currently I am battling with my PHP installation, and it's causing a couple problems now. See my other problem here:…
Purlek
  • 29
  • 5
1 2 3
48
49