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
0
votes
1 answer

Is it possible to disable PHP slow log per script?

I have one script on my webpage which process a lot of informations and It should be slow. But php-fpm is terminating it, because of slow log. I just see in logs NOTICE: child 26537 stopped for tracing and web server throws me 504 error. I tried to…
StanleyD
  • 2,308
  • 22
  • 20
0
votes
0 answers

PHP shell_exec runs differently in CLI and FPM

I'm going crazy with this... I'm trying to execute electron-pdf to generate some PDFs from a PHP application (using Laravel) and PHP 7.0.23. When running the app with "php artisan serve", which uses php-cli, running the following works fine and…
0
votes
1 answer

Upgrading PHP to 5.5.9

There is an open-source project I want to install on my server, Grav, but it requires PHP 5.5.9. I currently have PHP 5.4.16 installed on a CentOS 7 server running on NGINX. Actually, it is PHP-FPM. So my question is what is the easiest and cleanest…
three3
  • 2,756
  • 14
  • 57
  • 85
0
votes
1 answer

Encoding header for ACCEPT and specifying cache validator for Blob URLs

How do I define Accept encoding headers and cache validator for URLs starting with BLOB? E.g. https://www.xxxx.com/dd403999-770f-49ea-9a97-7d40d20e88eb Server: nginx, php-fpm
0
votes
1 answer

Nginx/PHP-FPM use more than one webroot

I'm faced with a problem with nginx. I'd like to distinct two cases: First if the request URL matches /api/(*.) I want to return api/index.php Otherwise if the URL doesn't match it, public/index.php must be returned. I've tried several solutions,…
0
votes
1 answer

PHP fpm is installed how to configure it with apache?

PHP fpm is freshly installed how can i configure it with apache? netstat -an | grep :9000 i have tried this command but it returns nothing i think I need to configure it with apache first
FULL STACK DEV
  • 15,207
  • 5
  • 46
  • 66
0
votes
0 answers

How to best troubleshoot apache webserver with lot of requests in "being processed" status

I am running a Linux Centos/Plesk box with a medium/high traffic Prestahop e-commerce website. I use the stock-Plesk configuration with PHP 7.0 FPM served by Apache / Nginx as a reverse proxy. I only made some tweaks on FPM pool settings according…
gennaris
  • 1,467
  • 1
  • 11
  • 17
0
votes
0 answers

Nginx timeout for Php-fpm response

I have running Nginx + Php-fpm. Php has limit of max_childs = 20. So, it is able to accept only 20 connections at single time. So, there are 2 questions: How to differentiate Nginx timeouts for waiting for "free" php child with time for waiting php…
Molfar
  • 1,411
  • 3
  • 18
  • 49
0
votes
1 answer

Yii2 Facebook auth success once after PHP restarts, fails afterwards

I'm using facebook login on my Yii2 app by following this tutorial: https://mushtaqtahir.com/blog/2/facebook-authentication-using-yii2-authclient It works without problems for months, but suddenly a problem occured. When I try to login, it give…
Luqman Sungkar
  • 173
  • 1
  • 8
0
votes
1 answer

php docker container not loading php files

I'm launching my php app in a docker container with nginx, php and fpm using docker run -d -p 8080:80 -v `pwd`:/var/www/html --name myphpcontainer formapro/nginx-php-fpm (See formapro/nginx-php-fpm image) It correctly loads app.php in…
Mike
  • 1,296
  • 2
  • 15
  • 40
0
votes
0 answers

How to properly set PATH in PHP

I'm trying to set the PATH environment variable in PHP and am encountering some unexpected behaviour: var_dump(getenv('PATH')); system('echo $PATH'); system('which true 2>&1'); system('PATH="$PATH" which true 2>&1'); results in string(23)…
Tobias Gödderz
  • 321
  • 1
  • 2
0
votes
2 answers

Failed to parse address on mysqli_connect

Background: Converted from EasyApache3 -> EasyApache4 (Cpanel). Went from mpm-prefork/php5.5/dso to mpm-worker/php71fpm/fastcgi. The error message is: Failed to parse address "127.0.0.1:3306:3306" in /home/user/conndb/conndb.php on…
user3144056
  • 41
  • 2
  • 6
0
votes
1 answer

puppet php - why some modules triggered refresh for php-fpm

I faced with issue when some modules triggered refresh (service restart) for php-fpm even if nothing changed. For example: ==> app-server: Notice: /Stage[main]/Php/Php::Extension[igbinary]/Package[php5.6-igbinary]/ensure: ensure changed 'purged' to…
Serge
  • 21
  • 4
0
votes
0 answers

Two Debian Packages each depend on the same package and I can't install both at the same time but I want to be able to

I have three debian packages which will be installed with apt-get. Let's call them X, Y, and Z. Both Y and Z depend on X, but do not depend on each other. If the user wants to install both Y and Z, they should be able to do so. What I would want to…
brant
  • 369
  • 3
  • 8
0
votes
1 answer

unable to install a patched version of GraphicsMagick 1.3.25 on Redhat 6.8

After successfully applying the patch to GraphicsMagick using gnu "patch" i do a configure, make , make install , and use fpm to create the rpm, which i install on a clean VM, but getting error: $gm -version gm: error while loading shared libraries:…
kamal
  • 9,637
  • 30
  • 101
  • 168