Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fastcgi]

FastCGI is an open interface web servers can use to execute applications in a secure and isolated manner.

1
vote
1answer
11 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
18 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
65 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 ...
-1
votes
1answer
34 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
69 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
0answers
53 views

Adding HTTP_X_FORWARDED_FOR to Apache-server (FastCGI)

I have setup a VPS, using Webmin/VirtualMin. This server is behind a proxy, so $_SERVER['REMOTE_ADDR'] is returning the IP of the proxy (an internal IP-address), and not the IP for the visitor. The ...
0
votes
0answers
35 views

why wordpress site throwing php-cgi error on menu pages

I am hosting a few wordpress sites on a windows server. php 7.2.0 64 bit (MSVC15 (Visual C++ 2017)) is installed on this server. Recently I moved a site from linux hosting to this windows server. site'...
0
votes
1answer
40 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
20 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
0answers
90 views

wordpress 500 (internal server error) sending request to load-scripts.php

I'm facing a problem for days now, Each time I try to edit a page with Thrive Architect I get 500 (Internal Server Error). I get this on the page: Internal Server Error The server encountered an ...
0
votes
1answer
711 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
46 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
257 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
56 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
vote
1answer
366 views

FastCGI: Unable to open primary script on NGinx and PHP-FPM

I am apparently not the only one with this problem, but after trying every suggested solution for couple I reached I point where I don't know what to do. I am running Ubuntu 16.04, NGinx and PHP-FPM....
0
votes
0answers
158 views

How to install actual php7's fast-cgi for apache2

Following a couple of tutorials to achieve the main goal -setting up PHP-FPM on Ubuntu 16 - I also had to install the FastCgi-Module for Apache 2.4.18 with apt-get install libapache2-mod-fastcgi. ...
0
votes
0answers
64 views

PHP under IIS FastCGI - How to determine the best values for InstanceMaxRequests and PHP_FCGI_MAX_REQUESTS

I'm running PHP 5.4 (yes, I know it's old and needs to be upgraded) as a FastCGI component in IIS 8.5 on Windows Server 2012 R2. While I was tuning the settings I read the https://docs.microsoft.com/...
0
votes
0answers
424 views

Can't get PHP to parse with NGINX/FastCGI/PHP

So I spent the better part of last night trying to get my ec2 instance setup with nginx and php7.2. I got everything installed and I edited the server block in my nginx.conf with the values I thought ...
0
votes
0answers
58 views

Repercussions of setting the IIS responseBufferLimit to = 0

I'm running a PHP application (Moodle) under FastCGI in IIS 8.5, Windows Server 2012 R2 and PHP 5.4. There are two VM server nodes in the setup using an F5 load balancer. I am using Wincache for the ...
1
vote
0answers
208 views

Apache 2.4 with php-fpm ignores .htaccess

I have a VPS server with Apache, FastCGI and php-fpm installed. But, the .htaccess files seems be ignored. I have a .htaccess file that redirects http URLs to https URLs: <IfModule mod_rewrite.c&...
0
votes
0answers
244 views

trouble with installing fastcgi_cache_purge ubuntu 16.04

So I'm trying to install fastcgi_cache_purge which is supposely a third party module https://github.com/FRiCKLE/ngx_cache_purge from https://www.nginx.com/resources/wiki/modules/ but this would ...
-1
votes
1answer
206 views

W3-total-cache with nginx fastcgi cache at same time?

Can anyone tell me how do these two cache work together? How does nginx know what cache to pull from first? what to ignore? or does it pull both? thanks in advance.
0
votes
1answer
308 views

Nginx/php-fpm timeouts

I have a setup that consists of a load balancer, two web servers running nginx/php-fpm7.1 and a database server running mariadb. For the past few months I have been struggling to work out the cause ...
0
votes
1answer
128 views

Nginx confusing $fastcgi_script_name with $fastcgi_path_info

Here is the relevant part of my Nginx configuration file: http { log_format fastcgi '$remote_addr - $remote_user [$time_local] "$request" ' '$status $...
0
votes
0answers
17 views

FPM/FastCGI where to change the max execution time for scripts

First of all i created a stack with easyengine.io on hosted on Google Cloud => Compute Engine (VM Instance) I am running FPM/FastCGI. Can somebody tell me where to change the max execution time for ...
1
vote
1answer
91 views

Apache2 proxy fastcgi conditional rewrite with proxy pass match and cookie

I currently have two projects: /home/piotrek/Vhosts/sf.local/web/app_dev.php /home/piotrek/Vhosts/sf2.local/web/app_dev.php Both have same repo but are set to two different branches. I have vhost ...
0
votes
0answers
23 views

nginx $fastcgi_file_name not set?

After googling for info on fastcgiwrap, I came to the conclusion that ths following config should work: location ~ /sec-bin/.+\.pl$ { gzip off; include /etc/nginx/fastcgi_params; ...
0
votes
0answers
33 views

URL Parameters do not appear in PHP info under Query_String

There is an issue on my server at the moment where I input: http://example.com/phpinfo.php?test=1 On the PHP Variables, it should appear with "test=1" beside "_SERVER["QUERY_STRING"]". The server ...
0
votes
1answer
57 views

PHP script path inconsistencies on nginx with multiple server root paths

I'm struggling a bit with some nginx configuration. Essentially I have one filesystem folder (/remote) that hosts web content at /, but on top of this I want virtual paths /w and /wiki that will host ...
0
votes
0answers
104 views

How can I force fastcgi / php-fpm to refuse connections once it reaches it's capacity?

I'm trying to figure out how to refuse / return a HTTP failure response if the php-fpm reaches it's maximum concurrent requests. I've set listen.backlog to 0, however this still seems to 'queue' ...
0
votes
1answer
75 views

Nginx how to disable fastcgi retries

How can I disable any retries from occurring with fastcgi? I've set: fastcgi_next_upstream off; fastcgi_next_upstream_tries 1; within the nginx config. Here are some nginx logs: php_1 | 172.20.0....
3
votes
1answer
517 views

Howto return 502 error code instead of 404 when PHP-FPM fails

My server configuration looks like this: Nginx1 (proxycache) <---------> Nginx2 <-> PHP-FPM When PHP-FPM fails because of the process is down ( errorconnect to unix:/run/php/php7.0-fpm.sock ...
0
votes
0answers
42 views

Phabricator keeps dying with PhutilTypeCheckException

My phabricator server is dying from time to time with the following log: [Tue May 22 14:58:55.336308 2018] [:error] [pid 4531] FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: [2018-...
0
votes
1answer
101 views

Multiple Projects under single Domain Nginx

I have two projects with the different path locations that need to be configured under a single domain with separate upstream PHP 7.1 and HHVM. I am trying to achieve the goal with nginx alias ...
1
vote
0answers
49 views

How can I determine a reasonable value for pm.max_children in dynamic mode?

I really don't understand the purpose of this variable - what exactly is the purpose of it? To prevent the exhaustion of ram? It seems ineffective as each request could use a variable amount of ram up ...
0
votes
0answers
135 views

smokeping, mod_proxy_fcgi and CentOS 7

Trying to configure smokeping on a CentOS 7 box that already uses httpd24 Apache web server. All the docs about smokeping say to use mod_fcgi, but my httpd24 setup doesn't have that mod anymore and ...
0
votes
0answers
50 views

How to determine the correct value for FastCGI Buffers?

I am using LEMP + Wordpress, and I am not sure what numbers should I set for the below directives? fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size ...
0
votes
1answer
235 views

Changing PHP_FCGI_MAX_REQUESTS

I cannot find the location of the conf file where I can change the value of PHP_FCGI_MAX_REQUESTS. Info about the system: Debian, php7, FAST-CGI, Apache 2.4, Plesk Onyx 17. There are similar ...
1
vote
0answers
184 views

Wordpress won't load after updating PHP to 5.4, gives FastCGI Error (Windows)

I'm having a lot of problem here trying to start the development of a new website. We have an external host running on Windows (our client already have a website on the root - we end up not having ...
0
votes
1answer
37 views

different permissions running script from web browser or www-data user

I want a perl to write to my server's file system but I have a problem. It fails when checking permissions (with -w). I reduced the issue to its simplest expression : #!/usr/bin/perl print "Content-...
0
votes
1answer
54 views

Nginx Rewrite Rules - multi-location PHP

One down, one to go! I fully understand everything that was wrong with my config before and would like to thank Cemal over at Stack Overflow once again. The /location/ is now displaying index.php. ...
1
vote
1answer
264 views

NGINX PHP FastCGI multiple locations (alias) issue

First time posting and very new to all this - was advised to try here over stack overflow and have read a few different things linked but just cannot get my head around it. After alot of trial and ...
1
vote
2answers
651 views

Why FastCGI and C in Nginx instead of PHP?

I want to run a (compiled) C program every time Nginx receives a request for a URL, say https://myserver.com/programs/my-C-file. More specifically, when a PR in GitHub is merged, I want a hook to ...
0
votes
1answer
218 views

nginx - PNG files going through fastcgi?

While facing the following error below I noticed that it appears the PNG file is going through fastcgi. I'm not very familiar with nginx, but it seems wrong to me. I did try putting some PHP code in ...
0
votes
1answer
134 views

Nginx global conf for running php scripts

To configure Nginx to process a PHP app, one can create a dedicated conf file under sites-available and then create an according symlink under sites-enabled, but I don't want to use this method - I ...
1
vote
1answer
2k views

How to use AddHandler in httpd 2.4 for php-fpm version change

I have the following setup for httpd 2.2 (CentOS 6) with mod_fastcgi and php-fpm: LoadModule fastcgi_module modules/mod_fastcgi.so <IfModule mod_fastcgi.c> AddHandler application/x-httpd-php71 ....
0
votes
0answers
118 views

Haproxy total time increases

I have deployed haproxy as layer 7 loadblancer for ssl and 5 backend app sevrers running nginx on with fast-cgi cache enabled. This is the stats page looks like. I am bit confuse about the latency ...
0
votes
0answers
295 views

Lighttpd running FastCGI script hangs and give 500 internal error

I'm attempting to use lighttpd and fastcgi to run a small flask application. When I try to start lighttpd, it starts the server just fine, but when I try to connect in the browser, it hangs without ...
1
vote
1answer
1k views

Can't get nginx to run php on ubuntu 16.04 server

I am setting up a server running nginx and I'm trying to get it to run php scripts. Apparently the greatest article on how to get nginx to run php is this one: https://www.digitalocean.com/community/...
2
votes
0answers
443 views

Apache 2.4 + PHP-FPM + Chromelogger (how to increase HTTP header length limit?)

I have a running Apache 2.4 + PHP-FPM setup. There is one edge case though, when this setup fails - when using Chromelogger. Chromelogger is a server to client debugging tool, which sends it's data ...