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

PHP Docker container not processing files and serving the source instead

My PHP Docker container is not processing files and the source is being returned instead. The following content is being returned instead of being executed: Output of docker ps, to show that both my containers are running and…
TechFanDan
  • 3,329
  • 6
  • 46
  • 89
3
votes
3 answers

Why browser show Server API for info.html as Apache 2.0 Handler but info.php as FPM/FastCGI?

Environment:centos7+php7.2. I build FPM/FastCGI as the tutorial say. build FPM/FastCGI Show my important configuration in /etc/httpd/conf.d/php.conf. SetHandler…
showkey
  • 482
  • 42
  • 140
  • 295
3
votes
0 answers

Please explain how to use FPM + pleaserun to create a Linux service

My goal is to package a service as deb & rpm artifacts using FPM (v1.9.3). I would like to target Ubuntu 18.04 and Centos 7. The service is comprised of an executable and multiple dll files. The problem: According to FPM documentation I should…
4d50
  • 45
  • 4
3
votes
1 answer

PHP FPM 7.1 socket leak causes NGINX - 504 Gateway Time-out

I use Laravel Forge for spinning up my EC2 environments, which makes a LEMP stacks for me. I recently started getting 504 timeouts on requests. I'm no sysadmin (hence subscription to Forge), but I looked through the logs and narrowed the issue down…
Artur Grigio
  • 5,185
  • 8
  • 45
  • 65
3
votes
1 answer

How does nginx server processes a PHP request?

Can anyone explain the entire process, I have just begun to understand the process. I understand how an Apache server processes the request. How does nginx server processes the request and how is it different from the Apache server?
winter
  • 87
  • 6
3
votes
1 answer

php -v shows cgi-fcgi

I was following instructions to install get to clone a repository and then all of the sudden I started getting "bin/magento must be run as a CLI application" error. When I did php -v, it shows: ea-php-cli Copyright 2016 cPanel, Inc. PHP 7.0.17…
TipoFloe
  • 41
  • 5
3
votes
0 answers

Low php5-fpm performance after deployment / changing php files

we are running nginx + php5-fpm and as part of our deployment process we use a symlink to point to the latest version of our PHP code. In order to avoid problems with changing files when deploying new versions, we use the following nginx-config,…
Tobias K.
  • 286
  • 1
  • 3
  • 11
3
votes
0 answers

Symfony3 database call is taking a long time and it's stopping the entire site from working. How do i close the connection after a certain time?

My server setup is php7.0-fpm and nginx with symfony running on top. I am just using a raw pdo connection $conn = $this->get('database_connection'); $results = $conn->fetchAll("SELECT * FROM myTable"); One of my SQL queries is taking a really long…
Dr. Chocolate
  • 2,043
  • 4
  • 25
  • 45
3
votes
1 answer

PHP not logging script errors in spite of php.ini settings

I'm using PHP-FPM with NGINX and I cannot get error log to work correctly with PHP-FPM. This is my php.ini, the relevant part: error_reporting = 'E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE' error_log =…
luqo33
  • 8,001
  • 16
  • 54
  • 107
3
votes
1 answer

nginx php-fpm configuration hitting children limit

I'm having this problem with nginx + php7.0-fpm. Testing is done on a pure php server with no other services installed. I'm getting the following warning. WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or…
moeseth
  • 1,855
  • 5
  • 23
  • 47
3
votes
1 answer

Does Opcache on PHP7 preallocate all assigned memory?

My opcache had a memory_consumption set of 512M and it was full. So I increased it to 2048M, and restarted the php-fpm daemon. And it immediately filled up again: This site is simply running a WP Multisite installation with 2 subdomain sites.…
raulk
  • 2,809
  • 15
  • 32
3
votes
1 answer

How to enable PHP IMAP for php5-fpm / NGINX?

We have a NGINX server running on Ubuntu 14.04.2 LTS with php5-fpm. An application (OEMPRO) I'm trying to install on it says: PHP IMAP extension is disabled. Please enable it. How can I enable PHP IMAP? I've checked our phpinfo and it seems that…
Holly
  • 7,462
  • 23
  • 86
  • 140
3
votes
1 answer

Switch off line breaking in FPM log

Is there a way to switch off line breaking in php-fpm log? It would be much more comfortable to log data without line breaks, cause when you grep something from log it outputs only first line of log entry, while there can be some additional info…
Sergey Solomatin
  • 657
  • 1
  • 6
  • 12
2
votes
2 answers

How to set up Xdebug profiling on PHP 7.2 & PHP-FPM

I'm trying to do some PHP profiling using Xdebug on a local environment. I'm running Ubuntu 22.04 I'm using PHP-FPM to run PHP v7.2 through a virtualhost. php -v outputs Zend Engine v4.1.7, Copyright (c) Zend Technologies with Zend OPcache…
Ryan Dorn
  • 679
  • 2
  • 8
  • 20
2
votes
1 answer

php-fpm request hangs after producing output and PHP finishes

Instana trace of the problem: The problem: randomly, some requests take an extra 20 to 60s to finish compared to normal. Manually running CURL shows the following behaviour: curl example.com/api 2 seconds - no output nothing happens (I expect this…