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

learn more… | top users | synonyms (2)

72
votes
11answers
191k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0
votes
1answer
10 views

Configuring Jetty for FastCGI has worked, but how to add virtual hosts?

On CentOS 7 Linux I have successfully followed the guide Configuring Jetty for FastCGI. However the $JETTY_BASE/webapps/jetty-wordpress.xml file in the guide serves a single Wordpress installation ...
0
votes
2answers
984 views

403 Forbidden error with fcgid and PHP

I'm trying to configure php and mod_spdy on Apache 2.4, Debian jessie, x64. I've followed this guide and configured Apache following this other guide and installed these packages: libapache2-mod-...
0
votes
0answers
28 views

how do i start php7.0-fpm with supervisord?

I am trying to build a dockerized ubuntu 16.04lts with apache2 and nginx with php7.0-fpm commands i have used but did not work [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 --daemonize --fpm-...
8
votes
6answers
11k views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
0
votes
2answers
110 views

Setting php_value in VirtualHost on Debian Squeeze Apache 2.4.10 + mod_proxy_fcgi + php-fpm?

After updating our server to Debian Jessie (8.3), I switched Apache 2.4.10 from mpm_worker/mod_php to mpm_event/proxy_fcgi/php-fpm. I have the handoff configured for all virtual hosts as such: # cat ...
1
vote
1answer
51 views

PHP7 + OpenSSL-1.0.2h on CentOS 7 [Nginx 1.11.1]

Since yesterday, I've applied OpenSSL-1.0.2h to my Nginx server, which I both recompiled from source. For the OpenSSL part, I've followed this guide: https://syslint.com/blog/tutorial/how-to-upgrade-...
1
vote
2answers
6k views

Nginx upgrade to 1.8 - Now getting 502 bad gateway

Today I upgraded my localhost server from nginx 1.6.3 to 1.8.0 and now all my local websites are getting a 502 bad gateway. A standard nginx config file is as follows server { charset utf-8; ...
5
votes
2answers
3k views

PHP-FPM does not automatically start after reboot

I'm running PHP-FPM and Nginx, occasionally, for whatever reason, I have to reboot the server. Once the server is running again, the nginx service automatically starts, however, PHP-FPM does not. This ...
0
votes
1answer
26 views

Apache with PHP-FPM - PHP doesn't execute

I have compiled PHP 7 with FPM support using this tutorial on CentOS 7.x environment. I was able to test the php through CLI by running. cd /opt/php7/bin ./php --version Which outputs PHP 7.0.6 (...
2
votes
1answer
1k views

Can not optimize php5-fpm to work without errors

I have installed ngix + php5-fpm. I am happy with it but I can not optimize php5-fpm so that it works without errors. Each fixed error creates a different error. First I had the the default settings ...
0
votes
1answer
2k views

Codeigniter URL only work for default router

I've installed Codeigniter on Nginx with this configuration : server { listen 80; server_name myserver; root /usr/share/nginx/html; index index.php index.html index.htm; error_log /var/log/...
1
vote
2answers
2k views

Nginx + php-fpm - recv() error

I get the follow error in the nginx log [error] 17734#0: *6643 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [cut], server: [cut], request: ...
0
votes
0answers
3 views

How to specify time format for php-fpm pool access.format

When configuring a PHP5-FPM pool, one can specify the format for all access log entries by setting the value for access.format. The default provided .conf file stated: ; %t: server time the ...
1
vote
0answers
12 views

xdebug remote centos host from mac

I have a server running CentOS7, PHP7.0.7 with php-fpm, and SELinux. I am trying to debug a PHP script running on that server. And I have a Mac machine that runs PHPstorm where I intend to do the ...
0
votes
0answers
18 views

apache 2.4 and php-fpm - switch from using ProxyPassMatch to SetHandler?

I recently upgraded a CentOS 6.8 server I have from Apache 2.2.x to Apache 2.4.20 using the httpd24u and related packages. I also upgraded to using php-fpm and have that working reasonably well for ...
1
vote
2answers
1k views

Replicating mod_fastcgi with ProxyPassMatch (PHP-FPM setup)

I want to move from Apache 2.2 to Apache 2.4, but there is no mod_fastcgi, and the recommended upgrade path is mod_proxy_fcgi However I can't figure out how to accomplish the following: <IfModule ...
0
votes
2answers
1k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
0
votes
3answers
74 views

Drupal 8 Nginx error No such file or directory for any routes

I'm running Drupal 8.1.2 on a Docker image of Nginx + PHP7 + PHP 7 FPM and it's linked to another Docker image of PostgreSQL both of them based from Alpine Linux. After successfully running Drupal ...
0
votes
1answer
1k views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/...
1
vote
2answers
30 views

PHP parse error syntax error, unexpected end of file

I keep getting this error when i was on a LEMP setup nginx 1.10/PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.4.6/PHP 5.5.9 2016/06/19 15:45:18 [error] 4094#0: ...
0
votes
2answers
1k views

Chroot doesn't work in PHP5-FPM + nginx

I have added two line in: "/etc/php5/fpm/php-fpm.conf". There are: chroot = /home/user/www/public_html chdir = / In the server section of my: /etc/nginx/sites-available/default: root /home/user/...
0
votes
1answer
1k views

Configure Monit to monitor PHP5-FPM on Ubuntu/Nginx setup

System: LEMP running on Ubuntu 14.04 I'm trying to configure the tool Monit to restart Nginx or PHP-FPM if ever there is a problem. It is correctly monitoring Nginx however under status for PHP-FPM ...
4
votes
1answer
2k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
4
votes
1answer
6k views

PHP FPM keeps hanging

I have tried all sorts of options but every couple days (mostly every day) FPM stops serving pages and I get a 502 (from cherokee webserver) The logs are filled with the following: [15-Sep-2014 10:...
3
votes
1answer
1k views

nginx & php-fpm [debug] 11: Resource temporarily unavailable

New Development The core php error logs are below, but the site specific error logs show this. The memory on my php.ini file is : memory_size 1024; so it's not php's memory limit. I've also ...
0
votes
1answer
60 views

Server crash (504 gateway timeout) with 100 concurrent users, using nginx and php5-fpm

We have a VPS server which is dedicated to a single website. Day to day it seems to work fine (say 20-50 concurrent users) but as soon as we get up to around 90+ concurrent users, the server starts to ...
3
votes
1answer
1k views

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
0
votes
1answer
1k views

One unix socket for all php-fpm pools

I want to set only one listening unix socket for all php-fpm pools, but fpm requires them to be different. Production server has 2GB ram and I noticed that it is running out of RAM, adding more ...
0
votes
1answer
1k views

Nginx Magento config not working, 404 on installation

This is my stack: Nginx 1.7, MariaDB 10, PHP 5.6 (FPM) and CentOS 7. I have used Centminmod for the installation of the above mentioned software. I created a vhost for the magento installation. ...
6
votes
1answer
1k views

Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?

I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug. Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by ...
1
vote
1answer
26 views

Allow SELinux, Nginx to read local file and make outbound connection

I am a new admin to a server which uses CentOS 7, nginix and php-fpm. There is a web form that needs to read a local file (prod.pem) and then make an outbound connection to either: gateway.push....
3
votes
1answer
1k views

NGINX Internal Load Balancing + PHP-FPM Upstream causing random double request / submission

We are having a very serious problem where during seemingly random times, we get a duplicated request that is processed by our application. Typically, a user submits a form and occasionally will save ...
0
votes
1answer
134 views

nginx1.8.0+PHP 5.6.16 on OSX, some php pages links show 500 Internal Server Error

My page documents locate in /usr/local/var/www drwxr-xr-x joshua:admin My nginx configure is nginx.conf and my php and php-fpm configure is this file and I find I can use wordpress(/usr/local/var/www/...
1
vote
1answer
48 views

Nginx is not passing the request on to PHP

This is related to an old question I asked on SO years ago, for which I never got a proper answer. I'm just setting up a new server (Ubuntu 16.04, Nginx 1.10, PHP 7) and coming back to this. I have a ...
1
vote
1answer
32 views

Differences between mod_fastcgi and mod_proxy_fcgi

I have searched for an answer but cannot seem to find anything substantial related to this question. Should one use mod_proxy_fcgi or mod_fastcgi with php-fpm on Apache2.4? Are there any differences ...
4
votes
2answers
2k views

Nginx/PHP-FPM long log lines get truncated

I am unsure is that is a Nginx or PHP-FPM setting, but long log lines are getting truncated. Is there a setting to increase the max log line length?
0
votes
1answer
3k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = unix://...
2
votes
2answers
3k views

Optimize php-fpm and varnish for a powerfull server

My setup is: Intel® Core™ i7-2600 and RAM 16 GB DDR3 RAM varnish+nginx+php-fpm+apc for a not very heavy WordPress blog with W3 Total Cache and CDN My problem is that after 55 hits per second ...
3
votes
2answers
177 views

PHP OPcache is resetting cache automatically

I started using the built-in PHP OPcache of PHP 5.6 and am facing a problem now. I set it up to use up to 1 GB of RAM, which is highly enough for my websites but it never get get it to use the full 1 ...
0
votes
1answer
72 views

nginx php-fpm blank page

I know, there are many questions related to this topic, but for some reason none of the other solutions worked for me. So here it goes: When I'm accessing a subfolder in my root folder /dev/ ...
2
votes
2answers
2k views

jetty server executing php

I want to configure so that jetty runs PHP files, but have been unsuccessful so far. I have Jetty WTP tools installed in my Eclipse IDE. When I start up the Jetty server. I got the exception: java....
0
votes
1answer
25 views

PHP Fatal error: Maximum execution time of -1 seconds exceeded

I have a script which has a long running MySQL query and PHP returns a huge number of records as it is used to fetch raw logs for users. I am finding it a little strange but i am getting time out ...
1
vote
1answer
84 views

Serve static content using docker + nginx + php-fpm

I'm trying to configure a php webapp using docker. The idea is to run the app using php-fpm in an standalone container and have another container that will run nginx. The idea for this set up is to ...
0
votes
1answer
32 views

PHP-FPM using too much memory

I have a VPS box that runs a few websites for me as well as some scripts and it seems like its running out of memory. It has 1GB total memory. It looks like php-fpm exhausts the memory. Before it was ...
-1
votes
1answer
313 views

502 errors on WordPress / nginx / php5-fpm

I've looked through lots of other Server Fault and Google results that all have talk about generally similar situations, but I can't quite find the insight that I'm looking for. I would appreciate any ...
-1
votes
0answers
32 views

Nginx 502 Error Even after changing configurations

Server Specs: Processor: 2x Intel® Xeon® Processor E5-2630 v3 (20M Cache, 2.40 GHz) Ram: DDR4 ECC 1866 MHz Disk: 2x 480GB SSD (Raid 1) Network: 1GbPS Down / 500MbPS up Server Setup: Main OS: ...
0
votes
1answer
2k views

Temporarily website outages, fastcgi PHP communication aborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid 2599:...
0
votes
4answers
2k views

Nginx or php-fpm error?

I found my vps nginx error log like this 2013/04/06 03:28:04 [alert] 8557#0: mmap(MAP_ANON|MAP_SHARED, 5242880000) failed (12: Cannot allocate memory) 2013/04/06 04:05:30 [alert] 10299#0: mmap(...
0
votes
0answers
34 views

Negative OPcache memory consumption by using php_admin_value

I have a setup with multiple PHP5-FPM masters (as I described here) with PHP 5.6. In the general OPcache configuration (in /etc/php5/fpm/conf.d/05-opcache.ini) I have the following settings: ; ...