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
1answer
26 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, ...
0
votes
0answers
15 views

how to know if nginx is serving the page I request?

I setup a centOS7 virtual machine as a local environment that maps to 192.168.33.10. Accessing the 192.168.33.10 or 192.168.33.10/index.php doesnt have a problem. Also, when I access 192.168.33.10/...
0
votes
1answer
21 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, ...
0
votes
0answers
7 views

FastCGU, PHP: File Exists and not expired, serializing

I get strange erors in my nginx error.log and I have no idea why: 2020/04/21 12:46:23 [error] 16715#16715: *4285612 FastCGI sent in stderr: "PHP message: File Exists and not expired, serializing" ...
0
votes
1answer
29 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 ...
0
votes
0answers
17 views

Disable FastCGI cache for mobile

I'm using WordPress and different theme for mobile & desktop. FastCGI cache storing only one version. Sometimes it showing desktop version on mobile and sometimes mobile version on desktop. My ...
0
votes
0answers
36 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 ...
0
votes
0answers
70 views

Prestashop on Apache + Nginx as proxy + Fast-CGI - Web Service API error 401

I'm trying to config a PrestaShop on VPS. Everything is working, despite one, web services API. When I'm trying to go https://example.com/api, web services ask me about auth key. After entering it ...
1
vote
1answer
45 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 ...
0
votes
0answers
37 views

Get the FastCGI error to nginx or lua variable

I would like to create a custom error page with the actual error shown within the page. The error shows nicely in browser if there is no error_page defined in the nginx configuration, and I can serve ...
0
votes
1answer
87 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 ...
0
votes
0answers
47 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 ...
1
vote
1answer
118 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 ...
0
votes
1answer
351 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 ...
0
votes
0answers
79 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/...
1
vote
0answers
65 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; ...
2
votes
0answers
148 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/...
0
votes
1answer
44 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 ...
0
votes
0answers
55 views

How to set fastcgi_params_hash_max_size?

On my Ubuntu server running Nginx + FastCGI (via Webinoly), nginx -t throws the following warning: nginx: [warn] could not build optimal fastcgi_params_hash, you should increase either ...
1
vote
1answer
397 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. ...
1
vote
1answer
48 views

nginx rewrite rule to overwrite $uri as well

I have an URL like ^/d/something/(.*)$, what I want to do is rewrite it internally, with no permanent or temporary HTTP redirect, so that $_SERVER['REQUEST_URI'] will have just $1 and not the whole ^/...
0
votes
0answers
118 views

Nginx fastcgi cache is always MISS in Yii2 Application

I am running an Yii2 Application. http://example.com/controller/action/params actually calls http://example.com/index.php/controller/action/params I hide index.php by using following code: ...
0
votes
1answer
101 views

How do I use python fastCGI on dreamhost?

I've been using CGI since 1996 or so, so it's probably time to move to FastCGI or something else. (Flask?) I'm using Dreamhost. I did some googling and found this article, but the article claims to ...
1
vote
1answer
221 views

FastCGI to improve TTFB when Using NGINX to reverse proxy?

I'm trying to improve time to first byte. HTTP2 helped a lot, but TTFB is still between 500-700ms. I'd like to bring it down to around 200. I saw some suggestions to use FastCGI. I have a bit of a ...
1
vote
1answer
154 views

Nginx - rewrite fastcgi_param for one specific route

I want to change fastcgi_param only for specific routes as described below: server { # (...) # PHP entry point for main application location ~ ^/(index|get|static|errors/report|errors/...
1
vote
0answers
20 views

Apache2 executes PHP only implicitly, not when explicitely opened

I am facing a rather strange behavior. I have placed a simple phpinfo test script (see below) as index.php in the root directory of my domain. When I open it as www.example.com in the browser, it ...
0
votes
0answers
60 views

Disable nginx fastcgi cache URI normalization

I have a wordpress website runing on nginx and i have activated fastcgi cache for it. the problem is when a page get cached from nginx fastcgi the key name become like this KEY: httpGETwww....
0
votes
0answers
241 views

PHP is looking for php.ini in C:\php rather than C:\Windows

My monitoring software (Dynatrace) messed up php on my web servers. For some reason all of my IIS websites are loading the php.ini file from C:\php-5.4 instead of C:\Windows. From phpinfo(): ...
1
vote
2answers
591 views

Line breaks in PHP's stack trace in nginx error logs disturbing logstash analysis

I am using nginx with PHP-FPM and ELK as log file analysis. When a PHP script causes an error the interpreter the error will be send back to nginx and nginx puts the error into the error.log file. ...
0
votes
0answers
289 views

Trying to deploy my flask web app using lighttpd

I'm trying to deploy my flask web app using lighttpd. I created this hello.fcgi file #!/usr/bin/python from flup.server.fcgi import WSGIServer from hello import app if __name__ == '__main__': ...
1
vote
0answers
313 views

nginx pfp-fpm - “No input file specified.” when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like ...
0
votes
0answers
45 views

configure nginx for PHP in subfolder

I wish to serve an old app that lives in a folder - the folder contains everything needed - index.html, various .js and a "server.php" backend. index.html works fine, but I get 404 for the calls to ...
1
vote
0answers
212 views

PHP FastCGI reading php flags from .htaccess? How?

I'm doing some changes on a website hosted on a managed dedicated server from Hetzner and I found that somehow some php flags set in .htaccess are passed to PHP running as fastCGI. As far as I was ...
1
vote
1answer
59 views

Does nginx support FastCGI local redirect responses?

RFC 3875 specifies a Local Redirect Response, which, in short says: If the script sends a "Location:" header with a local path (i.e. starting with /, not with a protocol) and a Status Code 200 header,...
0
votes
0answers
108 views

nginx SSL has too many redirects

We have a Wordpress website hosted on a Nginx VPS and we configured an SSL redirect to force visitors to use SSL. After creating that redirect we started noticing that the URL of the website started ...
0
votes
1answer
270 views

PHP FPM .conf per site vs server PHP pool performance tunning

I saw this article how to tune the PHP FPM https://medium.com/@sbuckpesch/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534 this article shows Excel sheet to calculate ...
0
votes
0answers
275 views

fastcgi issue 7.2 with Nginx

Hello My log is blowing up with errors ;( sometimes page takes forever to load 2019/02/01 14:06:23 [info] 880#880: *3090 epoll_wait() reported that client prematurely closed connection while ...
-1
votes
1answer
76 views

NGINX location block to fastcgi process URL segments as URL parameters. How?

I am trying to understand how to get this location block to work as desired. ## TESTING MOD REWITE FROM APACHE... location /beta9/projects/project/ { try_files $uri $uri/ /beta9/projects/project/...
1
vote
0answers
63 views

Does httpd reload always kill child fast cgi processes?

I have a large number of fast cgi scripts on a server and when we deploy new scripts we run a systemctl reload httpd since some of our scripts may have changed or underlying data may have changed. ...
1
vote
1answer
112 views

What can be a FastCGI client?

fcgiweb is a server based on FastCGI protocol. What can be a FastCGI client? Is a CGI script a FastCGI client, or is a web server (e.g. Nginx) a FastCGI client? Thanks.
1
vote
1answer
301 views

Proxy_Cache on NGINX Reverse Proxy and FastCGI_Cache on Upstream NGINX Wordpress Server

I have some questions about caching implementation since most of the resources I have found don’t seem to distinguish between NGINX as a reverse proxy or as a “native” web host. I’ve setup a ...
0
votes
1answer
485 views

Joomla, Nginx, and FastCGI Cache

I'm in the process of moving some Joomla sites that I host onto a LEMP stack from a LAMP stack. I've followed a guide to get FastCGI Cache up and running, and with a single time.php file in the ...
0
votes
1answer
706 views

[alert]: fastcgi request record is too big -Fastcgi receives an error message that the get request is too long

Recently, the program encounter ed a problem, LNMP environment, because PHP in the program spliced GET request uri parameter is too long, resulting in an error, nginx processing uri is too long ...
0
votes
1answer
759 views

Does Nginx show X-Accel headers in response?

I try disabling Fast CGI buffering by setting X-Accel-Buffering: no header but don't see this header in Nginx response. Is it by design or there's something wrong with my Nginx config? I don't have ...
0
votes
1answer
49 views

Nginx redirects all websites to another website

I've been facing some weird issue. I have 2 WordPress websites installed on my server. I will call them, example1.com, example2.com All 2 websites run on Nginx, PHP-7.2, MariaDB and Ubuntu 18.04. ...
1
vote
1answer
53 views

Nginx and FastCGI Configuration issue

I am running WordPress Multisite/Network and would like to have FastCGI keep the cache for an extended period of time (say a week or month). Reason being, we have a plugin that forces the cache to ...
0
votes
1answer
5k views

Configuration change for Apache + PhP-FPM 7.2 necessary?

Until now, I was using Ubuntu 16.04.5 Server with Apache, Nginx as a reverse proxy, PHP 7.0 + FastCGI + FPM, everything updated to last version. Everything went fine. This is one Apache virtualhost, ...
0
votes
1answer
79 views

nginx/php/fastcgi: php files from secondary directories not evaluated as php

I'm running nginx-1.14.0 with php-fpm7.2. When I access php files that are resident in the root, they are properly sent through fastcgi and their php gets properly evaluated. However, when I access ...
1
vote
2answers
2k views

Unable to write in the cache directory Symfony 3.1

/var/log/nginx/app.local_error.log: 2018/09/13 11:25:20 [error] 20627#0: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught RuntimeException: Unable to write in the cache ...
1
vote
1answer
128 views

How does nginx pass environmental variables to fast_cgi handlers like php-fpm?

With CGI a new process was made per request with the environmental variable available and input output went through stdin/stdout With fast cgi one process handles many request over its lifetime, ...

1
2 3 4 5
14