2,041 questions
1
vote
0
answers
135
views
Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"
Seeking community wisdom on why the ApacheBench utility consistently returns a lot of "Non-2xx responses" ( 502 Bad Gateway ) when running a benchmark test of my helloworld web app using ...
3
votes
1
answer
104
views
Cannot get gettext to work in php:fpm-8.2 Docker Container
I've checked on the questions regarding this issue, they did not help (see what I tried below).
I setup a multi-container app on docker with a httpd:2.4 (apache) container acting as reverse-proxy ...
0
votes
0
answers
58
views
trying to rewrite lua-resty-fastcgi but it fails to connects
I am trying to rewrite FastCGI extension which was written for Lua Resty module of NGINX by benagricola, but it keeps on failing to connect to any PHP-FastCGI server (throws fastCGI : recv header ...
0
votes
2
answers
112
views
Cannot get Lighttpd connecting with a Gunicorn backend server [closed]
I'm following this (very good) tutorial on how to serve a Flask app over hte intenet. I now have everything working well using Nginx - but I want to use Lighttpd with Fastcgi as that is my main web ...
0
votes
1
answer
101
views
nginx - php-fpm - azure container app returns truncated pages [closed]
I'm having a problem where the response I get from nginx is truncated, meaning that the source returned just ends part way through.
If I run the nginx container locally everything works, the problem ...
1
vote
0
answers
114
views
How can I work out why PHP FCGI is crashing?
A server of mine sits and resizes images for a living. It can live for days, weeks, or sometimes longer - but always eventually just mysteriously stops working, and all PHP scripts on the box are ...
1
vote
1
answer
300
views
A problem with curl parsing during an attack on php-fpm on an intranet using SSRF+gopher protocols
I built a server in docker using nginx+php-fpm (nginx/1.18.0, PHP 8.2.3 (fpm-fcgi), Zend Engine v4.2.3) and ran a web page ssrf.php with ssrf vulnerability, where the part of the code that has the ...
0
votes
1
answer
94
views
How to set a fastcgi handler for a given file extension with mod_proxy_fcgi
I have a perl fastcgi script that listens on port 2022 of localhost that I want to use as handler for any file with the extension 'stml'. What has proved to be trivial on every other webserver is ...
0
votes
0
answers
75
views
How does IIS FastCGI behave when concurrent connections exceed Max Instances?
What does IIS FastCGI do when the number of concurrent connections exceeds the Max Instances setting? eg, Max Instances is set at 1 and 2 requests come in at the same time. Does IIS FastCGI a) queue ...
0
votes
1
answer
378
views
PHP 8.2-FPM PHPRC Not Overriding Loaded Configuration File
I am using PHP 8.2-FPM with Nginx, and I am trying to set a custom php.ini file using the PHPRC environment variable. I can see that $_SERVER['PHPRC'] is correctly set in the PHP Variables section ...
0
votes
0
answers
163
views
Django on IIS with FastCGI: HTTP Error 500.19 - Internal Server Error (Config Error 0x8007000d)
I'm trying to host a Django application on IIS using FastCGI. I've followed the steps to set up IIS with FastCGI and the wfastcgi.py handler for Django. However, I keep encountering an HTTP Error 500....
1
vote
0
answers
80
views
Website Experience Intermittent Redirect Loops That Resolve Automatically
I am experiencing intermittent redirect loops on my website, which cause temporary downtime. These issues appear randomly but seem to resolve automatically without any changes on my end. I'm using ...
0
votes
0
answers
181
views
Scoreboard: failed to lock
the error log for php 8.x, reports that there is an error. It looks like this:
2024/08/15 17:55:10 [error] 1753#1753: *836069 FastCGI sent in stderr: "scoreboard: failed to lock (already locked);...
1
vote
2
answers
405
views
PHP file is not found when a path contains spaces using a FastCGI Unix socket
I am transferring a site that was built on Windows XAMPP to a server running Ubuntu 24.04 (Noble Numbat), Apache 2.4.62, and PHP 7.4.33. Everything is working fine, except PHP files containing spaces ...
0
votes
1
answer
199
views
Caddy PHP fastcgi not giving server script_name when handle_path is used
Caddy (2.8.4) is hosting a PHP application through FastCGI (PHP-FPM) but for some reason the $_SERVER['SCRIPT_NAME'] does not contain the full path when I use the caddy handle_path config.
:80 {
...
0
votes
2
answers
307
views
error 500 on IIS FastCGI but no clue despite multiple error loggings activated
I host two WordPress sites on a Windows 2019 Server, IIS 10, PHP 8.2 with FastCGI.
The two sites use exactly the same themes and plugins, in same versions.
One site works fine and the other generates ...
0
votes
0
answers
38
views
Django Channels on IIS [duplicate]
I have a Django app deployed on IIS with FastCGI. Now, I have installed Django Channels in it and also Daphne to run WebSockets. Everything is working fine locally, but now I am struggling to ...
-1
votes
1
answer
105
views
Standalone webserver to serve HTTP GET requests
I'm developing a webserver(FCGI) based on using gsoap v2.8.
This webserver shall respond to the incoming HTTP GET requests but it's not working.
I got to know that gsoap provides HTTP callbacks to ...
0
votes
0
answers
78
views
Getting this issue while trying to host flask application on IIS
enter image description here
I was following this https://medium.com/@dpralay07/deploy-a-python-flask-application-in-iis-server-and-run-on-machine-ip-address-ddb81df8edf3
And i get this error when i ...
0
votes
1
answer
930
views
Nginx + Fastcgi Cache - Purge Wordpress
We use VPS with Debian, Nginx 1.24 + PHP-FPM 8.3 with active Fastcgi cache.
Everything works ok, but if we want to purge cache from Wordpress, it removes only cache file, not folders.
We use Nginx ...
-1
votes
1
answer
99
views
Prevent overwriting of rules set to limit access with php-fpm
My configuration prevents users to browse the file system thanks to limitations set up in php-fpm (How to disable open_basedir and allow_url_fopen in PHP)
I have recently discovered a hacked site with ...
0
votes
1
answer
69
views
Nginx + mason_fcgi.pl + Set-Cookie problem
I'm beginning to write in HTML::Mason, and trying to generate some page with cookies. The problem is, that all the documentation I can find uses only Apache+mod_perl, and this is not my case. I'm ...
1
vote
1
answer
121
views
Unexpected output in browser with CGI::Fast to_json
I have a server with openSUSE Leap 15.3.
On this server I run Apache 2.4.43 with apache2-mod_fcgi.
I have the following program: test.fcgi
#!/usr/bin/perl
use JSON;
use CGI::Fast;
while (CGI::Fast-&...
0
votes
1
answer
1k
views
Apache proxy_fcgi - Error and PHP Fatal error
I'm getting this error (I attach log) and my domain returns an HTTP 500 error, I haven't changed anything unless I enabled WP-debug in the wp-config file, even if I disable it the problem persists, ...
1
vote
1
answer
440
views
Symfony + NGINX = upstream sent too big header while reading response header from upstream
Attempt to open Symfony web application in browser ends with 502 error.
NGINX log contains error for this -- upstream sent too big header while reading response header from upstream.
According to many ...
0
votes
0
answers
461
views
Nginx (external) with fastcgi_pass to PHP (Kubernetes): upstream sent unsupported FastCGI protocol version: 72
I am new in Kubernetes.
I had a working setup of separate servers for frontend and backend, all before Kubernetes.
A frontend webserver which served a static build of a React App, and a backend server ...
0
votes
1
answer
74
views
How access the same domain with different folders from the Internet (wan) Apache (wamp)?
I would like to know if I can access different folders from the Internet using the same domain.
I am using FCGI, which means that for each project I have a different version of php, locally it works ...
0
votes
1
answer
282
views
Python script ignoring known_hosts file when connecting to remote server
Setup:A Windows Server, executing php scripts using fastCGI as a service user (i have verified this by doing exec(“whoami”, …)). They launch python scripts using exec (which are also ran as the ...
1
vote
0
answers
2k
views
FastCGi process exited on IIS 10 PHP 8
I've had this problem with my .php pages for a while now and have not found a solution online for PHP 8 on IIS.
I use Windows Server 2022, ISS 10, PHP 8, 12 GB RAM
The error occurs when I use my ODBC ...
0
votes
1
answer
1k
views
proxy_fcgi:error malformed header from script bad header
I'm attempting to "rebuild" an infrastructure for the development team in my company using Docker. I accomplished this about 1 year ago, and now I'm working on refactoring and rewriting it ...
0
votes
0
answers
166
views
wfastcgi.py on IIS 10 closing because of empty data on cgi record
I'm trying to migrate a python backend application from IIS 8.5 to IIS 10 in a new server. While in the old server the application works just fine, in the new one it is getting a 500 error.
I tried to ...
0
votes
1
answer
1k
views
How to fix mod_fcgid: can't apply process slot
Recently, my server froze up, refusing to respond to requests. I was unable to connect via SSH, and finally, after some contact with my hosting provider, the server restarted and resumed working.
I ...
0
votes
0
answers
230
views
How to force Nginx to override PHP CGI HTTP Status code?
In Nginx + PHP-FPM configuration I have a .php file with the following content:
<?php
header("HTTP/1.1 405 Method Not Allowed");
echo 'hi';
?>
Now, if I want to force Nginx to ignore ...
0
votes
0
answers
82
views
HTTP status code returned by Laravel application in IIS
I been trying to configure a REST API written with PHP and Laravel for a few days, but I can't get the correct HTTP status code according to the error returned (401, 404, 500, etc).
IIS always ...
0
votes
1
answer
178
views
Flask app deployed on IIS fails to handle unicode in URL
I have a Flask app with a route defined like this:
@app.route("/api/<value>")
def foo(value):
...
On my local machine, using Flask development server, everything works correctly.
...
0
votes
0
answers
520
views
Unable to connect to the PHP FastCGI process: dial tcp :53315: socket: too many open files
hope you are doing well.
I am encountering the following error when running my Symfony project with Nginx and PHP-FPM on local :
unable to connect to the PHP FastCGI process: dial tcp :53315: socket: ...
1
vote
0
answers
116
views
Using Python C API and FastCGI, how can I get the Python C API to send output to NGINX instead of stdout?
I am using the Python C library and FastCGI to run code in a file and return the output to NGINX. The problem is PyRun_SimpleString outputs to stdout, which is fine for a CLI, but is ignored by ...
0
votes
1
answer
396
views
How to deploy flask app on lighttpd server on yocto linux using flup , fastCGI package for production
I am trying deploy the flask app on production on lighttpd webserver. I m using yocto based linux OS.
The folder structure is mentioned below:
/my_project/
/app.py
/app.fcgi
/static/
...
2
votes
0
answers
148
views
Failed to install fcgi gem
Windows Server 2016, Apache 2.4, Ruby 3.0.6 (with webkit), Rails 7.0.4.3
I'm trying to install FCGI gem with the command gem install fcgi but it returns that error:
C:\Apache24\htdocs\redmine-5.0.5>...
0
votes
1
answer
895
views
How is php-fpm socket folder ({/var,}/run/php-fpm) created on Linux?
I am setting up multiple php versions on CentOS7 (native and from remi repos). As installed, the native php-fpm is setup on a unix socket, while the (remi) php74-php-fpm would listen on a TCP socket. ...
1
vote
2
answers
2k
views
How can I execute a third party C programm using nginx fast-cgi for web server?
I and a project team are trying to make our server use a C algorithm in background of our hosted website. Our server as bitnami nginx already installed but i can't find any information on the net ...
0
votes
1
answer
314
views
PHP Project Mounted on IIS Windows Container won't run
I set up IIS on windows servercore container and mounted my project directory to wwwroot. I keep getting the following warning from PHP when I run the project:
PHP Warning: Unknown: Failed to open ...
0
votes
1
answer
753
views
lighttpd gives 403 Forbidden with PHP file
I have a lighttpd server in a container running the sebp/lighttpd image (lighttpd on Alpine Linux). It can serve HTML files with no problems.
I am trying to set up PHP for this server. However, when I ...
1
vote
0
answers
463
views
Nginx ingress config not being generated correctly in Kubernetes
Looks like my NGINX is trying to connect to the php-fpm container via HTTP instead of fascgi.
When I try to connect to the php-fpm container manually via fastcgi, thats the response:
Status: 404 Not ...
-1
votes
1
answer
184
views
Adding web interface/control to c++ application
I have a c++ program on a raspberry pi (headless setup) that records data from an ADC every minute over a period of days and stores them in a file. I want to add an web interface to it that launches ...
0
votes
1
answer
163
views
"FastCGI process exited unexpectedly" intermittently occurring on PDO connect with identical files
NOTE: This is a significant rewrite (and retitle) based on the last couple of days of poking at the problem since posting the original question.
I have a PHP script that used to work but over the ...
6
votes
0
answers
13k
views
Fast CGI Handler not installed in Windows IIS
I am trying to run a Django app with IIS server. Here are my settings:
Windows Server 2019, IIS 10.\
I am following this tutorial.
I am setting up my server and added CGI as shown in the image.
But, ...
0
votes
2
answers
521
views
How does getenv() get the parameters of the http request parsed by nginx?
When writing CGI program for spawn-fcgi, use getenv() to get environment variables, that is, the parameters set by fastcgi_param command in fastcgi.conf. but when I use the env command output on the ...
1
vote
1
answer
146
views
How can I get niginx fastcgi to run requests in parallel?
I'm trying to get nginx to serve more than one connection at a time, with a fasgcgi backend.
This stackoverflow answer might contain the answer, but neglects to say where that option could be ...
0
votes
1
answer
197
views
php-cgi suddenly very slow with minimal CPU on DMZ server
We have a Moodle IIS implementation where the primary data/IIS server is on our LAN, but we also have a public facing IIS server on our DMZ. Until recently, performance when accessing Moodle via the ...