Questions tagged [php-fpm]

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

PHP-FPM provides a number of useful features over the traditional FastCGI php implementation. It is implemented as a daemon that controls one or more PHP process 'pools' which can be independently configured. Main configuration options for each pool include:

  • Socket on which requests are received (either local or TCP)
  • Separate php.ini settings for specific application requirements
  • Dynamic process control. FPM can dynamically change the number of worker processes depending on pool load.
  • Uid/gid for the pool workers
  • In-flight configuration updates - a change to the pool configuration will be rolled out gracefully across all pool workers without losing connections.
2118 questions
0
votes
0 answers

nginx + apache2 + php-fpm - weird server port

I have nginx as proxy for apache2 + php5-fpm. I've decided to add letsencrypt cert to have a https. I've reconfigured my vhost in nginx and edited apache2 config. Everything seems to work fine, except for one thing - for some reason…
Igor Yavych
  • 195
  • 2
  • 11
0
votes
1 answer

Nginx put another website in front

I have a wordpress website served by nginx: server { listen 80; server_name my_wordpress.example.com; root /var/www/wordpress; index index.php; location ~ \.php$ { try_files $uri =404; include fastcgi_params; …
ryskajakub
  • 101
  • 1
0
votes
1 answer

which php-fpm sock location should i use?

Im new to server administration so forgive me if the answer is obvious. I noticed that in different tutorials in the web people use different directory/location for the pool sock in php-fpm(On CentOS 7). I've seen…
Samuel E.
  • 177
  • 2
  • 6
0
votes
2 answers

Running multiple PHP-FPM pools on Apache for different URLs?

Due to different priorities of the parts of the PHP app, the goal here is to have one pool for general usage, and another for The /api/* URLs. To make things complicated, the app uses internal URL routing, so it's not possible to distinguish the two…
Ivan Voras
  • 186
  • 2
  • 7
0
votes
1 answer

Nginx doesn't server subfolder api application (php-fpm)

I have following folder structure for my application, located in map /home/valor/development/mypp.com/public_html/ - css - app - js - ... - server (codeigniter) -- system -- application -- index.php - index.html (angularJS app) this is my…
Valor_
  • 125
  • 1
  • 8
0
votes
0 answers

Compile PHP with the setting and extensions of the system one

My client has a server on Ubuntu with PHP 5.4. Currenctly I want to add PHP 5.6 + PHP-FPM to give the possibility to use a newer version of PHP. The question is : Is there a simple / quick way to get the system's PHP configuration to use as…
Marin Bînzari
  • 133
  • 1
  • 5
0
votes
1 answer

Stop numproc exceeding the limit

We are running magento on VPS, which is facing a Numproc issue. According to our hosting provider, our server is exceeding the limit of numproc "400" & memory usage is also high. Because of this memory shortage our website faces "Memory Allocation"…
Mek
  • 1
0
votes
1 answer

NGINX error when using external PHP-FPM

I am currently trying to setup an 3 servers, 1 for nginx and 2 for php-fpm. the nginx server also have php-fpm since i tested if everything works well. while using upstream php-external{ server unix:/var/run/php-fpm/php-fpm.sock; } everything…
0
votes
0 answers

php-fpm Reload Breaks up everything

I'm using PHP 7.0.3 FPM Service on Centos 7.2 I have currently 300 different FPM pools under 300 different users that all runs with ondemand. The problem is when i add a new pool i have to reload the fpm service using service php-fpm…
OhGodWhy
  • 13
  • 5
0
votes
1 answer

Changing the name of php5-fpm pool causes 502

I have a webserver running multiple sites, each site has it's own php5-fpm pool. One particular site is behaving very strangely. I have a conf file setup for it in /etc/php5/fpm/pool.d/ and everything is the same as all the other sites on the…
Tisch
  • 182
  • 5
0
votes
0 answers

Server Specs for browser game that hugs cpu

Our team have developed a web browser game, our servers are using nginx and php-fpm to host the website. the game consist of two parts an api and the game itself. both applications reside on its own server. during load testing I found out that both…
0
votes
1 answer

Ubuntu - Nginx + php5-fpm - suddenly times out every request even after restart

Caveat - Newbie nginx/php5-fpm/ubuntu I inherited a couple linux boxes and have had the same thing happen on both. I assume it's user error, but for the life of me I don't know what I did. Symptoms: server working ok nginx to php5-fpm and back. I…
0
votes
1 answer

PHP FPM Timing Out

We have PHP FPM with Apache running Wordpress. Occasionally I have noticed certain plugins that call external URLs have the ability to really mess with FPM resulting in lots of timeouts etc if the external URL is not responding or something. We…
marcusds
  • 207
  • 2
  • 9
0
votes
0 answers

Why was my max_children reset on server restart?

A week ago, I modified my /etc/php-fpm.conf file and changed pm.max_children = 215 to pm.max_children = 130 Last night, I scheduled a reboot and this morning, when I came in we were again at 215. Why was this reset? Do I need to change this…
eisaacson
  • 525
  • 3
  • 8
  • 20
0
votes
2 answers

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX is listening to a specific IP. If there is any…
Jimbotron
  • 87
  • 1
  • 1
  • 10
1 2 3
99
100