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)

5
votes
0answers
162 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. ...
4
votes
0answers
225 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 ...
4
votes
0answers
275 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 ...
4
votes
0answers
666 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 ...
2
votes
0answers
2k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
2
votes
0answers
35 views

Q: lighttpd uses 2GB ram while idle for private page

I'm running a server with lighttpd installed. It runs php5-fpm and servering an owncloud server. Ubuntu Server 14.04 lighttpd/1.4.33 (ssl) (Jan 28 2014 17:26:04) - a light and fast webserver PHP ...
2
votes
0answers
168 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 ...
2
votes
0answers
218 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
247 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
768 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
434 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
247 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
6k 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 ...
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
45 views

Apache configured as mpm_worker - why it still shows as mpm_prefork?

I believe that I properly configured Apache MPM as worker under Ubuntu 13.10, including PHP-FPM and FCGI, and disabled mod_php. When I run top I can clearly see multiple Apache (~2-3 MB) and php (~ ...
1
vote
0answers
48 views

Why won't php5-fpm start?

I've just installed php-fpm 5.6.8 but it won't start - start php5-fpm gives me a Job failed to start message. I've found several people with simalar problems, but the none of the answers seem to work ...
1
vote
0answers
193 views

NGINX / PHP-FPM: Ajax slow first request, good next ones

The CMS is Elxis, which comes from a variant of Joomla (PHP). The server is running nGinx with PHP-FPM All requests get logged and executed, eventually, B U T!!! When firing a specific request via ...
1
vote
0answers
146 views

Set php-fpm slow log file permissions

I have a setup of php-fpm on CentOS 7 with each user having their own pool and log files. I want to make sure that each user is able to view their own log files. This works great for the PHP ...
1
vote
0answers
130 views

VirtualDocumentRoot and ProxyPassMatch

I have the following Apache configuration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot ...
1
vote
0answers
799 views

PHP-FPM ERROR: unable to read what child say: Bad file descriptor (9)

I'm having this issue: Apache 2.2.26 PHP 5.4.32 PHP-FPM 5.4.32 Zend OpCache 7.0.3 PHP-FPM Config: [testuser] listen = /dev/shm/testuser-php.sock listen.owner = testuser listen.group = apache ...
1
vote
0answers
227 views

Nginx + PHP-FPM Client Abort

Here's my config (Nginx 1.7.x) : server { listen 8000; index index.php index.html index.htm; root /var/www/; server_tokens off; chunked_transfer_encoding off; location ~ ...
1
vote
0answers
41 views

SASL severity 2 password verification failed

I have PHP Memcached running I have binary turned on (both memcached process & php) I am using Memcached::setSaslAuthData Using Ubuntu 14.04 SASL is enabled I just continually get: mech: ...
1
vote
0answers
254 views

Page displays “File not found” when I enable php-fpm chroot on debian wheezy apache2.2

I set up a chroot jail for a user "bob". bob is located in /var/jails/bob Bob has a site which is located in /var/jails/bob/bobssite.com/public_html Everything seems to work so far, including the ...
1
vote
0answers
334 views

what is php-fpm warning “failed to acquire scoreboard”?

what is php-fpm warning "failed to acquire scoreboard" in fpm error log? And how to fix it? tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 ...
1
vote
0answers
1k views

Docker PHP-FPM & NGINX

I'm having an issue with my containers communicating to each other. The linking of the containers is working but the php-fpm process isn't working. php container = 172.17.2.106 nginx container = ...
1
vote
0answers
254 views

wordpress / php-fpm crashes when uploading images to server

I have successfully migrated a wordpress server to a new VPC ( Amazon ) but looks like php-fpm can't handle the image uploads. When I upload an image, it does partially and then stalls, or it doesn't ...
1
vote
0answers
178 views

Wordpress + Nginx + Discourse not working. Socket unavailable

I'm running wordpress 4.0 on latest ubuntu from this docker container: https://github.com/eugeneware/docker-wordpress-nginx wordpress is also running behind another nginx reverse proxy, but on ...
1
vote
0answers
113 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
411 views

Add custom variables to nginx access log from PHP-FPM

With the log_format its possible to include a range of variables such as $http_user_agent: http://nginx.org/en/docs/http/ngx_http_core_module.html#variables But is it possible to include a variable ...
1
vote
0answers
249 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
134 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
750 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
131 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
367 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
346 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
312 views

php-fpm process in D state ,cause nfs wait rpc_wait_bit_killable

my wordpress site which is in clustered environment using NFS,nginx,php-fpm,mysql the infrastructure is hosted on amazon ec2.Under high load/traffic the php5-fpm process goes in D ...
1
vote
0answers
122 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
129 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
72 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
254 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
157 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
1
vote
0answers
268 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
291 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
57 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
181 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
91 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
4k 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
140 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
255 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
346 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 ...