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
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 ...
2
votes
2answers
1k views

jetty server executing php

I want to configure so that jetty runs PHP files, but have been unsuccessful so far. I have Jetty WTP tools installed in my Eclipse IDE. When I start up the Jetty server. I got the exception: ...
0
votes
1answer
614 views

Crazy problem with Nginx, PHP5-FPM on Ubuntu

I've been trying to get a domain from shared hosting to my new VPS. Everything was working just 100% fine, and then all of a sudden rewrites stopped working, pictures that should work started ...
0
votes
2answers
1k views

nginx php-fpm keeps downloading files

vhost: server { listen *:8080; location / { root /var/www/default/pub; index index.php; # if file exists return it right away ...
7
votes
1answer
11k views

Apache MPMs - Worker vs Prefork

I'm trying to figure out what which is the best Apache MPM I can install on my VPS. I saw some benchmarks and MPM Worker seems to perform better than the Prefork one but for some reason everyone seems ...
14
votes
2answers
11k views

nginx + php-fpm - where are my $_GET params?

I have a strange problem here. I just moved from apache + mod_php to nginx + php-fpm. Everything went fine except this one problem. I have a site, let's say example.com. When I access it like ...
3
votes
3answers
2k views

http benchmarking?

im running varnish->nginx(php-fpm) and im using ab but it keeps messing up. [root@localhost src]# ab -k -n 100000 -c 750 http://192.168.135.12/index.php This is ApacheBench, Version 2.0.40-dev ...
0
votes
3answers
1k views

Problem configuring php-fpm with nginx

First of all: I'm not an expert in configuring things. This is very new for me, so, my apologies in advance. At work we have a Centos server. The guy who worked here before installed nginx. We need ...
4
votes
1answer
1k views

Cannot loopback to localhost php gateway causing nginx to timeout while setting up firewall with ufw

I'm setting up ufw for the first time. Using Ubuntu 10.04 LTS on an OpenVZ VPN and have the following rules: sudo ufw allow 22/tcp sudo ufw allow 25/tcp sudo ufw allow 53 sudo ufw allow 80 sudo ufw ...
1
vote
1answer
2k views

Limit APC opcode caching to specific sites? Nginx + PHP-FPM + APC

Is there any way to enable/disable APC on a per virtual host basis? I'd rather not use precious apc shared memory on caching my PHPmyAdmin subdomain or lesser used sites. Setup is Nginx, php-fpm, and ...
5
votes
1answer
6k views

Blank Page: wordpress on nginx+php-fpm

Good day. While this post discusses a similar setup to mine serving blank pages occasionally after having made a successful installation, I am unable to serve anything but blank pages. There are no ...
2
votes
5answers
15k views

How do I make Nginx redirect all requests for files which do not exist to a single php file?

I have the following nginx vhost config: server { listen 80 default_server; access_log /path/to/site/dir/logs/access.log; error_log /path/to/site/dir/logs/error.log; root ...
1
vote
2answers
4k views

with nginx with php-fpm, how do i turn off php warnings in the error log of nginx?

I'm running nginx with php-fpm and php 5.3.3. I have in my php.ini config error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR Which should turn off all php warnings in the ...
0
votes
2answers
2k views

nginx + PHP-FPM farm?

I have a setup with two small servers running nginx serving as proxy and a number of Apache+mod_php beefy servers. I am thinking on going over to PHP-FPM. Can I configure nginx to use a number of ...
0
votes
2answers
2k views

NGINX returning 404 error on a valid url

We have a site that runs PHP-FPM and NGINX. The application sends invitations to site members that are keyed with 40 character random strings (alphanumerics only -- example below). Today for the ...
0
votes
2answers
210 views

Disconnect from PHP after output generated

I have a LEMP stack. Nginx sitting in front of PHP-FPM. Because some of the sites are heavy and there's OPCode caching, PHP is set up so that there are only 5 child processes running. The aim being ...
2
votes
3answers
6k views

Nginx + Php5-fpm not rendering php files

I've spent hours figuring out how to install Nginx + Ruby Enterprise Edition + PHP5-fpm and MYSQL, finally it is all installed and all seems to have started fine. But for some reason php files are ...
1
vote
1answer
2k views

Oracle 11g + Nginx + php-fpm

I am trying to setup php/nginx to connect to an oracle database. Everything is on a single server (testing) I installed nginx and set it up just fine it works. I setup php and php-fpm and that works ...
0
votes
1answer
479 views

Why Zend Framework doesn't render layouts after migration?

I'm not sure if this question belongs here or StackOverflow... Some time ago I wrote a web app using Zend Framework and since then it ran flawlessly on a standard shared hosting (lampp stack). I ...
0
votes
1answer
2k views

HAProxy confusing 503 errors

Almost 1/4 of all requests to a HAProxy instance fail with 503 errors, although the two backend servers are completely healthy and repeated checks on the individual servers return no errors at all. ...
1
vote
1answer
732 views

mod_rewrite always gives 10 internal redirects and fails

I have a simple .htaccess which fails to redirect correctly on some reason: RewriteEngine on RewriteBase / RewriteRule ^.*$ /test.php [L] There is a log entry: [Tue Nov 16 17:04:12 2010] [error] ...
0
votes
2answers
567 views

nginx Subdomain Redirect to URL

I have a server running nginx + php5-fpm with a wordpress installation. My website is served on example.com and I would like to configure admin.example.com to point my site contributors to ...
1
vote
3answers
2k views

Nginx + PHP5-FPM repeated cut outs 502

I've seen a number of questions here that highlight random 502 (Nginx + PHP-FPM = "Random" 502 Bad Gateway) and similar time outs when using Nginx + PHP-FPM. Even with all the questions, I'm still ...
0
votes
2answers
7k views

fastcgi_param SCRIPT_NAME not working when included from external configuration file

After upgrading nginx on my server, all PHP sites stopped working. Before, I had just this in the file "fastcgi_params": fastcgi_param SCRIPT_NAME $fastcgi_script_name; And then the PHP ...
3
votes
1answer
3k views

php-fpm getting a “failed” message, but the processes start — ok?

I'm having a strange issue where when I start php-fpm, I get the following message: > /etc/init.d/php-fpm start Starting php-fpm ................................... failed But when I look at ...
0
votes
1answer
617 views

how to query the firmware version (using a script) off a HP smart array backplane/enclosure?

I would like to keep a list of the firmware installed in a database, and I can the data I want in the output of hpacucli, but I can't find a reliable way to parse that file; # hpacucli ctrl slot=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 ...
44
votes
7answers
87k 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
595 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
996 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
264 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
317 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
66k 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
888 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
874 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 ...
10
votes
4answers
17k 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 ...