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

How to redirect entire root document to https://www version of the website using nginx

How can I get non www version to redirect to www version But to not affect my subdomains PS. I am using ssl strict comunication with cloudflare on the system nginx and fastcache cgi you can see my nginx configuration bellow. The current…
0
votes
0 answers

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 fully unleash the power of Nginx. #…
0
votes
1 answer

[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 ideas to advance my NGINX configuration: A)…
0
votes
1 answer

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 consuming certain portion of RAM, is this ok ? or…
user3782114
  • 111
  • 2
0
votes
0 answers

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 activity timeout error, and I did the same for this, but…
Ankit Tiwari
  • 101
  • 1
0
votes
0 answers

fatal: repository not found (git + http + nginx + fastcgi)

I am trying to serve git repositories using Nginx. I have the following configuration for Nginx server: worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { } http { include…
enriquesb
  • 1
  • 1
0
votes
0 answers

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 request containing a querystring. The problem is that all…
user103969
  • 31
  • 2
0
votes
0 answers

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 1,000 users could be logged in concurrently (up…
resle
  • 189
  • 1
  • 1
  • 9
0
votes
1 answer

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 with my website and IP address redacted: [error]…
DanRan
  • 73
  • 1
  • 3
  • 22
0
votes
1 answer

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.php?req=$1 last;always sent an…
TheMonkeyKing
  • 113
  • 1
  • 1
  • 5
0
votes
1 answer

Is include() cached with fastcgi?

I have a script like this script.php and i do cache false with this map $request_uri $cache_false { default 0; ~^/data/package.php?$ 1; ~^/signin.php?$…
0
votes
1 answer

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 777 -R /srv when I try to access index.php…
garsev
  • 1
0
votes
2 answers

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 of the site with NextJS (React, Node) But Nginx…
sjiamnocna
  • 41
  • 5
0
votes
1 answer

PHP FastCGI/XML/DOM Configure

Guys, any ideas why when I configure PHP 5.3.1, these options fail? Notice: Following unknown configure options were used: --with-xml --with-dom --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect
James
  • 171
  • 1
  • 3
  • 15
0
votes
1 answer

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 the path where the cache file is saved from ssd to…
cheonmu
  • 25
  • 4