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)

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
509 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
767 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
27k 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
364 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
7k 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
795 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
742 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
430 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
800 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
478 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
658 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
856 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
806 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
656 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
286 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
372 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
863 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
7k 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
182 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
135 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
625 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 ...