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
1 answer

FCGIWrapper not picking up php.ini file path

I'm using Fast CGI with PHP, and it runs great except I just noticed it's not picking up the php ini path. It seems not to pick up the -c argument at all and says no configuration file is loaded when I do phpinfo() I'm using: AddHandler fcgid-script…
user27422
  • 135
  • 1
  • 7
0
votes
1 answer

HAProxy downloads PHP files instead of displaying in browser

I have nginx and php-fpm running on Docker. When using the hostname of my Docker system (docker1.freekb.net), the phpinfo.php page displays in the browser, thus I know that I have nginx and php-fpm properly configured to serve PHP pages. Here is the…
JeremyCanfield
  • 413
  • 4
  • 11
  • 17
0
votes
0 answers

change fastcgi directory in nginx configuration

i am not sure how to write the proper title i have 5 ajax requests that gonna execute postgresql query in php here is the directory /var/www/webgis.com: 1. webgis.html 2. php(directory) -query1.php -query2.php -query3.php …
astaga
  • 1
  • 1
0
votes
0 answers

Debugging "upstream prematurely closed FastCGI request while reading upstream"

I am running an nginx + php-fpm setup. I recently ran into problem returning binary data to the Nginx server. Nginx show this in the error log: 2021/08/04 19:22:27 [error] 996463#996463: *1 upstream prematurely closed FastCGI request while reading…
Koala Yeung
  • 191
  • 1
  • 1
  • 8
0
votes
0 answers

nginx and fcgiwrap - one response per IP?

I found this comment: There is one "feature" to watch out for in a nginx + fastcgi setup. A given PHP script will only run once for a given IP. So, if the same IP loads index.php for a website twice at the same time, index.php will be served…
user92979
  • 101
  • 1
0
votes
1 answer

SCGI vs FastCGI - Which one is faster?

I want to use one of servers - libscgi and libfcgi - with dynamic content. Which one seems to be faster?
0
votes
1 answer

Cannot disable buffering during SSE connection

I am trying to migrate from Apache2 to NGINX and having issues with SSE connections. Everything else is working fine, the regular GET or POST requests are getting through successfully. Note that the same setup is working perfectly with Apache2 WEB…
0
votes
1 answer

NGINX: Ignoring fbclid parameter for FastCGI Cache Purposes

There are some good responses to this question here: NGINX: Ignoring Certain URL Parameters for Cache Purposes But I cannot seem to get it to work. I'm running a wordpress install and here is my mapping: map $args $cachestep1 { default $args; …
knofun
  • 3
  • 1
0
votes
1 answer

Apache: phpmyadmin on sub-domain "503 Service Unavailable": php7.4-fpm

I'm having a tough time trying to fix a major problem getting phpmyadmin working again (it used to work on ubuntu 16.04). I upgraded Ubuntu 16.04 to 20.04 yesterday and got the following versions of stuff: MySQL 8.0.23-0ubuntu0.20.04.1 for Linux on…
peppy
  • 73
  • 2
  • 10
0
votes
1 answer

Is FastCGI OK in 2021?

It appears most discussions about FastCGI here are frozen from nearly a decade ago and so as someone who just decided to start making use of it, I'm wondering if I am making a mistake with unforeseen security or compatibility issues ahead of me.…
Timothy R. Butler
  • 703
  • 2
  • 11
  • 22
0
votes
1 answer

How to use curl and telnet instead of cgi-fcgi?

I am using this script.c: #include #include int main (void) { while (FCGI_Accept() >= 0) { printf("Status: 200 OK\r\n"); printf("Content-type: text/html\r\n\r\n"); …
0
votes
1 answer

Lighthttp FastCGI unable to start due to permission denied on Linux Mint 20

I get that in /var/log/lighttpd/error.log after start attempt: 2021-04-04 14:47:21: (server.c.1488) server started (lighttpd/1.4.55) 2021-04-04 14:47:21: (gw_backend.c.1404) invalid "bin-path" => "/usr/bin/cgi-bin" (check that file exists, is…
0
votes
0 answers

Using nginx $request_id for CSP nonce value: how to avoid caching it?

I'm using the nginx $request_id for the CSP nonce value, but how can I get fastcgi_cache to bypass caching it? I tried this above the location block where the variable is created, but it seems to stop all caching: if ($request_id != "") { set…
0
votes
1 answer

NGINX FastCGI "Primary script unknown" on every other image upload POST

I have a simple upload php script that accepts image jpg files and saves them to a screenshots directory then returns the link to the client. In pre-deployment testing, I am running into the nginx service erroring out every other request as shown in…
Fireant456
  • 21
  • 3
0
votes
1 answer

Nginx fastcgi_cache and kokos-analytics wordpress plugin

I have setup nginx to cache page requests as described in this tutorial. There for looged in users the caching is disabled in this tutorial by an if request as: # Don't use the cache for cookied logged in users or recent commenters if ($http_cookie…
mathse
  • 3
  • 1