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
6k views

NGINX + php-fpm + APC High CPU Load

I am reaching out for some help here, I have spent quite a few hours on this site searching the posts and also on google trying to see what the issue may be and trying to solve my problem without much ...
10
votes
1answer
11k views

The strange case of Mr. Time To First Byte

I've got a webserver on a Linode 1024 VPS based on Ubuntu 11.10 Nginx 1.0.5 PHP 5.3.6 (with PHP-FPM, APC) Varnish 3.0.2 And a couple of blogs there based on WordPress 3.3.1. One of them is a ...
0
votes
4answers
5k views

PHP-FPM Timeout Issue Everyday

I'm running a dedicated server with nginx, PHP-FPM, MySQL and have a few sites running on it but I'm having a timeout issue everyday, pretty much every 24 hours from the site that is running ...
1
vote
1answer
342 views

nginx + php-fpm serves raw php

I'm trying to setup nginx and php-fpm on Arch Linux. I've been reading through the nginx wiki and its linked guides. Static pages work great. PHP pages don't seem to get passed to php-fpm. When I view ...
2
votes
2answers
4k views

nginx, php-fpm, and multiple roots - how to properly try_files?

I have a server context which is rooted in a login application. The login application handles, well, logins, and then returns a redirect to "/app" on the same server if a login is successful. The ...
2
votes
2answers
4k views

Finding Nginx/PHP-FPM bottleneck that is causing random 502 gateway errors

I work for a rather busy internet site that is often gets very large spikes of traffic. During these spikes hundreds of pages per second are requested and this produces random 502 gateway errors. Now ...
2
votes
1answer
7k views

How to limit PHP-FPM memory usage?

I'm running an Ubuntu 10.04 nginx webserver with PHP-FPM. It has 512MB of total memory (256MB swap). After starting the PHP-FPM process (/etc/init.d/php5-fpm start), it uses an acceptable ~100MB for ...
1
vote
2answers
1k views

Why the php-cgi wrapper script for php-fpm? (Using virtualhost and suexec.)

I just setup my server with Apache, FastCGI, and PHP-FPM. My question is regarding the /cgi-bin/ folder: is it really necessary to have a /cgi-bin/php-fpm wrapper for every single virtualhost that ...
0
votes
1answer
1k views

Running php-fpm pool with root privileges?

I want one of the pools run with root privileges. Is this possible? I've tried putting user = root group = root but it didn't start. Figured it out by adding a user to /etc/sudoers file with: ALL = ...
1
vote
2answers
2k views

All Nginx Virtual Hosts redirect to one VHost

I've about 4 different hostnames defined in the sites-enabled/domain.tld files. Each of the files are in the following fashion: #Redirect everything to the main site. server { server_name ...
1
vote
2answers
1k views

Implications that come with chrooting php-fpm

I am creating a production server that will run nginx with php-fpm. I want to have a good mix between securing the server, and still having good quick workflow. Now one thing that always secures the ...
5
votes
1answer
6k views

PHP-FPM's chroot and chdir directory

I am setting up php-fpm with chrooting enabled. Now I see that there are two options, and I want to know what the exact difference is. The setup has: chroot = /var/www/domains/domain.tld/ ; Chdir to ...
0
votes
3answers
1k views

php-fpm invokes oom-killer

I'm seeing an issue where PHP-FPM works perfectly for a few days, and then decides to fill up all the memory + swap and invoke OOM-Killer. After this happens, the server is completely dead and you ...
1
vote
1answer
273 views

PHP 5.3.8 doesn't load module xapian.so

I have web server on fedora 16 nginx + php-fpm (PHP 5.3.8),all installed with yum from standard repo. I'm trying to use xapian.so module so I istalled php-xapian and added extension=xapian.so to my ...
6
votes
2answers
6k views

Apache2 fcgid (not FastCGI) with PHP FPM

Apache2 has a built in fastcgi replacement, called fcgid. That's fine, but it lacks the FastCgiExternalServer directive, which I used to connect to the PHP-FPM. How can I do the same with the fcgid ...
0
votes
1answer
803 views

Nginx serves files under root dir, but not from subdirs

I am running nginx on Ubuntu 11.10 with php-fpm and SELinux. The site is served over https/ssl Content that is directly under any sites root dir is served, but when trying to access a subdirectory ...
1
vote
1answer
2k views

Wordpress admin on nginx+php5-fpm on VPS incredibly slow. Other apps/WP front end run fine [closed]

I thought this might be a StackOverflow question, but I found Nginx+php5-fpm being discussed here at What is wrong in my php-fpm configuration? so I'll post here. Other research done is multiple ...
1
vote
2answers
2k views

Amazon EC2 t1.micro + nginx + php-fpm = somtimes dead slow

First something about the infrastructure: We have migrated one of our backend/admin servers to amazon. The applications on this server are only used sporadically (max. 10 parallel users). We are ...
1
vote
1answer
308 views

FPM active processes constantly grows

Recently I've had to confront to php-fpm issue with constantly growing of available active process. It was reaching max_children and then restarted. The graph shows "active processes" value from pool ...
0
votes
1answer
1k views

nginx perl not working

I have NGINX working happily with PHP FPM all tickety-boo. I am trying to add some Perl pages. I have this in my default site config; location ~ \.pl$ { gzip off; include ...
3
votes
2answers
2k views

Securing PHP via open_basedir based on script path

I have several users running PHP scripts on a server and I'd like to lock it down so that their scripts can only access files in their www directory (it doesn't use linux user accounts, so there isn't ...
3
votes
1answer
1k views

Nginx PHP-FPM Basic Auth

I have nginx with php-fpm installed on Debian Squeeze. Directory tree is: /var/www/mysite index.php secret_folder_1 admin.php static.html secret_folder_2 admin.php static.html pictures ...
2
votes
1answer
2k views

Symfony2 app in subdirectory nginx

I'm trying to setup a symfony2 app in a subdirectory of our Server Webserver: nginx 1.1.6 + php fpm OS: gentoo my target is to get the app working from a subdirectory subdomain.xy.domain.tld/tool ...
1
vote
1answer
718 views

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...
1
vote
2answers
1k views

PHP-FPM Workers messing up php.ini loading?

I installed PHP 5.3.8 from source on Ubuntu Natty. I also enabled FPM during configuration. However, I've been having issues installing PHP extensions. When I add the extension to my php.ini file ...
0
votes
1answer
718 views

Configuration Issues with PECL and PHP-FPM

I'm using Ubuntu Natty. I recently installed NGINX 1.0.6 and PHP 5.3.8 (with --enable-fpm) from source. Everything went ok and I tested it with an info.php page with phpinfo(). I then installed APC ...
1
vote
1answer
5k views

Why did php5-fpm restart fail?

I am getting this error when i restart php Restarting PHP5 FastCGI Process Manager: php5-fpm failed! I am now phpless. I did touch the config file but i cant undo it as i loss my connection and ...
2
votes
1answer
300 views

nginx connection time issue on some IPs

I have recently shifted my server to nginx and php-fpm getting rid of apache. This has helped improves speeds of my website. Everything seems to work fine until i came across this issue, i noticed ...
1
vote
1answer
1k views

How to set the httpd.conf when using php-fpm with php(5.3.8) and apache2?

I want to use fastcgi in apache2 with php(5.3.8). I installed fastcgi_module in apache, and compiled php with--enable-fpm. I also found some tutorials,there were two methods in their settings: ...
1
vote
2answers
3k views

Nginx doesn't send _SERVER[“DOCUMENT_ROOT”] to PHP-fpm

This is part of my nginx configuration file: # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; ...
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
444 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
6k 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
2k 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
6k 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
167 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
607 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
486 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
21k 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
6k 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 ...
2
votes
1answer
5k 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
100 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
537 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 ; ...