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

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. What I'm noticing is that the fast cgi scripts…
Sean
  • 143
  • 5
1
vote
1 answer

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.
Tim
  • 1,487
  • 6
  • 28
  • 43
1
vote
1 answer

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 refresh when there are changes, a user can manual…
Kalman
  • 71
  • 1
  • 4
1
vote
1 answer

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, for, say, x.com:
Karls
  • 33
  • 1
  • 7
1
vote
2 answers

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 directory (/var/www/app.local/var/cache/prod) in …
Viking777
  • 21
  • 1
  • 4
1
vote
1 answer

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, therefore, its environmental variables aren't specific…
1
vote
3 answers

PHP FastCGI SAPI: Reloading PHP Configuration

I am using PHP FastCGI SAPI on my web hosting environment to run PHP applications. To spawn FCGI processes I use spawn-fcgi helper program. My problem is whenever I make a change to php.ini file, I have to kill and respawn each FastCGI server for…
Emre Yazici
  • 587
  • 6
  • 12
1
vote
1 answer

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…
luisdev
  • 143
  • 1
  • 6
1
vote
1 answer

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 for first site: ServerName…
piotrekkr
  • 226
  • 2
  • 9
1
vote
0 answers

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 to the maximum. If I need to process 10…
Chris Stryczynski
  • 1,566
  • 2
  • 20
  • 25
1
vote
0 answers

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 control over the server environment). I installed…
1
vote
1 answer

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 error and looking my location blocks currently look…
PBX
  • 11
  • 4
1
vote
1 answer

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…
john-jones
  • 85
  • 14
1
vote
1 answer

mod_rewrite rule for query string on a ScriptAlias location

Setup: a QGis-2.18 Server (really an embedded MapServer) instance via FastCGI in Apache-2.4.18 on Ubuntu. If a certain value is set in the query string for the cgi handler, I would like to add another value. To that end, I have added three lines to…
kthy
  • 113
  • 5
1
vote
1 answer

Why does Apache set Content-Language header for PHP FPM with mod_fastcgi?

I have a very weird problem with PHP FPM in combination with Apache and mod_fastcgi. Whenever a PHP file is requested, Apache adds Content-Language: de to the response headers. For the life of me, I cannot figure out why this is happening! I'm using…
user2323470
  • 183
  • 4
  • 9