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
79
votes
15 answers

PHP-FPM and Nginx: 502 Bad Gateway

Configuration Ubuntu Server 11.10 64 bit Amazon AWS, Ec2, hosted on the cloud t1.micro instance Before I write anything else, I'd like to state that I've checked both nginx 502 bad gateway and Nginx + PHP-FPM 502 Bad Gateway threads, which…
zeboidlund
  • 9,731
  • 31
  • 118
  • 180
67
votes
8 answers

How to check if PHP-FPM is running properly?

The documentation on php fpm website says that php fpm is part for coe php as of 5.3.3 I am running 5.3.10, how can i check that it is working correctly? I thought it was a service that ran on a port?
Marty Wallace
  • 34,046
  • 53
  • 137
  • 200
51
votes
4 answers

How can I determine the current config of php-fpm?

I'd like to determine the current config that is 'loaded'. These would be all the values listed here: http://php.net/manual/en/install.fpm.configuration.php These values are not returned by phpinfo().
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
38
votes
2 answers

Combining PHP-fpm with nginx in one dockerfile

I have a need to combine the php-fpm with nginx in one dockerfile for production deployment. So is it better to : (1) Start the dockerfile using php:7.1.8-fpm and then install nginx image layer on top of it ? (2) Or do you recommend using nginx…
Andy
  • 2,493
  • 6
  • 37
  • 63
27
votes
7 answers

Docker: unixodbc.h no such file or directory. "pecl install sqlsrv" error with unixodbc-dev already installed

This had been working up until a few days ago. We are building a docker container with the following code, but this is the error that happens when trying to "pecl install sqlsrv". Trying to connect to mssql server from PHP in this container. Anyone…
dlove
  • 393
  • 3
  • 6
24
votes
1 answer

Random 403 errors with apache+php-fpm

On a server of mine, running Ubuntu 14.04.5 with Apache 2.4.23 and php-fpm 7.0.11, I'm getting random 403 errors. I say "random" because the page I see in logs with 403 are running fine when I try them. Also, I experienced directly (I mean by…
Massimiliano Arione
  • 2,422
  • 19
  • 40
21
votes
1 answer

Failed to restart php-fpm.service: Unit php-fpm.service not found

My site showing error 502 Bad Gateway . on checking error log file i found error - connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client how can i fixed this issue ?
Manoj Patidar
  • 1,171
  • 2
  • 11
  • 29
21
votes
4 answers

Gateway timeout with traefik and php fpm

I have a problem with setting up mailcow with traefik, I encounter gateway timeouts. I also have this problem with nextcloud, so I would be really interested, what causes these issues with gateway timeout. I guess it has to do with port 9000 and…
metanerd
  • 713
  • 1
  • 6
  • 21
17
votes
2 answers

Php-fpm does not listen on ports

I have been trying to get php-fpm (w nginx) to work with the default port(9000) and it just does not work.I am trying to use php 7.1 (also tried 7.0 and 5.6). The service started fine and I can also see the port open and being listened in…
Sai Chaitanya
  • 491
  • 1
  • 5
  • 16
11
votes
4 answers

Set up php-fpm status page with php7 and apache

I'm trying to set up and get php-fpm stats with a http call. I know it's possible to use the service status command, but I would like to get that from my browser. I'm running php7, and apache, and this is what I did in my server configuration. at…
nixmind
  • 2,060
  • 6
  • 32
  • 54
10
votes
2 answers

Laravel Valet logs

I'm using laravel valet to serve sites in my local dev env, which is great. However, there's only one file in the expected location of ~/.valet/Log: ➜ ls ~/.valet/Log nginx-error.log I've tinkered with php-fpm log settings and the nginx log…
user101289
  • 9,888
  • 15
  • 81
  • 148
9
votes
1 answer

Nginx + Php-fpm fastcgi upstream timed out

I am having issues with a long-running PHP script:
Jan Richter
  • 1,976
  • 4
  • 29
  • 49
9
votes
3 answers

error Bad Gateway NGINX 502 PHP-FPM fastcgi

My boss was messing around with this page and suddenly it stopped working and started giving us a 502 Bad Gateway error. Is there anything you can see that explains why this happened?
Bjorninn
  • 4,027
  • 4
  • 27
  • 39
8
votes
0 answers

How to run php-fpm master process as non root user?

How do i run php-fpm master process as non root user root 10275 0.0 0.5 192856 23104 ? Ss Nov20 0:01 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
Dasarathi Swain
  • 861
  • 1
  • 7
  • 16
8
votes
3 answers

where is php-fpm getting its config values on osx

I'm trying to php-fpm on my osx by running: php-fpm -t and I get this error: [30-Dec-2017 13:36:12] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2) [30-Dec-2017 13:36:12] ERROR: failed to post process the…
abbood
  • 23,101
  • 16
  • 132
  • 246
1
2 3
33 34