Questions tagged [fastcgi]
FastCGI is an optimized implementation of the CGI interface that aims to reduce the processing overhead for each CGI request on a webserver.
1,981
questions
2
votes
0
answers
19
views
How to pass rewritten url to fcgi in lighttpd
I have a redmine instance that runs in the /redmine sub-uri. This is fully working and I can retrieve /redmine/robots.txt without fault.
Adding
url.rewrite = ( "^/robots\.txt$" => "/...
0
votes
0
answers
21
views
How to deny file download [closed]
I'm making a web server and some files are in "/share/download". And I found that anyone can download file using "xxx.com/share/download/filename".
My webserver is lighttpd+FastCGI(...
0
votes
0
answers
30
views
Url decoding problem on deployment with IIS and FastCGI on windows server
I realized an app front Angular, back-end Django, deployed on Windows server using IIS and FastCGI.
This app serves media files on a certain URL. It works fine locally on dev server.
I can access all ...
-2
votes
0
answers
17
views
sqlservr not loading into phpinfo on Winfows 2016
I have tried various solutions on the web, but non work.
I have installed Microsoft Drivers 5.10 for PHP for SQL Server.
I'm using FastCGI. And I have ( I tried it with the"_x86.dll" this ...
1
vote
1
answer
35
views
Wordpress error 404 in migration from Apache to Nginx
I have a working WordPress installation on an Apache server and wanted to migrate to an NGINX server on a VPS. I've copied all the files, set up the MSQL connection, etc. and everything seems to work ...
0
votes
0
answers
28
views
Why is our FastCGI/IIS MaxInstances setting is not being honored? Getting only two process instances when we want 16
Python.exe as target app. Running FastCGI under IIS, single worker process.
We have configured for 16 maxInstances( = number of cores as the app is CPU-bound) which was working great and suddenly it ...
0
votes
0
answers
16
views
How to solve issue with FastCGI: "Error reading data from FastCGI server"
My application contains some heavy processes (heavy db queries like
insert/update/delete queries by doctrine) and in some cases I get the following errors on the MySQL NGINX + PHP 7.4:
[Fri Apr 15 03:...
0
votes
0
answers
7
views
Ubuntu 22.04 php8.1-fpm wifth Apache - 403 Forbidden You don't have permission to access this resource [migrated]
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 ...
0
votes
1
answer
24
views
Why would the App Pool memory use be high for FastCGI
I wrote a FastCGI server application which seems to work great. The end user tells me that they usually have about 10-12 instances of my exe running using 11-32MB memory. That is perfectly reasonable ...
0
votes
1
answer
44
views
Cannot find php-fpm.conf
I use php-fastcgi via nginx on Ubuntu 21.10, and I want to set the log_limit php-fpm directive to 8000 for my PHP logs not to be truncated, but I can't find php-fpm.conf anywhere.
The closest file I ...
0
votes
0
answers
173
views
Nginx - Upstream prematurely closed connection while reading upstream
I have a setup with Ubuntu 20.04, Nginx.
I have a wordpress site, which I built an API endpoint.
This API endpoint is quite large, which is possibly the reason why I am getting a 502 Bad Gateway. ...
0
votes
1
answer
18
views
How to run different web pages in C++ and FCGI on Nginx?
I follow the following tutorial to create a web page with C++ and FCGI running on Nginx.
http://chriswu.me/blog/writing-hello-world-in-fcgi-with-c-plus-plus/
After I run the following command lines, ...
0
votes
0
answers
49
views
Nginx reporting upstream sent too big header while reading response header from upstream
I am running a php-fpm application behind nginx, and sometimes I am getting 502 responses with the message "upstream sent too big header while reading response header from upstream". I have ...
0
votes
1
answer
125
views
Nginx and PHP 8.1, empty QUERY_STRING
Issue: Laravel's controller gets a request with an empty array of query parameters, though it should contain one.
Configuration:
Laravel Version: 9.5.1
PHP Version: 8.1.4
Database Driver & ...
1
vote
0
answers
55
views
Nginx + fcgiwrap , Perl cgi. Slow upload when buffering is Off
I have the web app created with Perl. One of functions is upload of big files. Originally the app worked with apache. It worked fine.
The core thing of the app is that there is no any buffering in ...
0
votes
0
answers
33
views
IIS flask stream video freezing
i am working on web app to control material on correct positions. All cameras are on Rpi zeros where running UV4L streaming server (stream working 24/7 without any problem). Flask runs on win server (...
0
votes
0
answers
16
views
How can I log a fastcgi_param value on the NGINX access log?
I was hoping to log a fastcgi_param on my NGINX access logs, similar to this:
fastcgi_param LOG_PARAM "testing";
log_format main '$remote_addr - $remote_user [$time_local] "$request&...
0
votes
0
answers
86
views
nginx + fastcgi + docker throws 502 bad gateway
I'm trying to run an Nginx with FastCGI in a Docker container to handle request through python script backend.
The problem is that, when I post a request to nginx Docker container, I get 502 bad ...
0
votes
0
answers
68
views
cUrl request after fastcgi_finish_request() don't work with some urls
I have a php script (7.3.33) sending requests to an API (HereGeocodingApi). I use fastcgi_finish_request() for saving datas in MySQL database even if the user is disconnected.
My problem occurs ...
0
votes
0
answers
30
views
How can I do logging in a FastCGI server without slowing it down
I've written a FastCGI server for IIS as a host for the programming language PowerBuilder.
I'd like to add logging to the C++ code but I don't want to slow down the PowerBuilder requests.
I'd like ...
1
vote
0
answers
37
views
PHP FastCGI - can't apply process slot for
I have fastCGI with PHP
However, server runs fine for several hours and then suddenly I have php error log full of:
mod_fcgid: can't apply process slot for /var/www/php-bin/website/php
At the same ...
0
votes
0
answers
47
views
Query string problem occurs when applying fastcgi cache in WordPress
I running WooCommerce on WordPress And to use fastcgi cache, I set it up as below.
In nginx.conf
fastcgi_cache_path /var/run/nginx/seoartgallery levels=1:2 keys_zone=seoartgallery.com:100m ...
0
votes
1
answer
15
views
PHP SOAP Randomly Fails as "Could not connect to host" after working for days/hours
We have three web applications, on separate servers with unique inteneral/external IP addresses. Each server is running Windows Server 2016, IIS, and PHP 7.x via FastCGI.
We're connecting to two ...
0
votes
0
answers
72
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-...
0
votes
1
answer
252
views
PHP 8.1 fastcgi exe is not available in non thread safe version
I'm upgrading my php from 7.2 to 8.1 to be used with IIS FastCgi.
When I download Non Thread Safe version from below url, as recommended by PHP for IIS FastCGI, the php-cgi.exe is not available in the ...
0
votes
0
answers
23
views
Nginx FastCGI - Priming the Cache
I've been trying to hit one of our internal sites with curl or wget, so that I can prime its cache. It's using fastcgi_cache, which is working just fine as long as I'm hitting URLs through the browser....
0
votes
0
answers
17
views
How do Application Pool settings effect a FastCGI application
I developed a FastCGI application using libfcgi to run PowerBuilder code in IIS.
It works quite well. It runs under the account of the Site Application Pool. I am wondering if any of the 'Advanced ...
0
votes
2
answers
174
views
How can I troubleshoot a 504 timeout error using Magento, Apache, PHP-FPM, and Varnish?
I have a Magento website and am trying to start a backend process in the admin panel (in my browser) that, when submitted, warns you that the process "can take a long time". Whenever I hit ...
0
votes
1
answer
42
views
NGINX/FastCGI config issues causing 404s
I'm currently trying to configure a Wordpress Multisite using NGINX. The NGINX config test passes:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/...
0
votes
1
answer
274
views
Cloud run fails to serve complete file - client_disconnected_after_partial_response
We have problem in our PHP application that runs in GCP Cloud run.
Environment: PHP 8 (nginx php-fpm) in docker - official image "php:8.1-fpm".
There are certain files that are failed to be ...
0
votes
1
answer
121
views
Nginx return 404 when executing script
I have the php script in en /var/www/myproyect/public/scripts/myscript.php
I'm using php 7.4 with nginx and php-fpm
The file exists, if I open a txt it opens it without problem,
but when it is a .php ...
0
votes
0
answers
62
views
Can't configurate Lighttpd with Php on Ubuntu 18.04
The server works just fine when I run it as it is but editing something in lighttpd.conf (like changing the error log path) and restarting the server cuases this error:
● lighttpd.service - Lighttpd ...
0
votes
0
answers
89
views
Nginx -- Further configuration required
I'm a complete nginx noob, so I apologize in advance for whatever necessary details I'm leaving out of this question.
I've got my server set up, and my localhost is displaying the "Welcome to ...
1
vote
0
answers
58
views
Fortran weird behavior when writing a string
I am using fortran with sqlite3 and fcgi.
I have the following allocatable string that is being passed to a subroutine:
type(c_ptr) :: db
integer ...
1
vote
1
answer
482
views
nginx 502 error in POST request when uploading file in API 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:
I'm getting 502 bad gateway error ...
0
votes
1
answer
53
views
Stream network problem on php5.6-fpm with ftp_put()
i'm going mad with this php script: before switching to php5.6-fpm it always worked (before that i used apache2 mod_php), now, when i upload a file and set up the ftp connection to the other server in ...
0
votes
0
answers
30
views
500 Internal Server Error for php file (not for html) after installing SSL
After installing SSL on the server, the .php files stopped working and gave an error 500:
https://freshfinance.pl/empty.php
HTML works fine:
https://freshfinance.pl/
I have 2 entries in error.log:
[...
0
votes
0
answers
22
views
webserver serves post content in chunked encoding
I have a question about web server (Nginx, Apache, etc)'s ability to serve posted content in chunked encoding.
Suppose we have two clients. Client 1 is posting chunked encoded content to a web server, ...
0
votes
1
answer
65
views
Fastcgi params configuring owncloud with nginx
So there's a site and I'm configuring my Ubuntu server. I've done it once about 2 years ago but a lot has changed a lot since then. For example, there's php8.0 now and owncloud doesn't support it yet. ...
1
vote
0
answers
307
views
How to configure nginx in Docker on alpine with perl to run CGI files?
I try to start a project where I need to configure Docker to run Perl CGI files with nginx.
Now I have this docker-compose.yml file:
version: "3"
services:
httpd:
image: 'nginx:stable-...
1
vote
0
answers
33
views
Error uploading file over a certain size: '"Not enough space" while reading response header from upstream'
I've recently encountered this error while uploading files to my server which are over a certain size.
It is preceded by a warning which happens whether the error is encountered or not (i.e. the ...
0
votes
1
answer
54
views
What is the meaning of "multiplexing" in FastCGI?
Appendix B of the FastCGI specification gives an example of multiplexing, where the unindented lines are the sent by the client (e.g. Nginx), and the indented lines are sent by the FastCGI server:
{...
0
votes
0
answers
32
views
PHP flush not working on centOS with Apache
I have a centOS 8 server with Apache FPM/FastCGI as webserver.
I want the output to be seen right after each echo.
I tried setting output_buffering = Off in php.ini and used below code:
...
0
votes
0
answers
82
views
Error when using FastCGI mono and nginx to deploy asp.net application
I'am trying to host an asp.net website on linux (centos7) environment with nginx webserver.
I am following this link: https://www.mono-project.com/docs/web/fastcgi/
My problem is that I couldn't even ...
2
votes
2
answers
926
views
"wfastcgi-enable" showing "Ensure your user has sufficient privileges and try again." How to resolve this?
While trying to run "wfastcgi-enable" to deploy my Django code on IIS, it's showing this error:
ERROR ( message:New application object missing required attributes. Cannot add duplicate ...
0
votes
1
answer
273
views
Nginx PHP-FPM access logs shows 127.0.0.1
I'm using Nginx and passing all requests for .php to PHP-FPM.
How do I get PHP-FPM's access logs to show the real client ip address instead of 127.0.0.1?
php-fpm-access.log
127.0.0.1 - 25/Sep/2021:18:...
5
votes
1
answer
141
views
Why is function http_response_code() acting strange that was called after function header() in PHP?
Well. I have a problem with http_response_code(), and I can't find an explanations.
If I use header() before http_response_code(), PHP returns HTTP-status which was set by header() and ignores any ...
0
votes
0
answers
112
views
Fastcgi cache purge with Cloudflare Geoip
I have been trying to show different currencies to my clients based on their country IP address with the help of cloudflare geo tagging, I got it working and now each country sees the correspondent ...
0
votes
0
answers
21
views
Writing application server daemon with mod_proxy_fcgi and nginx proxy_pass
I start to write a daemon (linux), which listen for requests via mod_proxy_fcgi or nginx proxy_pass.
A similar application is php-fpm. My daemon is something like c-fpm, talking with specific other ...
0
votes
0
answers
36
views
Fastcgi cache is throwing 404s for non cached pages
I'm new to Nginx but I'm really enjoying the power it offers and the full control of my web server. I'm facing a very strange problem with fastcgi, I enabled it and I wrote the path for the cache ...