Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 votes
0 answers
225 views

Ubuntu 22.04 php8.1-fpm wifth Apache - 403 Forbidden You don't have permission to access this resource

I installed php8.1-fpm on Ubuntu 22.04. In principle, I set everything up, but still "403 Forbidden You do not have permission to access this resource "error message is displayed. The system ...
user avatar
  • 1
1 vote
1 answer
34 views

How do I pass on a custom FastCGI param value onto an NGINX variable?

Using the FastCGI module allowed me to pass on server variables directly onto my PHP application through the use of param. What I'm hoping to do next is record one of these params onto my NGINX access ...
user avatar
  • 11
0 votes
0 answers
18 views

Nginx messing with file upload

I am using https://github.com/ZizzyDizzyMC/linx-server in order to try and run a file host at my server. When uploading files via curl, it works flawlessly; however on the web ui the file upload ...
user avatar
0 votes
0 answers
61 views

How to skip Fastcgi Cache on Homepage?

I am running a WordPress website with Nginx. However, due to compatibility issues with certain plugins, the login function does not work only on the homepage when fastcgi is activated. So I want to ...
user avatar
0 votes
1 answer
22 views

The tmpfs size seems to be allocated abnormally

I am running WordPress on a vps server with 2 cores and 4 gigabytes of RAM. On the server I installed Ubuntu 20.04 + Nginx + Php7.4 + mariadb. And I recently saw an article about fastcgi and changed ...
user avatar
0 votes
0 answers
47 views

connection refused when trying to execute a python script in nginx

I have the following Dockerfile: FROM nginx RUN apt-get update RUN apt-get install python3 python3-pip fcgiwrap -y the docker-compose.yml: version: '3.3' services: nginx: build: ./data-...
user avatar
0 votes
0 answers
33 views

Nginx not loading usernames

Good day, on my site users, can create usernames for their profiles but every time they try to visit their usernames on the browser to shows a 404 page, and on top of that it does not show the defined ...
user avatar
0 votes
1 answer
56 views

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 ...
user avatar
1 vote
0 answers
366 views

nginx 502 error for api call from application but working in postman and curl request

Environment: Laravel Version: 5.8.29 PHP Version $ php --version: PHP 7.2.24 (cli) NGINX Version $ nginx -v: nginx version: nginx/1.14.0 (Ubuntu) Problem Statement: Everything works fine, except for ...
user avatar
  • 111
0 votes
0 answers
75 views

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....
user avatar
  • 1
1 vote
1 answer
241 views

web page shows me timeout gateway error FastCGI

I proceed to explain the problem and scenario a bit complex for my limited knowledge. initially I thought it was some problem associated with the performance of my scripts and queries, so I created ...
user avatar
0 votes
0 answers
320 views

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 ...
user avatar
0 votes
0 answers
18 views

How to configure apache 2.4 using another user for fastCGI

I am using IIIF Server under apache 2.4 and fastcgi with ubuntu 16.04. I have to run apache 2.4 with another user as the constrain of file permission in NFS. I have changed the user and group in /etc/...
user avatar
  • 101
0 votes
0 answers
82 views

Apache - FastCGI and CGI side-by-side under same directory?

I am running an Apache 2.4.48 server with mod_cgid and mod_fcgid. I have a number of CGI scripts under /cgi-bin/ and have been refactoring some of them to use FastCGI. During this refactoring I need ...
user avatar
  • 125
0 votes
0 answers
63 views

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 ...
user avatar
  • 101
0 votes
1 answer
107 views

SCGI vs FastCGI - Which one is faster? [closed]

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

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 ...
user avatar
0 votes
1 answer
165 views

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 ...
user avatar
  • 3
0 votes
1 answer
428 views

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 ...
user avatar
  • 53
0 votes
1 answer
268 views

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 ...
user avatar
0 votes
1 answer
907 views

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

I am using this script.c: #include <fcgi_stdio.h> #include <stdlib.h> int main (void) { while (FCGI_Accept() >= 0) { printf("Status: 200 OK\r\n"); printf("Content-...
user avatar
0 votes
1 answer
524 views

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&...
user avatar
0 votes
0 answers
224 views

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 ...
user avatar
0 votes
1 answer
95 views

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 ...
user avatar
0 votes
1 answer
28 views

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 ...
user avatar
  • 3
2 votes
0 answers
369 views

mod_fcgid: can't apply process slot for - error repeats every 6 hour

On server, I run Apache via FastCGI using PHP 7.4.13: /etc/httpd/conf.d/ is configured as this: # Use FastCGI to process .fcg .fcgi & .fpl scripts AddHandler fcgid-script fcg fcgi fpl # Sane ...
user avatar
3 votes
0 answers
1k views

Proxy_pass vs Fastcgi_pass

With one server/container on with nginx and another one with fpm, is it better to fastcgi_pass from the nginx to the fpm or proxy_pass to the fpm with addional installtion of nginx on the fpm? Both ...
user avatar
2 votes
1 answer
70 views

Is it possible to configure nginx to just handle SSL?

I have a web server written in C++ already, but it uses TCP sockets without SSL. I want to connect it to the web, but I want to use something like nginx to handle the SSL, and also basic security ...
user avatar
0 votes
0 answers
517 views

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:...
user avatar
0 votes
2 answers
504 views

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 ...
user avatar
  • 166
0 votes
1 answer
382 views

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! ...
user avatar
0 votes
0 answers
229 views

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 ...
user avatar
0 votes
2 answers
176 views

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\....
user avatar
0 votes
1 answer
150 views

Can nginx proxy_cache replace fastcgi_cache?

If nginx is already used with proxy_cache, is there still any need to use fastcgi_cache? In other words.. When using nginx proxy_cache, there is no more need for fastcgi_cache?
user avatar
-1 votes
1 answer
362 views

How can I fix the error Undefined variable: _ENV in /home/nginx/domains/mydomain.com/system/Config/BaseConfig.php?

I am trying to install a Codeigniter application in pure NGINX + PHP-FPM environment but it was previously developed in apache . After adding all the proper rules to Nginx in order to work with ...
user avatar
1 vote
0 answers
245 views

PHP FastCGI Process Manager (FPM) on IIS

Is there a way to enable fpm-fcgi sapi on IIS? I'm aware that the default SAPI for PHP on IIS is cgi-fcgi.
user avatar
0 votes
1 answer
150 views

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, ...
user avatar
  • 101
1 vote
1 answer
556 views

Make nginx wait x seconds before returning a 502

I think fastcgi_read_timeout is what I need here, but would like to get expert confirmation on my use-case! Thanks. -- I have nginx doing fastcgi relay to a php-fpm instance. The fpm instance, ...
user avatar
  • 1,815
0 votes
1 answer
822 views

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 ...
user avatar
0 votes
0 answers
147 views

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 ...
user avatar
  • 111
1 vote
1 answer
76 views

Matching redirected nginx requests from original path

My current configuration rewrites all php pages to /index.php?$query_string, I need this to work for a specific path, but when using a location block for this, once the path has been rewritten it no ...
user avatar
0 votes
1 answer
491 views

Loading css from cgit on nginx in a subdirectory

before I start I should note that I have absolutely no experience with nginx or networking, so what I have done was thanks to searching and trying different solutions. I have a problem I struggle ...
user avatar
  • 1
0 votes
0 answers
68 views

nginx serving php files

I am having trouble with a php test file on my nginx webserver. For some reason, everytime I am trying to reach http://localhost/test.php I get the famous error No input file specified. After ...
user avatar
1 vote
1 answer
871 views

Nginx fastcgi cache in different location block

I am trying to cache different location with different cache keyzone but it is not working. Cache is only working for the root "/" location. If I turn off the cache for location "/" then still it ...
user avatar
  • 127
0 votes
1 answer
1k views

FastCGI NGINX permission denied error

Having trouble understanding how to correctly use FastCGI processes with NGINX. Unlike Apache, NGINX does not automatically spawn FCGI processes. So I first apt-get fcgiwrap spawn-fcgi. I spawned a ...
user avatar
0 votes
0 answers
584 views

gitweb on nginx ...to unix:/tmp/fcgiwrap.sock failed (111: Connection refused) while connecting

I've gone through the answers provided in similar posts but I am still getting a Connection refused error when trying to connect to git.example.com. The exact nginx error message is as follows 2019/...
user avatar
1 vote
0 answers
184 views

git-http-backend blocking with fastcgi on nginx

I have git-http-backend serving git repos through an nginx fastcgi proxy. The nginx config looks like: server { listen 443 ssl; server_name git.example.com; ...
user avatar
  • 131
2 votes
0 answers
622 views

Long-running git post-receive hook causes timeout

I have a post-receive hook written in python, whose main function is to deploy the updated branch. It clones the repo into a new dir, and runs environment setups like npm install and building/...
user avatar
  • 131
0 votes
1 answer
323 views

Pin point 500 Error which seems to orginating from FastCGI Module

I have a php application which I have been hosting on IIS that has suddenly stopped working and returns a server 500 error. In an attempt to troubleshoot it I have added a Failed Request Tracing Rule ...
user avatar
  • 101
0 votes
2 answers
3k views

nginx cache cookies issue

I've configure nginx|php-fpm with nginx cache. The problem i'm having is with the cookies and cache, i configure to bypass cookie name and some request_uri and working fine bypass it cool here. ...
user avatar

1
2 3 4 5
15