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)

3
votes
0answers
67 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
3
votes
0answers
298 views

php-fpm crashing because of to many mysql processes

I have 2 frontend nginx servers going to 4 backend php-fpm servers which all run Wordpress. The php-fpm servers all connect to one MySQL server and I was checking some stats earlier each php-fpm ...
2
votes
0answers
140 views

Database hangs when using owncloud on nginx php5-fpm postgresql - i think postgres if responsible

I have strange problem with this setup. Strangely it occurs only when using owncloud from one specific computer. Problem is when user click on "Activities" an "document" icons one after another ...
2
votes
0answers
143 views

nginx and php-fpm performance cpu bound

in peak hours our server is cpu bound. we are hitting 100% cpu. using php5-fpm and nginx on a large ec2 instance. to serve around 50 million requests per day. we are using this server to serve JSON ...
2
votes
0answers
622 views

Trying to get the “pool seems busy” errors to stop with php-fpm

I have a machine that is running with 3 cores and 7GB of RAM. On this machine we are running Nginx 1.4.2 and PHP-FPM. Each PHP-FPM process uses ~30MB of RAM. So this is the pool configuration I have ...
2
votes
0answers
169 views

Reloading php-fpm and apache without interrupting current requests/scripts

I got Apache 2.4 with mod_proxy_fastcgi, PHP 5.4 with PHP-fpm installed and i've separated every site with a pool. I got a page that posts info to a php application that runs a script on the ...
2
votes
0answers
167 views

php-fpm stuck at state: Finishing

The site use nginx+php-fpm. Today, accessing some pages returns 502 state in a few seconds (different from 502 caused by php script timeout), while other pages stay in service. Status page of php-fpm ...
2
votes
0answers
343 views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
2
votes
0answers
186 views

Nginx / PHP-FPM setting 404 / 5xx on externals

So I've recently been trying to help out the community by building a pimcore based nginx vhost config. Everything works very well from what I can see except for 1 small issue. If any of the pages ...
2
votes
0answers
1k views

PHP-FPM High Memory Usage

I have a wordpress blog, that uses WP-SuperCache, and normally I get 100 visitors per day. With nginx + php-fpm it's blazing fast, and I have no regrets. One thing i noticed, php-fpm takes a lot of ...
1
vote
0answers
21 views

apache php-fpm - max_children reached -> server unresponsive until php-fpm restart

One of our servers with a very special setting is very sensitivee to an unknown event. Hardware: Xen - VM 22 Cores (build with Intel xeon 4*6 Core) raid 6 SSD 60 GB RAM Configuration: Suse ...
1
vote
0answers
51 views

Apache + Php-FPM + APC : mode_deflate not compressing HTML output

I have prepared a server to run a Magento instance with: Apache + Php-FPM + APC The problem I have is that Apache is not compressing the HTML output from the Magento PHP scripts. In my .htaccess I ...
1
vote
0answers
51 views

How does PHP5-FPM send errors to nginx?

I've been experimenting a bit with error logging in php-fpm and nginx since I couldn't find any good explanation on the web. Most guides said I should change catch_workers_output to yes if I want to ...
1
vote
0answers
56 views

Requests are never queued after pm.max_children with Nginx and PHP-FPM

As soon as a pool reached pm.max_children, Nginx starts timing out when trying to send new requests to PHP-FPM. "max listen queue" is always 0 in the php-status page. PHP-FPM 5.5.16 Nginx 1.6.1 ...
1
vote
0answers
59 views

Nginx out of memory, not loading new vhosts?

I'm having an nginx running on debian. Nginx will reload every 2 minutes to fetch newly created vhosts. After a while new vhosts weren't loading anymore, but old vhosts kept on being served by nginx ...
1
vote
0answers
473 views

Munin dynamic graph zoom (dynazoom) not working (Nginx, PHP-FPM)

Debian 7.5 Nginx/1.6.0 PHP 5.6.0RC2 (fpm-fcgi) (built: Jul 11 2014 08:17:52) Munin v2.0.21-2 I been searching all over the net for a few days for answers to my problem but it seems like no one knows ...
1
vote
0answers
40 views

What causes my server slowdown that “service nginx restart” fixes?

CentOS 6.5, nginx 1.6.0 Sometimes my site becomes really slow for a period of time. If I ignore it for long enough it returns to its normal speedy self. service php-fpm restart doesn't help it. ...
1
vote
0answers
301 views

FastCGI errors: (104)Connection reset by peer, incomplete headers and others

I am writing web application using cPhalcon. The machine on which I am testing is strictly development, so there isn't any traffic from outside. The problem is that when I am trying to do ...
1
vote
0answers
37 views

php5-fpm doesn't create sockets for pools

I'm going off of section 3.1 of http://www.howtoforge.com/php-fpm-nginx-security-in-shared-hosting-environments-debian-ubuntu . I have created a directory in /var/run which www-data:www-data has ...
1
vote
0answers
106 views

User Uploaded Images– Blank Post – Connection reset by peer / FastCGI: incomplete headers

To give a little background, I have a website that permits users to upload images. WordPress is used as a content management system and the posts are immediately published with the image inserted as ...
1
vote
0answers
108 views

Nginx + PHP-FPM Too Many Resources

My Server has the following Specs CPU: 6 Cores Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz RAM: 32 GB I have a problem with nginx+php-fpm. They are taking too many resources for an unknown reason. ...
1
vote
0answers
78 views

APC has no system cache entries

I have 2 web servers to provide PHP websites. One server is : Apache + PHP-FPM + APC The other : Apache with MPM-itk + APC. For both of these servers, APC has no cache system entries but only users ...
1
vote
0answers
40 views

PHP-FPM slowlog and Mysql lost connection

I was having an issue with PHP-FPM and mysql. When I needed to process an input file that would generate several selects/inserts/updates for each line, it would stop after approximately 60s with ...
1
vote
0answers
62 views

How can I get openSSL to run on my web server with a PHP5-FPM chroot?

On my web server, I changed the chroot to only have access to the root of my website's home directory as opposed to the rest of the file system, for security purposes. However, I've noticed that since ...
1
vote
0answers
318 views

PHP-FPM service status `stop/waiting` but workers are running?

Starting php5-fpm appears to work, but checking the status immediately shows that it is not running: [root@server ~]# service php5-fpm start php5-fpm start/running, process 4516 [root@server ~]# ...
1
vote
0answers
51 views

Best way to handle PHP-FPM with a ton of Pools

We recently upgraded to Apache 2.4 and want to move away from the Prefork + mpm-itk setup we had in 2.2 . The problem is we host about 60 domains, and while we control the PHP development, we still ...
1
vote
0answers
121 views

LA problems while serving 40M requests daily with php-fpm, nginx

I have server with FreeBSD (16 cores with HT, SSD, 32Gb RAM) which is getting about 40M http requests daily. All requests are served by nginx + php-fpm. At these graphs you see that we have a ...
1
vote
0answers
126 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
1
vote
0answers
126 views

Nginx isn't redirecting right

I'm starting with Nginx and have a lot of problems since things change from Apache to Nginx. Right now I have a application developed in Symfony1.4 which don't work since I get a 404 Not Found error. ...
1
vote
0answers
47 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...
1
vote
0answers
115 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
1
vote
0answers
57 views

Nginx +php-fpm auth_base on url

Good evening. How i can protect some URL by password(auth_base)? When i try write location ^~ /test/ { auth_basic "admin login"; auth_basic_user_file /etc/nginx/httpd.passwd; location ~ \.php$ { ...
1
vote
0answers
3k views

NGINX connect() to unix:/var/run/php5-fpm/forums.socket failed

I recently set up my server again with nginx, PHP-FPM. i did what I always do but now the nginx or php-fpm doesn't process php files. ( I test with the simplest form of php phpinfo(); ). In the error ...
1
vote
0answers
293 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 ...
1
vote
0answers
79 views

nginx - php5-fpm - woocommerce => settings dont save - only after restart of php5-fpm

We are unable to save settings in woocommerce when php5-fpm is running for more then 12 hours. Sometimes the changes are reflected in the DB but then don't show in the backend, other times the ...
1
vote
0answers
154 views

PHP file upload failure for large files

Using a simple php script, when I try to upload files larger than 1MB it fails by giving this undescriptive error: General upload failure. Nginx error log does not show any evidence. I have ...
1
vote
0answers
254 views

Nginx + php5-fpm + CodeIgniter Response Too Slow

I have installed nginx, php5-fpm and setup codeigniter with REST controller on Ubuntu 12.04 LTS. The configurations work but response is too slow at times, even with just a single user. Sometimes the ...
1
vote
0answers
250 views

What is the correct way to log PHP script's execution time and memory usage?

I want to monitor the execution time and memory usage for my web application running on Nginx + FPM. To that end, I am generating execution time and memory data in the page footer. I can also insert ...
1
vote
0answers
92 views

Domain root on nginx not working

mydomain.com is running with nginx1.2, php-fpm, apc on an ubuntu server (medium - amazon ec2). I have been tweaking my server for past 6 months, however a problem started occurring since day before ...
1
vote
0answers
424 views

nginx 502 bad gateway some files

im using cloudflare. my site working good but not loading any images, css files and js files. my server details; ubuntu 12.04 nginx/1.1.19 php5-fpm mysql you can check live here Check with www and ...
1
vote
0answers
381 views

fastcgi cache how-to cache for logged-in users and make it custom for each user

Currently I'm doing cache using fastcgi_cache for non-logged-in users, and using ( if + fastcgi_no_cache + fastcgi_cache_bypass ) to pass logged-in users directly to backend which is PHP-FPM. this ...
1
vote
0answers
244 views

Need help optimizing a LEMP setup on a 4GB dedicated server

Recently i got a project i'm working in financed by a friend. So he gave me access to a 60mbps dedicated connection link and a HP Compaq 8200 Elite. The HP is just a desktop, but i'm using it as a ...
1
vote
0answers
121 views

Nginx for a site allowing downloads

My friend have a site that allows users to download files.However the moment one guy start downloading server load change from 0.00 to 3.50 in a matter of minutes.Nginx and php-fpm reach D state and ...
1
vote
0answers
397 views

Server crashing after Wordpress upgrade to latest version (nginx+php-fpm)

I upgraded Wordpress on my huge blog (around 300 000 visitors per day) from 2.8.4 to latest 3.3.2. Everything went well but my server started returning lot of Errors 502 although it worked perfectly ...
1
vote
0answers
179 views

PHP-FPM process timeouts but NGINX does not close the session with Client

I am using Magento with NGINX+PHP-FPM We are facing a problem that some of our AJAX call is timing out in the PHP-FPM. The Process in PHP-FPM gets killed but NGINX does not close the session with ...
1
vote
0answers
220 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
1
vote
0answers
5k views

NGINX + php-fpm + APC High CPU Load

I am reaching out for some help here, I have spent quite a few hours on this site searching the posts and also on google trying to see what the issue may be and trying to solve my problem without much ...
1
vote
0answers
928 views

FastCGI connection refused on port 9000

I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...
1
vote
0answers
272 views

How to optimally configure php-fpm?

I am using php-fpm along with nginx to server a busy drupal sites. I have not tweaked php5-fpm.conf yet. The stability is fantastic, however, I am wondering how to optimally set the parameters to ...
1
vote
0answers
699 views

Connection reset by peer

I have found this error on my NGINX error.log: 2011/05/09 23:33:52 [error] 22145#0: *1158 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: ...