Questions tagged [fpm]

FastCGI Process Manager - an alternative PHP FastCGI implementation with some additional features

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

More information can be found on http://php-fpm.org.

503 questions
4
votes
2 answers

Use Docker env vars with PHP 5.2.x

I have inherited some code that was written with PHP 5.2, and rather than installing myself, I have it running in a Docker container. This system also depends on MySQL, so using Docker Compose and extracting the database credentials to a more…
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
4
votes
2 answers

How to UNinstall php7.2-fpm WITHOUT installing Apache 2 (on a LEMP machine)

This may sound stupid, but my weird configuration seems to force an Apache2 installation when attempting to uninstall php7.2-fpm! (I use nginx and the last thing I want to see on my server is an Apache installation...) Here is the scenario: I'm…
Gwyneth Llewelyn
  • 796
  • 1
  • 11
  • 27
4
votes
1 answer

How to use PHP-FPM with aliased directories

I am experimenting with upgrading my Centos 7 server from PHP5 to PHP7, and it appears that it's also advised to use the fpm approach as well (which I'm new to). On my test server, I've installed PHP7.3 no problem, and PHP-FPM. And adding the…
Phil Evans
  • 790
  • 9
  • 18
4
votes
0 answers

Is there a way to filter out some requests from php-fpm access logs?

I am setting up a server with nginx and php-fpm and am looking for a way to prevent some requests from being logged in the fpm access log. I have set up fpm access logs using the access.log directive in fpm.conf. Something like the solution…
sabs
  • 41
  • 3
4
votes
1 answer

How to get PHP-FPM status via CLI or pure FastCGI

I want to get PHP-FPM /status?full page via CLI. In one command, or with a bash script, I need to display the most verbose output that the PHP process manager can return but without using nginx or apache. I'm using a unix socket located in…
Yann C.
  • 1,315
  • 12
  • 17
4
votes
0 answers

Nginx+PHP-FPM occasionally returning 502

This has been asked many times, but none of the answers helped. After hours of digging, I am turning here for help. I am a developer with limited sysadmin experience, but because our ops person left, I am left to try and keep things alive. On one of…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
4
votes
2 answers

IDE debugging with Docker, nginx, PHP7-FPM and Xdebug

I'm currently preparing a development stack on macOS with docker-compose to be able to use Xdebug (Port: 9009) on PHP7-FPM (Port: 9000) and nginx (Port: 80) server. Apparently the configuration is OK, but I am not able to debug through the…
Thiago Pereira
  • 594
  • 13
  • 25
4
votes
2 answers

CakePHP Internal Server Error only for some users, gone after clearing cache

Some of my users that use Google Chrome or Firefox experience an Internal Server Error, once they clear their cache for my website, the error disappears. I had this issue over a year ago but switching to a different hoster "fixed" it, but now the…
Christian Strang
  • 8,470
  • 5
  • 42
  • 53
4
votes
1 answer

PHP-FPM unknown caller in gdb backtrace

I'm debugging a segfault in my php app, I compiled php with --enable-debug option and after php-fpm dumped core during the segfault, I run: $ gdb /usr/local/sbin/php-fpm core GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation,…
chingis
  • 1,514
  • 2
  • 19
  • 38
3
votes
3 answers

PHP-FPM does not start after container creation

I made a Dockerfile, but when I run it and enter the container, the php8.0-fpm service is not running. How do I make it run at build time? Note that I run the command service php8.0-fpm start in the Dockerfile and even then it is not running. What…
Daniel Fulgido
  • 97
  • 2
  • 13
3
votes
1 answer

Configure nextcloud-fpm docker-compose with bare metal nginx

I'm trying to install Nextcloud on my server. The nginx service is installed directly on bare metal (Ubuntu) I starting from the docker-compose found at …
NotGael
  • 66
  • 1
  • 9
3
votes
1 answer

Why is the opcache not flushed?

I use the guzzlehttp/guzzle package in Laravel 8. After upgrading to PHP 8, I get: Symfony\Component\ErrorHandler\Error\FatalError: Invalid opcode 117/2/0. in file ../vendor/defuse/php-encryption/src/Core.php on line 412 nginx config: server { …
doox911
  • 391
  • 5
  • 18
3
votes
2 answers

Nginx fastcgi always include the request body with the response

I have a strange problem with a nginx-fpm application ( one docker container with nginx and another one with a php fpm). When i post (or put, patch) a request the body of the request is added in the response before the response (this issue appear 70…
Esenor
  • 31
  • 4
3
votes
2 answers

Serving new static files via nginx stored in php-fpm container after update

I have the following containers: nginx:latest myapp container (derived from php-fpm:alpine) Currently I have a dummy project with CI pipeline in place which, build-time, compiles production variant of resources (images/js/css,...). Build files end…
Jovan Perovic
  • 19,846
  • 5
  • 44
  • 85
3
votes
3 answers

Run PHP application in Apache server using PHP-FPM

We have a php application which was running fine using Docker Image : php:7.2-apache-stretch We now have to make use of the below image for better performance and make the application work as it was before . php:7.2.17-fpm-stretch As this…
Bala
  • 1,077
  • 5
  • 15
  • 35