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
5
votes
0 answers

ECS task failing container health checks under heavy load due to PHP FPM

We are having problems with our containers in our ECS service. The purpose of this service is to receive data and save it to s3. Service is running fine until it is being used in production and healtcheck start failing. For our healthcheck we use…
kaktusas2598
  • 641
  • 1
  • 7
  • 28
5
votes
2 answers

Google Cloud Run website timeouts when content length is between 4013-8092 characters. What is going on?

This issue happens on a pure PHP files served by Nginx & PHP-FPM. I've stumbled upon this issue while developing my website using Symfony but the problematic content length range is 3702-15965 for that (I wonder why it's different than vanilla…
Taylan
  • 3,045
  • 3
  • 28
  • 38
5
votes
2 answers

Apache and php-fpm doesn't work for script name with forward slashes

I'm having a problem with one website after moving it to another server. Old one wasn't using php-fpm, new one does, and so far I didn't have any problems related to that when migrating other websites. The thing with this one is that it uses weird…
5
votes
2 answers

How to run cron jobs inside php-fpm-alpine docker container?

Hi I don't know how can I run a cron job inside this container. I've found this: How to run a cron job inside a docker container But that overrides the CMD, I don't know hot to keep php-fpm working
Pedro Brost
  • 1,402
  • 1
  • 14
  • 25
5
votes
1 answer

Reloading php-fpm after deploy via php-deployer without password

What I'm trying to achieve is, to reload php7.2-fpm service via php-deployer. According to php-deployer's documentation, it can be done like the code below: task('reload:php-fpm', function () { run('sudo /usr/sbin/service php7-fpm…
Siamak Motlagh
  • 5,028
  • 7
  • 41
  • 65
5
votes
0 answers

nginx + wordpress in subfolder + debian configuration

In a subfolder on a domain I want to install a wordpress blog. I use nginx. The URL to access the blog should be like this: example.com/blog site config looks as follows: server { listen 80; listen [::]:80; root…
beta
  • 5,324
  • 15
  • 57
  • 99
5
votes
3 answers

502 Bad Gateway when installing PHP7.2 on nginx

So i installed LEMP (nginx, mysql, php..) by following the digital ocean guide. But ubuntu 16.04 only comes with php7 by default and i need greater then 7.1 to run Laravel. I am confused on why every time i replace php 7 with php 7.2-fpm from…
user7995285
5
votes
1 answer

How do I get a list of all php fpm pools from command line?

We run our own monitoring, manager panels and python fabric scripts. I cannot find any native method apart from a "ps" output parsing [1] commandline fu. The more pool information retrieved the better (user, stat, timeout, ...) The first plan is to…
n3storm
  • 704
  • 8
  • 21
5
votes
0 answers

Running MAMP with PHP-FPM?

I'm using MAMP to develop locally on PHP. On my production server, I have PHP-FPM running so I can use things like fastcgi_finish_request();, etc. For some reason, I just can't get it through my head how to get PHP-FPM running on MAMP. Is this even…
Yurgen H.
  • 51
  • 3
5
votes
1 answer

mysqli not found in (php-fpm) docker container

I'm running php:7-fpm in a docker container that is used by my nginx web server. Everything is working nicely except for when I'm trying to instantiate a mysqli connection in my PHP code. I receive the following error: "NOTICE: PHP message: PHP…
littleK
  • 19,521
  • 30
  • 128
  • 188
5
votes
1 answer

PHP-FPM unable to override error_reporting?

I have a problem that's driving me crazy in the last couple of hours: I can't override the default value of error_reporting directive on my development machine (Debian 8 + php-fpm 5.6.29 + Nginx/1.6.2) The php packages i'm using: $ dpkg…
Strae
  • 18,807
  • 29
  • 92
  • 131
5
votes
2 answers

Why does php-fpm ignore permissions defined for supplementary groups?

I have a user on my Linux machine ("php") that is a member of two groups. The primary group is "php" and a supplementary group is "www". I have a directory on my Linux machine (/home/www/public/wp-content/uploads) whose user is www and whose group…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
5
votes
1 answer

Set a custom install directory when making a deb package with fpm

I'm using fpm to create a deb package, but when I install that deb package, it is installed into the wrong location, my fpm command is: fpm -f -s "dir" -t "deb" -a "all" -n "my_project" -v 1 -C "/tmp/tmpjWTuVp" /tmp/tmpjWTuVp/my_project The folder…
farridav
  • 933
  • 8
  • 18
4
votes
1 answer

die() is not stopping code from executing

the problem is in the following: echo 'Hello...'; die('I died...'); echo 'HAHAHA!!!'; on the web browser it is executing the echo after the die(). on the CLI stops on the die() and does not shows the echo as expected. My Specs: PHP 7.4 (FPM) web…
ASCrespo
  • 79
  • 7
4
votes
2 answers

Why do we need to map the project files in both PHP-FPM and web server container?

I am pretty new with all of this docker stuff and I have this docker-compose.yml file: fpm: build: context: "./php-fpm" dockerfile: "my-fpm-dockerfile" restart: "always" ports: - "9002:9000" …
HarryFlopper
  • 195
  • 1
  • 2
  • 10
1 2
3
33 34