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)

2
votes
2answers
2k views

Optimize NGinx + PHP-FPM

I'm currently running Nginx + PHP-FPM in my server for my websites. Today when I run Apache "ab" tool I noticed horrible response times, average 5595 and max 17415ms to respond. My Nginx config ...
1
vote
3answers
433 views

Nginx config: what is the meaning of the following lines

Can anyone explain the reason of adding the following lines, in Nginx config, when used with php-fpm location ~ \..*/.*\.php$ { return 403; } Thanks.
0
votes
4answers
3k views

monit configuration for php-fpm

I'm struggling to find a monit config for php-fpm that works. This is what I've tried: ### Monitoring php-fpm: the parent process. check process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid ...
5
votes
1answer
3k views

PHP5-FPM does not create unix socket directory within /var/run

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm. /etc/php5/fpm/pool.d/www.conf listen = /var/run/php5-fpm/$pool.sock The problem is that it will not automatically ...
0
votes
2answers
5k views

one php5-cgi process uses 100% cpu

I have a dedicated server runs debian 6, nginx 1.07, php 5.3 with php-fpm and percona mysql 5.1. I just set up the server recently and only 1 site runs on it. The problem I encounter is that even I ...
1
vote
2answers
2k views

How do I cause php-fpm to kill it's children after they are idle for a pre-defined period?

I've got several low traffic vhost'ed applications that I'd like to run on the same box, using something like this configuration: [example.com] listen = /tmp/example.com.socket listen.owner = ...
1
vote
2answers
1k views

php pages in a nginx + php-fpm server doesn't load

I've installed a nginx server and php-fpm in a CentOS 6 system (hosted in Amazon EC2) with the following this instructions: ...
0
votes
1answer
5k views

How to display PHP-FPM status on two pools?

Have nginx 1.0.6 PHP5-FPM 5.3.8.1 on a vps with two enabled sites - default & sandbox. both have different pools - default is 127.0.0.1:9001, sandbox is unix:/tmp/php5-fpm.sock. traffic to ...
2
votes
2answers
1k views

Setup secure shared hosting (Apache, PHP, MySQL)

So I'm setting up a shared hosting with Apache, PHP, MySQL and the biggest question mark is how to do with PHP, since there is a million options out there how to configure it securely. The plan is: ...
2
votes
1answer
1k views

Optimal xcache settings for VPS 512mb ram

I use ubuntu 11.10, apache2 with varnish, php5-fpm and xcache. I have 512mb ram with 4 cpus. linux kernel version 3. What are the optimal xcache settings? Should I make also some changes and ...
2
votes
1answer
161 views

How to reduce Nginx tasks running under php-fpm?

What is Apache's mod_php equivalent in Nginx? I have Nginx with php-fpm. Everything is perfect but the problem is that it works like fcgi in Apache not mod_php. This means that a task is added for ...
1
vote
1answer
519 views

NGINX and php_fpm streaming file takes triple in transfer?

My setup: - nginx 1.0.6 ( compiled from scratch ) - php 5.3.8 with php-fpm ( also from scratch ). I use this PHP script to stream files from the remote site to my users: $chunksize = 1 * ...
0
votes
2answers
399 views

User uploaded files on different server with PHP?

If I had a dozen "Work" servers with just PHP-FPM (with other Nginx servers in front), is it possible to setup PHP to store user uploaded files on a different server? I'm looking to avoid syncing ...
12
votes
5answers
17k views

Why are my PHP files downloading instead of processing with Nginx

I have seen the same problem, and many resolutions for it pointing to adding the type handler, but that was for Apache. I am using Arch Linux, Nginx, PHP and PHP-FMP and I cannot figure out why php ...
1
vote
1answer
2k views

Nginx + PHP-FPM 4GB Ram optimization

So I have it all running, no errors, but I'm trying to optimise it for a 4gb Rackspace Cloud server. This is what I have currently: php-fpm.conf pm.max_children = 200 pm.start_servers = 20 ...
1
vote
2answers
5k views

Ubuntu PHP-FPM not starting

I recently installed PHP 5.3.8 from source distribution on Ubuntu 11.04. Here's the first parts of my configure directive: ./configure --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm ...
1
vote
1answer
4k views

php5 fpm: how do you generate core dump from segfault?

Under load, my PHP5-fpm (on 32bit ubuntu 10.10) produces segfaults like the following: kernel: [4881937.884863] php5-fpm[2638]: segfault at 4204eb41 ip 0832d235 sp bfcea5e0 error 4 in ...
0
votes
1answer
95 views

What is the correct location for php5-fpm conf file in Ubuntu and how is it set?

I've got two servers running Ubuntu 10.10 and 10.04. In the 10.04 server, /etc/php5/fpm contains a php5-fpm.conf. In the 10.10 server, /etc/php5/fpm contains a main.conf. I'm trying to automate my ...
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
1answer
510 views

nginx is slow in parsing php with html content

I don't know why but nginx seems to be quite slow while the browser requests a php with html content ?? [ It's quite weird ] And this is my php-fpm.ini : ;;;;;;;;;;;;;;;;;;;;; ; FPM Configuration ; ...
2
votes
2answers
1k views

Getting rid of “Welcome to nginx!”

I've just setup nginx on my Ubuntu staging machince. Entering http://192.168.1.1./index.php works like a charm and loads the index.php file i've put in the /var/www/public_html folder. ...
1
vote
3answers
1k views

PHP-FPM with nginx load balancing long request blocks all other requests

I have three servers, the load balancer runs nginx and passes the PHP requests upstream to one of two servers running php-fpm. I was actually trying to test concurrency in the first place, so the php ...
1
vote
1answer
782 views

Clean Url problems WIth ubuntu apache , php-fpm, fastcgi

Well this is a kind of repost of this, but no one has replied to my question so far, so I am here. I am using Apache/2.2.17 (Ubuntu) mod_fastcgi with php-fpm and I can't enable clean URLs as the site ...
7
votes
3answers
28k views

What is wrong in my php-fpm configuration?

I have a 64-bit server but only 256MB of RAM. So, I moved to nginx server with fast-cgi to connect to PHP. I have PHP 5.3.6 running. The issue is that after every two or three days when I try to ...
1
vote
2answers
368 views

Secure PHP environments with PHP-FPM and SFTP

I'd like to set up secure environments for a small number of untrusted PHP websites on a Debian server. Right now everything runs on the same Apache2 with mod_php5 and vsftpd for administrative file ...
0
votes
3answers
8k views

Nginx and PHP FPM is slow

My server have 512 MB memory. nginx.conf setting is user www-data; worker_processes 2; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic ...
1
vote
1answer
1k views

NGINX + PHP5-FPM segfaults under high load!

I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself ...
1
vote
1answer
808 views

600+ memcache req/s problems - help!

I am running memcached on my server and when it hits 600+ req/s it becomes unstable and causes a big load of problems. It appears when the request rate gets that high, my PHP applications at random ...
0
votes
1answer
37 views

On my webserver, opinion/advice on automatically adding php-fcgi users?

I am not 100% sure of how to actually add users, however I am choosing Apache over other backends finally and that may be easier. From what I can gather, adding an fcgi user would mean adding a Linux ...
4
votes
2answers
3k views

Nginx + PHP-FPM Timeouts, almost zero load consumption?

I've got a server running on a Linode with Ubuntu 10.04 LTS, Nginx 0.7.65, MySQL 5.1.41 and PHP 5.3.2 with PHP-FPM. There is a WordPress blog on it, updated to WordPress 3.2.1 recently. I have made ...
-1
votes
4answers
272 views

nginx complaining about port 80 being in use

Whenever I try to start nginx I get the following output. /etc/init.d/nginx start Starting nginx: [emerg]: bind() to [::]:80 failed (98: Address already in use) [emerg]: bind() to [::]:80 failed (98: ...
3
votes
2answers
2k views

Ever increasing mem usage by php-fpm?

It seems php-fpm is allocating more and more memory, although peaks and dips in amount of requests. Couldn't post more than one image, so I put them here. As you can see in the uri of the pictures, ...
0
votes
1answer
750 views

php-fpm not working several days,return 'No input file specified'

My server running ubuntu 64bit, nginx, php-fpm. Everything is working well. But several days after. The browser display 'No input file specified'.After I restart php-fpm. Everything run well again.But ...
1
vote
0answers
1k 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
274 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 ...
0
votes
1answer
441 views

php5-fpm not working without restarting twice every time

I'm on ubuntu (10.10) and I've got php5-fpm installed. Whenever I restart it, I get no errors, just a successful restart message. But it's not really working (I only know this because php pages get an ...
2
votes
2answers
808 views

nginx rewrite config

I'm pretty new to nginx and am trying to setup some pretty simple rewrite rules, but they don't seem to be working. Just for your info, this server { .. } has its server_name domain.com *.domain.com. ...
0
votes
2answers
177 views

php 5.3.6 is php-fpm included?

I just did a yum install of php on amazon linux beta. (it's similar to centos, jfyi) php -v reveals its php 5.3.6. awesome so. Now I am trying to figure out if I can package install the php-fpm. ...
6
votes
1answer
4k views

Working Nginx fastcgi_cache php-fpm cache and static file caching configuration?

Nginx wiki is very vague with explanation as to how to properly setup nginx with php-fpm with fastcgi_caching for sites which have cookies i.e. wordpress, drupal, vbulletin etc. I downloaded a ...
0
votes
1answer
484 views

Google Minify with nginx

I am using google minify and my URLs for including CSS and JS are something like domain.com/min.php/commonjs domain.com/min.php/commoncss domain.com/min.php/jqueryall I have moved to nginx with ...
1
vote
2answers
667 views

run php with cherry.py web server?

I understand cherry.py server is multithreaded which theoretically would be a problem with php fastcgi in general. But would it be possible? has anyone tried it and can please share the ...
0
votes
1answer
869 views

PHP-FPM seg faults, how do I find out why?

I have a Nginx running php through PHP-FPM. When I do a phpinfo() the site shows up just fine but when i run my php code (which works fine on a VM that I have, this is an amazon EC2 instance) it seg ...
4
votes
2answers
1k views

Why is the response truncated at 16k with php + fastcgi?

I've got PHP 5.3.3 and nginx 0.8.47 compiled from source running a Wordpress blog. The RSS feed generated by Wordpress was getting truncated at roughly 16k (including header was 16k+90b). By adding ...
3
votes
2answers
2k views

APC Server Cache Fragmentation

I'm running a Wordpress site with APC and W3TC on CentOS 5.5 which gets around 10000 pageviews a day (including ajax and WP-Admin). The server is a low-level VPS and has a max of 376MB RAM. Recently ...
1
vote
0answers
812 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: ...
0
votes
1answer
437 views

PHP-FPM wasting CPU 100%

I ran ab -n 100 -c 10 http://www.mywebsite.com/category/page to test the lighttpd-php-fpm performances. In this websites I have installed the last version of wordpress, the server is fast! I'm ...
0
votes
1answer
682 views

PHP-FPM runs PHP scripts as root

I have a web server setup using nginx and PHP-FPM listening on a Unix socket. In my php-fpm.conf, I have specified user = www group = www When I run ps aux, I can see that the php-fpm worker ...
2
votes
4answers
3k views

How to fix SCRIPT_NAME with PHP-FPM and Apache's mod_fastcgi?

I have the following in my Apache conf to get PHP-FPM working: FastCgiExternalServer /srv/www/fast-cgi-fake-handler -host 127.0.0.1:9000 AddHandler php-fastcgi .php AddType text/html .php Action ...
0
votes
1answer
287 views

How could I manage many vhosts with PHP-FPM and LIGHTTPD?

I have installed php5-fpm and lighttpd. I want to chroot the directory of each vhost. I don't want one vhost can read other vhost's file. How to do it by FPM ? Thank you
0
votes
2answers
375 views

anyone doing php-fpm and APC? cache files missing in /tmp

I have been using xcache for a long time. Recently I put together php-fpm and nginx. I see apc is installed and enabled in the configuration. I was assuming that apc will automatically opcode the ...