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
18 views

How to run Anaconda environment on IIS with WFASTCGI?

I have developed a web application in Python using the bottle framework. I have a Windows Server, and I used IIS as Web Server for my application, using WFASTCGI. My application requires packages to ...
SRKX's user avatar
  • 113
0 votes
0 answers
59 views

How do I get debug logging out of php_fastcgi in a container?

I am running a container built from this Dockerfile. It's running a basic PHP application. In front of it I have Caddy. A lot of people put nginx in front of PHP. I don't and I won't. So if your ...
Paco Hope's user avatar
  • 101
0 votes
0 answers
79 views

FROM php:7.4-fpm-alpine app.dockerfile results in fastcgi error when adding sh file to run as an entrypoint

I am using AWS ECS Faragate to generate and deploy docker containers into tasks. I'm using the docker image FROM php:7.4-fpm-alpine for my app container. I have been working on a workaround for cron ...
cwiggo's user avatar
  • 121
1 vote
1 answer
119 views

Apache: 500 error, PHP fails on just one specific path

I need another pair of eyes to help debug an issue. This will be a long message. I'm going to provide a lot of context because I'm not sure which details might be important. We have two servers: dev, ...
Will Martin's user avatar
  • 2,513
0 votes
1 answer
114 views

Tell Nginx not to cache based on a response header from upstream

I'm using Nginx to serve MediaWiki, and I use FastCGI caching to avoid unnecessary PHP calls. (In the MediaWiki LocalSettings.php file, I have $wgUseCdn = true; and in the Nginx config, I use ...
TaylanKammer's user avatar
0 votes
0 answers
33 views

Trouble using nginx location block to exclude certain files from fastcgi cache

I've searched and tried lots of iterations of an nginx location block to exclude certain files from the fastcgi cache, but I can't get it to work. I understand using a location block is preferable to ...
jamminjames's user avatar
0 votes
0 answers
55 views

Routing requests to cgi with nginx

I'm having trouble translating an application controller routing setup from Apache to nginx without using if , which is strongly discouraged. What I want: serve requests for static files as-is if they ...
Martok's user avatar
  • 43
1 vote
1 answer
56 views

Trying to use setfacl to allow script owner to delete cache file

I want to use setfacl to allow a php script owner to delete fastcgi_cache_path files that are owned by nginx. The user has been added to the nginx group. I have tried: setfacl -d -m u:user:rwx cache, ...
jamminjames's user avatar
-1 votes
1 answer
114 views

open() "/var/lib/nginx/cache/fastcgi/3/d0/bce7bdb8e2c388c7675c97c7324efd03" failed (13: Permission denied)

I am trying to add Caching for Proxy & FastCGI but once i try to view any page on the site it fails with 500 Internal Server Error and when i tried searching my logs for any errors i found that ...
Zorono's user avatar
  • 3
0 votes
0 answers
20 views

Do I need a fastcgi development library in addition to mod_fcgid?

Do I need fastcgi development libraries in addition to mod_fcgid. I will use mod_fcgid together with Wt (web toolkit). Cmake files of Wt is searching for an include directory for the file fcgio.h and ...
lid's user avatar
  • 13
2 votes
0 answers
308 views

Docker nginx + php performance

I am using docker-compose to run an nginx container and a PHP container. I have a performance issue, where each 4th or 5th request to a simple PHP script takes several seconds (normally <<1s). I ...
Joaquim d'Souza's user avatar
0 votes
1 answer
284 views

Nginx FastCGI Skip Cache Rules for /shop/ in Wordpress woocommerce, why aren't they working?

I am running a LEMP server with Wordpress and Woocommerce. My site is live at https://www.mcmo.is. My Nginx Skip Cache rules seem to be working except for on one page: https://www.mcmo.is/shop When ...
DanRan's user avatar
  • 93
1 vote
1 answer
130 views

Nginx: rewriting while checking args format with a regex

I have an API endpoint like /my/api/PARAM1/abcd?arg1=val1&arg2=val2, and use a redirect to proxy to a fastcgi server elsewhere (using upstream). Basically I have the current configuration : ...
fred59xc06's user avatar
0 votes
0 answers
289 views

What is the proper value of "fastcgi_split_path_info" in Nginx virtual host when using php 7.4 with "cgi.fix_pathinfo = 1" on Nginx v1.25.1 Mainline?

BACKGROUND: I am running a LEMP server with Ubuntu Server 20.04 with Nginx v1.25.1 Mainline and php7.4-fpm. In my virtual hosts file I am trying to set the proper and working fastcgi_split_path_info ...
DanRan's user avatar
  • 93
0 votes
1 answer
323 views

Fastcgi script "file not found" / Primary script unknown

ACTUAL SITUATION I am in the process of transferring a static web server to a container. ISSUE ENCOUNTERED When i'm trying to reach my server, i received "File not found" with : curl ...
user20893268's user avatar
2 votes
1 answer
622 views

nginx route all 404 requests to a php script

I want to route all 404 requests to a php script, How should I do that? My nginx config is: server { listen 81; listen [::]:81; root /srv/http/paste.lan/www; autoindex on; ...
hanshenrik's user avatar
0 votes
1 answer
448 views

Nginx FastCGI cache is EXPIRED when it should not

Nginx sets the x-fastcgi-cache header to EXPIRED a few hours after the page was first cached, whereas the cache validity is 1 week. Nginx Config: fastcgi_cache_path /usr/share/nginx/fastcgi_cache ...
Fluktegrute's user avatar
1 vote
1 answer
353 views

How can I curl -IL all the website pages starting with the root pagenot just 1 page at the time?

I need to curl -IL all the website and maybe do cron job or something every 24hrs so fastcgi can cache all the pages on vgo The cache don't hit unless I curl -IL the webpage so I need something that ...
Crypto Coupons's user avatar
0 votes
0 answers
106 views

Site with subdomains in redirect loop - Nginx configuration Issues

this is the website (the website also have subdomains) nginx configuration: # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to ...
Crypto Coupons's user avatar
0 votes
1 answer
166 views

[Wordpress][CACHE] Fastcgi_cache or proxy_cache?

I'm preparing a server to host a classic WordPress site (lots of dynamic content). I have an apache server associated with a Nginx reverse proxy ( with the proxy_pass configuration ). I have several ...
Vold DRag's user avatar
1 vote
2 answers
570 views

http3 removes domain from all links

So couple days ago I installed NGINX 1.23.3 QUIC with Brotli, TLS 1.3, OpenSSL 1.1.1s with HTTP/2 and HTTP/3... so server with fastcgi and php-fpm... when I load site for first time it works with ...
Raimond's user avatar
  • 11
0 votes
1 answer
113 views

cgi/fastcgi 0% CPU and N% Memory?

I have php wordpress website hosted on IIS, have been using FastCGI, below is my fastCGI configuration Below is screenshot of task manager There are many fastCGI processes that are using 0% CPU but ...
utsav's user avatar
  • 117
0 votes
0 answers
787 views

python.exe - The FastCGI process exceeded configured activity timeout

I'm trying to host a Flask (Python) application on a Windows server, but it was giving me request timeout error, then I changed it to 300 seconds (5 minutes), and after that, it's giving me an ...
Ankit Tiwari's user avatar
0 votes
0 answers
124 views

FastCGI cache and WordPress, is the cache skip for querystrings really needed?

I'm just making a few test on FastCGI cache and I see that the suggested .conf have this directive: if ($query_string != "") { set $skip_cache 1; } This will bypass the cache for every ...
user103969's user avatar
0 votes
0 answers
392 views

IIS FastCGI configuration for high concurrency

I am hosting, on Windows Server 2022, a web application that makes regular ajax calls to a PHP backend. The calls themselves are quite light, just pulling and pushing data from and to a MySQL db. Over ...
resle's user avatar
  • 199
0 votes
1 answer
1k views

Nginx FastCGI Error in logs: 38 FastCGI sent in stderr: "PHP message: PHP Warning: hash_equals(): Expected known_string to be a string

I am running a LEMP server (Ubuntu 20.04 server) with fast cgi enabled, and am getting the following error message in the logs for one of my virtual hosts (one of my websites). Here is the full error ...
DanRan's user avatar
  • 93
1 vote
0 answers
239 views

Wordpress NGINX + FastCGI Cache, Err_too_many_requests

Have a weird situation with my Wordpress set up running NGINX and PHP8.0 with FastCGI Cache. The site will end up in a too many requests loop, however, it doesn't happen immediately and will come out ...
J.Doe's user avatar
  • 11
0 votes
1 answer
512 views

Nginx - fastcgi cache not working for rewrite enabled php page

I've been trying to figure out why Im failing to achieve fastcgi caching for a rewrite rule applied php page. While all other request wonderfully cache, the rewrite ^(.+)/special/?$ /inc/special....
TheMonkeyKing's user avatar
0 votes
1 answer
46 views

Is include() cached with fastcgi?

I have a script like this script.php <?php include "data/package.php"; echo $package[0]["name"]; echo "Hello World"; ?> and i do cache false with this map $...
yvgwxgtyowvaiqndwo's user avatar
1 vote
0 answers
89 views

custom fast cgi cache duration for a location

i have this configure location ~* \.php$ { try_files $uri /index.php =404; fastcgi_pass phpstream; fastcgi_index index.php; fastcgi_cache GCache; ...
yvgwxgtyowvaiqndwo's user avatar
1 vote
0 answers
634 views

nginx 404 not found in subfolder

I installed a php script in /files/ subfolder on Nginx but when I access the page, it's not working. Just showing 404 not found. I added this in the config but not working. location ^~ /files { if (!...
Genisys Mythic's user avatar
0 votes
1 answer
156 views

opensuse php fpm lighttpd 403 is it a permissions-issue

So far I have configured php-fpm configured and is up and running listening to port 9000 lighttpd is running and serves static files the problem that I have seems to be a permissions issue, so i chmod ...
garsev's user avatar
  • 1
0 votes
2 answers
587 views

Nginx downloads source code instead running it with PHP-FPM over Docker

I'm creating PHP backend app using Docker alpine-nginx, I need to redirect all requests starting with /api to run www/index.php file as it's built on MVC framework. Proxy_pass works great for the rest ...
sjiamnocna's user avatar
1 vote
1 answer
5k 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 ...
Teo76's user avatar
  • 11
1 vote
1 answer
1k 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 ...
Gibz's user avatar
  • 11
0 votes
1 answer
167 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 ...
cheonmu's user avatar
  • 35
0 votes
1 answer
370 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 ...
JeremyCanfield's user avatar
1 vote
0 answers
2k 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 ...
Maqsud's user avatar
  • 111
0 votes
0 answers
614 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....
astaga's user avatar
  • 1
1 vote
1 answer
972 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
837 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 ...
Koala Yeung's user avatar
0 votes
0 answers
304 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 ...
user92979's user avatar
  • 101
0 votes
1 answer
307 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?
Владимир Смирнов's user avatar
0 votes
1 answer
2k 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 ...
Anatoly Malishevski's user avatar
0 votes
1 answer
639 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 ...
knofun's user avatar
  • 3
0 votes
1 answer
983 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 ...
peppy's user avatar
  • 73
0 votes
1 answer
721 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 ...
Timothy R. Butler's user avatar
0 votes
1 answer
3k 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-...
FAQ's user avatar
  • 117
0 votes
1 answer
2k 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&...
FAQ's user avatar
  • 117
0 votes
0 answers
673 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 ...
jamminjames's user avatar

1
2 3 4 5
15