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
838 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
972 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
793 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
436 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
622 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
2k 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
281 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
370 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 ...
3
votes
2answers
2k views

PHP-Mcrypt Installation

I need to install php-mcrypt on my CentOS 5.5 VPS, When I try yum install php-mcrypt, it says that it is set to be updated which implies that it is already installed. I looked in the ...
0
votes
1answer
4k views

Cannot start session without errors in phpMyAdmin running Nginx with PHP-FPM

Whenever I open phpMyAdmin from my VPS I get the following error: Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP ...
0
votes
1answer
2k views

Apache2, FastCGI, PHP-FPM, APC on virtualmin panel with nginx front end reverse proxy

My dream setup: php 5.3.6 + mysql 5.5.10 on Apache2, FastCGI, PHP-FPM, APC with nginx 1.0 front end reverse proxy. And as free server management panel: Virtualmin GPL on centos 5.6 In a new centos ...
3
votes
2answers
5k views

nginx not able to connect to php-fpm socket

I setup a system similar to the tutorial here: http://vladgh.com/blog/varnish-nginx-and-php-533-ubuntu-1010 I'm having issues with nginx connecting to the php5-fpm socket, but from what I can tell ...
1
vote
3answers
846 views

Too many open files

In php-fpm.conf I have: rlimit_files = 8192 My server is a 1G SmartMachine from Joyent, meaning it is a Solaris with 1GB memory. My problem is that on high load I get errors like this: Warning ...
3
votes
4answers
3k views

How to add a pool to FPM (nginx) without reload/restart fpm itself?

Im building an environment (on a ubuntu 10.04.02 machine) to handle a website with many (should support at least 1000) subdomains, each of them served by a different FPM pool, with a different user. ...
3
votes
2answers
6k views

Nginx returning blank HTML pages with php-fpm

I'm using php-fpm through Nginx. My nginx.conf can be found here: http://pastebin.com/Nu9iD8Km It includes a file found here: http://pastebin.com/ece4cwXF My php-fpm.conf can be found here (all the ...
3
votes
1answer
1k views

Nginx/PHP-FPM long log lines get truncated

I am unsure is that is a Nginx or PHP-FPM setting, but long log lines are getting truncated. Is there a setting to increase the max log line length?
2
votes
1answer
3k views

Getting correct SERVER_PORT to php-fpm through nginx and varnish

The goal is to get PHP aware of the correct web-facing server_port. The setup is: nginx on port 443 reverse proxying to varnish on port 80 reverse proxying to nginx on port 8008 and running php-fpm ...
1
vote
0answers
179 views

php-fpm process dieing

I have a problem. Playing around with php-fpm and nginx yields great results for speed. However the php-fpm process just dies if I hold F5 for like, 10 seconds. Is there a way to prevent the php-fpm ...
1
vote
1answer
134 views

Load specific .php with specific upstream server in nginx, php-fpm

Well I need suggestion, I have server setup one box - nginx, php-fpm and other box with only php-fpm installed, working as load balance. I am using upstream function to set load balance. How to serve ...
2
votes
2answers
3k views

Nginx load balance with dedicated php-fpm server

I got server setup with nginx+php-fpm and mysql. I have another server with only installed php-fpm, so wanted to use as load balance. But when I am using this dedicated server with php-fpm as load ...
1
vote
2answers
1k views

I need clarification on Apache2, MPM-Worker, FastCGI, PHP5-fpm, suEXEC?

My current configuration is: Apache2 + MPM-Worker AND FastCGI + PHP5-fpm (PHP 5.3.2) ON Ubuntu 10.04 LTS I have a single pool of 2-5 processes running as a different user from that of the default ...
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
622 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
12k 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 ...
17
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
16k 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
213 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 ...
3
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
485 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
754 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
579 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
8k 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
623 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 ...
46
votes
7answers
94k 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.