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

Unable to enable mpm-event in httpd | centos 7

I am kind of new to mpm and all so please don't mind. I have a web server running 8 websites (php based) on it. And my RAM usage goes over 90 % and the swap usage goes over 80 %. And when i check service httpd status the number of request…
user438713
0
votes
1 answer

Nginx: rewrite for subdomain to folder AND files inside it

I have nginx rewrite rule - it redirects all subdomain requests from sub to folder: server { listen 77.77.77.77:80; server_name domaincom *.domaincom; root /home/admin/web/domaincom/public_html/subs/$subdomain; set $subdomain ""; if ($host ~*…
0
votes
0 answers

110 Connection time out when trying to run a PHP script

I cannot run any PHP script on my nginx server. I set up the usual nginx+PHP infrastructure, following this tutorial How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04 . The usual test returns correctly all the…
Daniele
  • 131
  • 1
  • 3
0
votes
1 answer

[alert]: fastcgi request record is too big -Fastcgi receives an error message that the get request is too long

Recently, the program encounter ed a problem, LNMP environment, because PHP in the program spliced GET request uri parameter is too long, resulting in an error, nginx processing uri is too long can be processed by client_head_buffer_size …
丁文浩
  • 11
  • 1
0
votes
0 answers

PHP is not working after installing ModSecurity for NGINX on Ubuntu 16.04

My server is running on Ubuntu 16.04. One of my web app(php app) was running on my nginx server. To install ModSecurity I removed the NGINX completely and then followed the following steps to complie and install ModSecurity for NGINX as a Dynamic…
0
votes
1 answer

PHP (7.1) issue with mail , openssl , certificate

In the php.ini I have: [openssl] openssl.cafile= /etc/ssl/cert/mydomaincabundle.crt this line allow email from PHP with SMTP to be sent from PHP es Wordpress or PHP application as i use mydomain.ext certificate. Now that I need use composer I…
PeopleInside
  • 5
  • 1
  • 7
0
votes
1 answer

DNS lookup failure for:

I installed my server with virtualmin, and I am using apache with php fpm. When I try to open my website I have this error : Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the…
contremaitre
  • 3
  • 1
  • 3
0
votes
1 answer

Load balance PHP-FPM with HAProxy resulting in service unavailable

I need to load balance PHP-FPM with two backend servers with HAProxy (with Apache running on those backend servers as well). I have this frontend: frontend fr_fpm bind *:9000 mode tcp default_backend bk_fpm And I have this backend: backend…
William
  • 266
  • 1
  • 4
  • 18
0
votes
1 answer

Cannot find php-fpm to for PHP 7.2 to install on Centos 7.5

Have created a new VM server for a project, it is running Centos 7.5. After following a large number of different articles online to try and get nginx and PHP 7.2 running on this box I cannot get the correct version of PHP or the PHP-FPM module to…
tip2tail
  • 103
  • 5
0
votes
2 answers

issue with server reached max_children setting, consider raising it

I have recently migrated 30 websites from my old server to new one, and now running on nginx as previously was running on apache. Everything works fine for all websites except for 1 website. I don't know why, but I get these message on log file…
TooNetCreation
  • 173
  • 1
  • 2
  • 9
0
votes
1 answer

Nginx with docker load balancing app server (php)

I haven't found an solution so far, so I'm asking here: This is the situation I'm locking an solution for: We are planing an architecture that contains the following components Docker Container (auto load balancing as load requires it) Application…
Chris West
  • 115
  • 9
0
votes
0 answers

PHP-FPM pools of a domain are working non stop

My server OS is centOS. I use Apache for httpd. Every site runs PHP by own user. One of my sites (let's say that 504domain.com) gives 504 gateway error constantly. Restarting Apache makes the site available for a day. Rarely all the other sites…
borayeris
  • 213
  • 1
  • 9
0
votes
1 answer

I want config.json to be readable by php app, but not via the browser

Forgive me if this is a remedial question. I'm authoring an API for a web app. I've got a config.json file for local configuration, but currently it can be called directly via a web browser if you know the URL. If I change the permissions to be…
andrewniesen
  • 133
  • 1
  • 5
0
votes
1 answer

Apache24u / phpinfo: still showing old version

Ive upgraded the server from default apache 2.4.6 to the apache24u (https://centos.pkgs.org/7/ius-x86_64/httpd24u-2.4.34-1.ius.centos7.x86_64.rpm.html). when I check it via shell, I get the correct versions: However, phpinfo is showing wrong…
Raheel Hasan
  • 181
  • 1
  • 1
  • 12
0
votes
2 answers

Client denied by server configuration on Apache 2.4

We have migrated multiple Drupal 7 / 8 sites to a new stack, where the main changes were replacing Apache 2.2 and FastCGI with Apache 2.4 and PHP-FPM. We have the following error on multiple sites: [Fri Oct 19 09:06:26.333135 2018] [:error] [pid…
Rotem
  • 147
  • 1
  • 14