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

PHP-FPM + PHP-5.2.14 + NGINX - Giving 404

I've been slaving away trying to get PHP working via PHP-FPM. One of our servers is getting hit by slowloris is apache cant handle it. I got NGINX running all fine and passing data back to apache but ...
46
votes
7answers
95k 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.
4
votes
1answer
1k views

Per pool php.ini on php-fpm

Anyone have any idea how to do this in tittle ? Or at least something similar (enable/disable functions that are usualy in php.ini) My pool now looks like this [amar] listen = 127.0.0.1:11000 user ...
1
vote
4answers
1k views

Debian x86_64 + Nginx + PHP5-FPM optimization

I used to have a VPS (512MB) from Linode and I was running nginx + php5-fpm (which comes with php5.3.3) on Debian Lenny (i686). The total memory usage was about 90-100MB. Now I have another VPS ...
0
votes
2answers
607 views

why are there so many connections in MySQL?

We're using Nginx + PHP in fastcgi mode, and using PHP-FPM as cgi process manager. In our scripts we use PDO to connect MySQL and definitely NOT in persistent mode. But recently we found we still ...
2
votes
2answers
1k views

How do I get PHP 5.3.3 working with Nginx on CentOS 5.5?

I have installed Engine X and PHP 5.3.3 from source onto a CentOS 5.5 server. I think everything went well from the installs and Engine X does serve static files OK. When trying to access a basic php ...
0
votes
2answers
269 views

Why do php hits appear 3 times in nginx log files

I have a Ubuntu Lucid server with Nginx (0.7.65) and php5-fpm (package by Brian Mercer) All my configuration is default and my site config is looking like this (domains replaced): server { listen ...
2
votes
3answers
2k views

NginX & PHP-FPM, random 502

2010/09/19 14:52:07 [error] 1419#0: *10220 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [...], server: [...], request: "POST /[...] HTTP/1.1", ...
1
vote
3answers
320 views

Identifying the bottleneck

So I've got nginx and php-fpm on a cloud server. Using apache benchmark with these settings: ab -n 300 -c 5 http://example.com/ So the cloud server (from rackspace) was a 256mb one. I ran htop while ...
2
votes
2answers
2k views

Nginx + PHP-FPM, php scripts not running

I installed a LEMP stack on Linode using one of the stack scripts they offer. I actually didn't run it on boot but instead entered the commands manually since it seemed to not install everything ...
17
votes
7answers
69k 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 ...
0
votes
1answer
892 views

PHP5-fpm fails to start

When i start my debian box, php5-fpm says that it's failed to start. When i check the logs it says that port 900 is taken. But that couldn't be becouse there's nothing else runnong on port 9000. And ...
1
vote
1answer
3k views

Sessions Problem with PHP-FPM on Nginx

Hi everyone I got some trouble with sessions that I use on my little project: PHP Notice: Undefined index: user_ID in ../config/sessions_class.php on line 29 (this is from the nginx error.log) ...
0
votes
1answer
880 views

Php 5.3.3. Access log

I'm using php-fpm. In 5.3.2 when I'm opening phpinfo page in access log I get: ip - - [26/Aug/2010:16:35:32 +0400] "GET /phpinfo.php HTTP/1.1" 200 13322 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; ...
6
votes
4answers
5k views

Nginx + PHP 5.3.3 (with php-fpm) - memory usage?

I recently bought Xen VPS (linode.com) with Debian 5.0 Lenny (i386), 512MB RAM. At the moment I have only three small websites (built with Drupal) with about 600 users per day in total running on this ...
1
vote
1answer
1k views

PHP-FPM very high processors usage

I use a bunch of nginx + php-fpm on a server running Debian Lenny x86_64. Sometimes the PHP-FPM's processes loads all 8 cores at 100% and this load does not fall until to forced restart PHP-FPM. How ...
1
vote
2answers
112 views

Every command i'm entering is returning “Abort”

I'm running FreeBSD and I started an instance of php-fpm. After that, every command I type (except kill and cd) just return "Abort". Last time this happened host said I had a memory leak, probably ...
3
votes
4answers
8k views

Nginx and PHP-FPM on OS X

I've been wanting to try out Nginx with PHP-FPM. I installed Nginx via Macports. I read that PHP 5.3.3 includes PHP-FPM, however, the PHP 5.3.3 configuration on Macports does not enable it. Can ...
11
votes
4answers
18k views

nginx + PHP-FPM = “permission denied” error 13 in nginx log; configuration mistake?

I've got nginx 0.7x + PHP-FPM running under PHP 5.2.10 on one RHEL5 server, but trying to duplicate that setup under the bundled-in PHP-FPM in PHP 5.3.3 on a second server, I'm having some trouble ...
3
votes
3answers
6k views

APC shared memory problems

i have nginx+php-fpm and APC installed on a freebsd server, and i'm experiencing constant problems with php-fpm connected somehow with APC. php-fpm freezes in 'lockf' state (in top) and thus site is ...
1
vote
1answer
2k views

Permission problems, nginx can't access my site

So, I'm having some problems with my permissions. I have a directory named /sites/ and within that directory i have a couple of more directories of all my vhosts. One of them for example is ...
1
vote
2answers
10k views

Apache + SuExec + php-fpm - how to set them up?

I wonder if there is a good guide on how to setup Apache + SuExec + php-fpm? I have a server which I am going to use several separate website. So, I need php to be run as site-owner user. As I can ...
5
votes
1answer
5k views

Nginx + PHP-FPM = “Random” 502 Bad Gateway

I am running Nginx and proxying php requests via FastCGI to PHP-FPM for processing. I will randomly receive 502 Bad Gateway error pages - I can reproduce this issue by clicking around my PHP websites ...
1
vote
1answer
3k views

Identifying bottleneck — Nginx + PHP-FPM + Ubuntu

I have an Ubuntu server setup running PHP-FPM and Nginx -- I did some stress testing, and experienced a substantial slow-down. I used loadImpact with 250 users. I found that during the testing PHP ...
0
votes
2answers
864 views

Error while compiling/installing PHP with FPM for RPM on Centos 5.4 x64

I'm trying to make an RPM with PHP 5.3.1 and PHP-FPM 0.6 for CentOS 5.4. So far it goes quite well, but when rpmbuild gets to the installation phase it fails with the following error: ...
1
vote
2answers
6k views

PHP-FPM + NGINX: PHP-CGI processes die after a while in idle, then 502 bad gateway and manual restart required

I am currently setting up a VPS (with VPS.NET) which I will be using to host a blog and some other stuff. I've installed nginx, and patched php (5.2.8) with php-fpm. All works great (and extremely ...
6
votes
6answers
367 views

How to keep programs from source up to date?

I'm designing a new server setup for hosting multiple websites. (Shared hosting for my clients over at SliceHost.) I've recently moved away from the traditional LAMP setup and chosen Ubuntu, Nginx, ...