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 php mysql multiple site

i have trouble configuring Nginx/php to route service requests to different sites. We have created a service within our web app that pushes content to nginx hosted web site (actually the service cals on the web server php script which writes the…
0
votes
1 answer

nginx loads php, but not html

so, to start off with, yes, I have looked for a solution, but I can't find it. I know the issue is with my rewrite code, but I don't know enough to fix it. I'm using nginx and php-fpm on debian 9.5. php loads just fine, but .html doesn't work…
Tomo-Nyan
  • 3
  • 2
0
votes
2 answers

add_header not working in Nginx location

So, I've been trying to figure this out for the past 8 hours, but it seems I'm stuck... I have the following Nginx config file: server_tokens off; upstream php-handler { server unix:/var/run/php5-fpm.sock; } server { listen 80; server_name …
Tony
  • 269
  • 4
  • 15
0
votes
0 answers

Nginx PHP-FPM 5.6 PATH_INFO is empty

I'm running nginx 1.14.0 and php-fpm5.6 on Ubuntu 18.04. When I look at my PHP variables with info.php, the PATH_INFO variable is empty. I wonder what could be wrong? /etc/nginx/sites-enabled/mysite.conf location ~ [^/]\.php(/|$) { fastcgi_pass…
hgv
  • 1
  • 3
0
votes
1 answer

Wrong file owner on webserver but how?

OS: CentOS 7.1 Applications: NginX: 1.14.0 PHP-FPM: 7.1.17 I have a webserver that has NginX and PHP-FPM running. Both applications are running by the user nginx. However, when my Laravel application start logging in it's own directory the files…
Bert
  • 1,028
  • 1
  • 16
  • 33
0
votes
0 answers

Can't get PHP to parse with NGINX/FastCGI/PHP

So I spent the better part of last night trying to get my ec2 instance setup with nginx and php7.2. I got everything installed and I edited the server block in my nginx.conf with the values I thought needed to be there...and I had 502 errors for…
Adam McGurk
  • 131
  • 6
0
votes
0 answers

nginx, php7.0-fpm and laravel, not able to set it up when the url has a prefix which the server doesn't have

I am trying to set up a laravel installation in docker with php-fpm and nginx server on a separate container. The issue is the laravel is installed in a path like /home/apps/foo and the url I need is abcd.com/v11/. I thought this was fairly simple,…
defiant
  • 121
  • 7
0
votes
0 answers

trouble with installing fastcgi_cache_purge ubuntu 16.04

So I'm trying to install fastcgi_cache_purge which is supposely a third party module https://github.com/FRiCKLE/ngx_cache_purge from https://www.nginx.com/resources/wiki/modules/ but this would require me to recompile nginx or reinstall nginx from a…
0
votes
2 answers

Apache 2.4 with PHP-FPM 5.6 on Centos 6

I'm trying to get PHP working over FPM on Centos. On the FPM side, /etc/php-fpm.d/www.conf is pretty much the default values. I'm left it using a TCP port as follows (I may want to change to a file port later for performance, but lets walk before we…
James Shields
  • 155
  • 2
  • 6
0
votes
0 answers

High CPU blocking performance on SSH tunnel with PHP-FPM

I've a Debian 9 VPS set up with Apache and PHP-FPM. It connects to another VPS to access a common database server VPS via an SSH tunnel. Mostly this works fine. Running a test for broken links imposes high load on the web server. For the first 350…
mbrampton
  • 311
  • 4
  • 12
0
votes
1 answer

Nginx/php-fpm timeouts

I have a setup that consists of a load balancer, two web servers running nginx/php-fpm7.1 and a database server running mariadb. For the past few months I have been struggling to work out the cause and resolve irregular timeouts and am finally…
rich
  • 101
  • 6
0
votes
0 answers

Nginx + PhpFpm + phpmyadmin upstream timed out (110: Connection timed out) and recv() failed (104: Connection reset by peer) errors

I am having connection timed out and connection reset by peer error 503 on Nginx + Phpfpm 7.1 setup. 2018/06/28 14:32:13 [error] 2428#2428: *45 upstream timed out (110: Connection timed out) while reading response header from upstream, client:…
David Okwii
  • 324
  • 1
  • 5
  • 13
0
votes
1 answer

php-fpm ignores file .user.ini

I have the following file .user.ini in…
sebelk
  • 682
  • 4
  • 13
  • 32
0
votes
1 answer

1 bad phpfpm pool.d config causes disaster

I noticed that if a pool config in pool.d has a bad path, then all the pools won't start when doing systemctl start php7.0-fpm.service - is there a way to make phpfpm gracefully continue? I've tried to research phpfpm config details but I can't find…
Nick Lang
  • 101
  • 1
0
votes
0 answers

Http connection sometimes fails to reach (?) server while ICMP and ssh connection works fine

I have quite odd problem which i had for quite a time. I'm using powerful OVH dedicated server and i'm not sure what exactly is a root issue here. I've migrated out of Cloudflare cdn, so this problem is quite annoying now and i need to finally…
user276349