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)

0
votes
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
1
vote
2answers
54 views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
1
vote
1answer
1k views

How can I fix recurring PHP 503 Errors on my Apache-mod_proxy_fcgi-PHP-FPM Server?

i'm having trouble with my php-fpm setup. Maybe you guys can point me in the right direction. First off, everything is working fine. But every now and then, I'll get 503 Errors. Those errors are gone ...
0
votes
1answer
2k views

Is it possible to set up PHP-FPM with different pool-options (xdebug enabled / xdebug disabled)

I've a LEMP environment and need the option to separate all development subdomains from staging (development with xdebug staging without). dev.projectX.mydomain.tld staging.projectX.mydomain.tld ...
1
vote
1answer
28 views

php error [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers)

I am using ubuntu 15.04 in my dedicated server with 40 cpu cores and 160GB of RAM with one heavy traffic wordpress site running. I am using Nginx as the webserver and varnish as the cache server. My ...
-1
votes
0answers
22 views

Can Apache work with PHP-FPM? [on hold]

I am very confused. I have installed apache on my ubuntu server. As my website grow, I wanted to speed up my processes. That is why I installed Nginx web server and php-fpm support for nginx via plesk ...
0
votes
2answers
28 views

Apache returns empty response and must restart

I have the classical LAMP configuration on several servers, on one server I can frequently see Apache returned an empty error. I have PHP-FPM running to serve .php file, static pages like .html is ...
0
votes
1answer
1k views

Nginx alias or rewrite for Horde Groupware ActiveSync URL does not process the rpc.php file

I'm trying to setup a Horde groupware with Nginx. The webinterface works but I do not get the ActiveSync specific URL to work. The Horde Wiki explains how to use it with an Apache Webserver here. My ...
1
vote
2answers
5k 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; ...
0
votes
2answers
21 views

Is it necessary to secure TCP traffic for PHP FPM over shared private VPS network?

There are lots of recommended practices and tutorials for securing various components of a LEMP/LAMP stack when running in a cluster whose private network traffic is shared by other, potentially ...
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
0answers
6 views

MongoDB or mongoclient not closing connections

I'm having an issue with our mongodb server having too many connections open. We have tracked down the problem to be related to the incoming connections from the vhost with the php server. sudo lsof ...
1
vote
2answers
1k 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
14 views

Drupal along side Magento on Nginx

I have successfully setup Magento 2.0 and trying to install Drupal along side. My Nginx configurations: upstream fastcgi_backend { server unix:/var/run/php/php7.0-fpm.sock; } ...
15
votes
1answer
6k views

Constantly have to reload PHP-FPM

We have a fairly heavily loaded server running nginx and PHP-FPM. We have 6 websites on this server, running PHP-FPM and nginx. Software is all vBulletin 3.8 and WordPress. Databases are on a separate ...
21
votes
8answers
95k views

Nginx + php-fpm “504 Gateway Time-out” error with almost zero load (on a test-server)

After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres ...
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
0answers
24 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> ...
0
votes
1answer
1k 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 ...
2
votes
0answers
22 views

502 Bad Gateway Error - exited on signal 11

I have an issue on a particular Magento store, on two different servers. The issue is that when I save admin panels, I get a 502 error. The values actually save to the database, as pressing back on ...
4
votes
1answer
5k 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 ...
3
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 ...
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 ...
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 ...
2
votes
3answers
562 views

PHP FPM state Finishing but never completes

We are running a Symfony application on Ubuntu 14.04 with Nginx and PHP-FPM The problem is that individual PHP FPM will occasionally hang on our production servers. I have the output from the status ...
0
votes
0answers
24 views

Nginx PHP-FPM maintains session, but not session variables [closed]

I've just set up my server running Nginx and PHP-FPM when I noticed that I'm unable to get session variables. I figured out that the session ID is the same on both of my test pages, no variables were ...
1
vote
0answers
19 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...
0
votes
0answers
15 views

nginx shows 404 on form submit, i.e. on all post requests

I have an nginx v1.2.1 together with php-fpm hosting the magento system for me. The current nginx config looks like this, and this config works fine for me, or at least I think it works fine. server ...
2
votes
2answers
145 views

Setup nginx for owncloud and other services on the same server?

Right now I have nginx working with 3 services: 1. My webpage on my.example.com/~ignacio, my Rstudio server on my.example.com/rstudio, and my Shiny sever on my.example.com/shiny. This is my config ...
0
votes
2answers
69 views

“sudo apt-get install php7.0-dev” not working

I am trying to install Xdebug to server and pre-requisite in tutorial I am following is php5-dev but I am using php7.0.5 so I tried sudo apt-get install php7.0-dev. It gives me Reading package ...
6
votes
3answers
7k views

different php.ini settings for various virtualhost (php-fpm)

I searched allot here on serverFault and found this solution... Including this in virtual host should work: php_admin_flag register_argc_argv = On php_value max_execution_time = 1000 php_value ...
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 ...
5
votes
1answer
901 views

Why does static vs dynamic process management affect memory usage so much for php-fpm?

I recently migrated a client to an EC2 instance running Nginx + PHP-FPM. When I first setup the server I had set pm=static with 40 worker processes. After a week or so I decided to experiment with ...
67
votes
10answers
174k 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.
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
0answers
29 views

Nginx/PHP5-FPM master process - high CPU usage

I've been having some weird issues with PHP-FPM and high CPU usage from the master process. I normally have CPU spikes from traffic since we have a lot of websites but I also run heavy caching with ...
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 ...
2
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
16 views

ioncube not working with php-fpm nginx

php version: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache ...
-1
votes
0answers
12 views

Apache2 website works when symlinked, does not work when direct

I'm really scratching my head on this one. I am running a Magento website. The current server was set up way before I joined my current company, and it was using apache-mpm-prefork. As can be ...
0
votes
0answers
47 views

Nginx memory profile

I'm using nginx 1.9.2 (with pagespeed and geoIP) inside a docker container, running on Google container engine. It serves as a proxy for another container running php-fpm (php7). I'm also using ...
0
votes
0answers
20 views

mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS

Feel free to migrate this. Its ambiguous to me if it belongs in serverfault, stackoverflow, or Unix & Linux. I recently deployed a handful of wordpress sites for a client. I started to notice ...
0
votes
2answers
43 views

restart php5-fpm from php script

Ok, this is a tricky one (I think) I need to reload php5-fpm from a php script The obvious issue is that once the reload command is executed, the current script is disturbed, I tried to delay the ...
1
vote
0answers
20 views

apache php-fpm: How to run scripts on same domain w/ different users

I have a number of directories containing php scripts that need to be run as separate users. Example directory structure is as follows: /var/www ├── project │ ├── item1 │ │   └── script1.php │ ...
6
votes
5answers
9k 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
0answers
32 views

PHP/FastCGI: Is “&QUOT” the cause of fatal error?

I'm trying to set up Wallabag, a PHP application, for the users on my site. This is one of a number of PHP applications running on a LEMP setup with PHP 7.0 (default on Ubuntu 16.04) When I visit ...
0
votes
0answers
19 views

open_file_cache causes slow response every x times

I'm testing a server on t2.micro ec2 I set this in nginx.conf open_file_cache max=2000 inactive=20s; open_file_cache_valid 60s; open_file_cache_min_uses 5; ...
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 ...
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
4answers
13k views

How to enable OPcache in Debian?

Just installed php5-fpm. All sources say that apc module has been replaced with OPcache and it's compiled by default but not enabled. How can I enable this module. I can not find opcache.so file on ...