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
2
votes
3 answers

Cannot execute npm update when using a specific docker user

I have created a php fpm containers which is associated to the host user, in this way I doesn't have any issues with the file generated within the docker container (eg: when using php artisan make:controller). So I have this docker-compose.yml: …
sfarzoso
  • 1,356
  • 2
  • 24
  • 65
2
votes
1 answer

Why php-fpm is listening on port 9000?

➜ ~ sudo lsof -i :9000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME php-fpm 23153 root 8u IPv4 0xbdb928c0ec095c13 0t0 TCP localhost:cslistener (LISTEN) php-fpm 23154 _www 9u IPv4 0xbdb928c0ec095c13 0t0 …
Shobi
  • 10,374
  • 6
  • 46
  • 82
2
votes
0 answers

Downloading files dynamically using PHP is slow

I have a PHP script like this running on PHP-fpm 7.3:
Patira
  • 65
  • 2
  • 9
2
votes
1 answer

How do I mark a file as config(missingok) in fpm non-interactively?

I've been trying to use fpm to create an rpm, but have ran into a problem. After I install the package, there are files I no longer need which are deleted in a post-install script in order to save space. Unfortunately, when the packages in…
2
votes
1 answer

Nginx, FPM in kubernetes pod - css are not rendered

I am running FPM and nginx as two containers in one pod. My app is working, I can access it but the browser do not render the CSS files. No errors in the console. My deployment file: apiVersion: apps/v1 kind: Deployment metadata: name: test …
rholdberh
  • 475
  • 1
  • 5
  • 19
2
votes
2 answers

Removing "child said into stdout/stderr" prefix from logs in GAE php74 standard environment

I'm running a php74 standard environment in Google App Engine and outputting logs to php://stdout. Unfortunately, all the logs are prefixed with child X said into stdout and all the PHP errors are prefixed with child X said into stderr. Outside of…
Voriki
  • 1,617
  • 2
  • 19
  • 43
2
votes
0 answers

php-fpm process get stuck fetching S3 Objects in CurlMultiHandler

So we use AWS ECS tasks to process our reports in production system. Now it seems that each Sunday, when we process most of these reports some of these tasks seem to get stuck and not do anything. If we restart php-fpm service, problem disappears. I…
kaktusas2598
  • 641
  • 1
  • 7
  • 28
2
votes
0 answers

PHP_FPM error - "oops, unknown child (538) exited with code 0"

I am trying to start up my PHP YII1 framework based application in docker containers. However, PHP_FPM is not properly getting started. After running: exec /usr/sbin/php-fpm -F -c /etc/php.ini --fpm-config /etc/php-fpm.conf within a shell…
arjunbnair
  • 330
  • 7
  • 18
2
votes
3 answers

How to change php-fpm default port?

I'm using php-fpm which runs for default on the port 9000. The problem's that I have other docker container based on php-fpm, so I need to change the default port to another one, in order to not confuse nginx. This is my Dockerfile: FROM…
sfarzoso
  • 1,356
  • 2
  • 24
  • 65
2
votes
1 answer

Laravel Valet 504 Gateway Time-out nginx/1.19.6 after 60 seconds

I followed all the instructions here: https://github.com/laravel/valet/issues/315 I noticed a better performance, especially after updating the PM pool configuration for Valet. (Now some execution started to be completed because the time needed is…
Ponzio Pilato
  • 315
  • 1
  • 5
  • 18
2
votes
0 answers

What is causing a segfault when Opcache file cache is enabled in a symlink deployment?

I'm using PHP deployer which is a symlink based deployment tool which calls opcache:reset after deployment. Recently I'm getting a segfault in my PHP-FPM processes after deployment. This manifests as segfault entires in the PHP logs/memory exhausted…
jamieburchell
  • 761
  • 1
  • 5
  • 18
2
votes
0 answers

How to fix Malformed header from script 'index.php': Bad header: in Laravel 5.6 centos 8 php fpm

My laravel application running successfully in centos 7 but when i upgrade to centos 8 with fpm is giving the issue on this line $response = $kernel->handle( $request = Illuminate\Http\Request::capture() ); From the log i only got this…
Intekhab Khan
  • 1,775
  • 4
  • 18
  • 28
2
votes
1 answer

How to route request url subfolder paths to specific php pages using nginx and php-fpm

I'm using a local nginx server for the first time to set up a website i'm building and i'm having trouble setting up the nginx config to handle url requests the way I want. My website serves multiple php pages as the user navigates through the…
2
votes
0 answers

Why PHP-FPM socket stops allowing connections from Docker after restart?

PHP-FPM is running locally on my Ubuntu 20.04 installation, configured to listen on a socket: /etc/php/7.4/fpm/pool.d/www.conf: [www] user = www-data group = www-data listen = /run/php/php7.4-fpm.sock listen.owner = www-data listen.group =…
matheusb.comp
  • 123
  • 2
  • 10
2
votes
0 answers

php-fpm does not access env var

I want to expose env vars defined in /etc/environment to php-fpm. I turn clear_env = no in /etc/php/7.3/fpm/pool.d/www.conf but this as no effect. I also tried to source /etc/environment in /etc/init.d/php7.3-fpm: no effect! How to expose env vars…
ben.IT
  • 1,490
  • 2
  • 18
  • 37