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
0answers
396 views

What is the correct way to log PHP script's execution time and memory usage?

I want to monitor the execution time and memory usage for my web application running on Nginx + FPM. To that end, I am generating execution time and memory data in the page footer. I can also insert ...
0
votes
1answer
53 views

File not found “location issue”?

I'm stuck with a File Not Found issue with Nginx and FastCGI for PHP. Could someone have a look at my conf file? server { listen 80; ## listen for ipv4 listen [::]:80 default ...
2
votes
1answer
716 views

Can not optimize php5-fpm to work without errors

I have installed ngix + php5-fpm. I am happy with it but I can not optimize php5-fpm so that it works without errors. Each fixed error creates a different error. First I had the the default settings ...
0
votes
0answers
377 views

Cacti redirecting to login always

I have just manually installed Cacti 0.8.8a on a Debian 6 box with NginX 1.2.0 & PHP5-FPM 5.3.20 After going to through the initial cacti-PHP install config checks, I was brought to the login ...
3
votes
1answer
858 views

Segfault PHP-FPM, Nginx, Freebsd

We are experiencing CPU shortage at high-load. It only happens at some point when online users are around 1300-1400 (according google analytics). We are receiving Empty Response in browser. It seems ...
0
votes
1answer
134 views

Switching b/w versions of PHP on a NginX + PHP-FPM Setup

On Apache you could easily configure it through an htaccess file: <IfModule mod_fcgid.c> Action php-fcgi /fcgi-bin/phpcgi-starter-5.3 </IfModule> <IfModule mod_fcgid.c> Action ...
0
votes
1answer
495 views

Change 'File not found.' message with Nginx + PHP-FPM

Is it possible to change the message displayed when a user tries to navigate to a PHP script that does not exist on the server. In my Nginx + PHP-FPM configuration it displays File not found. I would ...
0
votes
1answer
1k views

Is it possible to set up PHP-FPM with different pool-options (xdebug enabled / xdebug disabled)

I've a LEMP environment and need the option to separate all development subdomains from staging (development with xdebug staging without). dev.projectX.mydomain.tld staging.projectX.mydomain.tld ...
0
votes
1answer
137 views

Compiling / installing up-to-date nginx with fastcgi_cache on Ubuntu 12.04?

What is the recommended path to compile or install nginx with fastcgi_cache on Ubuntu 12.04 LTS precise that works with up-to-date nginx-common (read >= ver 1.2.7) packages? Or is there a method to ...
0
votes
1answer
966 views

Installing php5-fpm, missing pool.d directory

Novice here, so please be gentle :) I'm installing Nginx with php5-fpm on a Ubuntu 10.04 box according to this guide by ArsTechnica: ...
0
votes
3answers
581 views

php-fpm and nginx : file not found

I have a very common but annoying error, the classical : "File not found". I have the following nginx.conf : server { listen 80; server_name aperophp; root /home/gline/mysite/web; ...
0
votes
1answer
295 views

OpenVZ with VSwap causes php-fpm/mySQL errors on nginx

I'm running into a rather nasty issue, and hope that anyone here can help me with a possible solution as I'm pretty much brickwalling right now. The situation: I have an OpenVZ VPS that is ...
2
votes
3answers
4k views

Error configuring and installing PHP 5.3.21 on Ubuntu 12.04

I'm trying to install PHP 5.3.21 on a Rackspace Cloud Server running Ubuntu 12.04 but I keep running into errors during configure. It keeps giving me the following error: configure: error: Cannot ...
1
vote
2answers
1k views

Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?

TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response? I have a set up running php-fpm behind nginx. In general, this works very ...
2
votes
1answer
3k views

php5-fpm not responding

I've migrated to php5-fpm on nginx setup ~2 months ago. Everything was fine until a few days ago, when I noticed my php websites not responding (the browser would simply just wait for data and ...
0
votes
1answer
407 views

php script killed after 30 seconds and throwing Internal Server Error

I use php_fpm_event on my server and after 30 seconds of execution the process is being killed and I see Internal Server Error. However I've set much larger values: [admin] listen = 127.0.0.1:57797 ...
0
votes
1answer
108 views

Nginx - php fpm index file being sent

I have a simple nginx setup and things work fine. I have set the index as follows: index index.html index.php The server_name is set to local.nginx. If i request http://local.nginx it works fine, ...
0
votes
1answer
136 views

Nginx config for php-fpm in a dir /forum for a PHP forum

I have a working Nginx config for a static HTML site. I need to add a forum at http://blah.com/forum, php-fpm is installed and working as a unix socket (I have tested and got this working via a test ...
6
votes
3answers
15k views

php5-fpm: server reached pm.max_children

I have Nginx+php5-fpm. Several times per hour my website stucks and in logfile I see the following: WARNING: [pool www] server reached pm.max_children setting (5), consider raising it. ...
1
vote
3answers
10k views

Make PHP-FPM Listen at 'IPAddress:Port' Instead of '/var/run/php5-fpm.sock;'

As I was load testing my site today (using blitz.io); despite lots of RAM (more than 50%) and CPU power (over 70%) available, results showed that my site started timing out at a certain number of ...
3
votes
1answer
2k views

PHP5-FPM and 'ondemand'

I've set up a server with Nginx and PHP5-FPM, and things are running fine. However, as I add more and more sites to the server I see that the memory usage steadily increases, and I've come to the ...
2
votes
2answers
5k views

php-fpm Bad file descriptor errors

I'm using php-fpm with customer separate pools. Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log: [11-Feb-2013 22:12:39] ERROR: unable to ...
0
votes
1answer
2k views

apr_socket_recv: Connection timed out (110)

I have nginx/php-fpm running but I am getting the following: apr_socket_recv: Connection timed out (110) This is a massive big box. 16 cores/24GB RAM What do I need to tune to increase the allowed ...
0
votes
1answer
2k views

Impossible to run php-fpm on server restarts (Ubuntu 12.04 x64)

I'm setting up a server with nginx + php-fpm (5.4.11) on ubuntu 12.04 LTS (x64) I installed nginx from the repository and I compiled PHP myself. Everythings work fine when I start php-fpm and nginx ...
1
vote
3answers
209 views

nginx + php-fpm + varnish + ssl

I have a social networking site and because of that we want to run ssl all the time. does this defeat the purpose of using any type of cache system for even static content since everything will be ...
0
votes
1answer
165 views

nginx alias using php5-fpm response 404

I use php5 fpm using nginx. but i have a problem. # debug alias location /bb/ { alias /usr/share/blahblah/; } file on http://mysite.localhost/bb/index.php was not found. but it's still on ...
0
votes
1answer
403 views

nginx - php-fpm: access restrictions for some php pages

I have a folder containing some PHP files served with php-fpm (fastcgi); inside tihs folder, I have a file which I want to be allowed for internal IPs and deny for external. The problem I have is ...
0
votes
0answers
764 views

Incomplete page by nginx -> fcgi -> php-fpm with keepalive

I have problem somewhere between nginx and php-fpm. When I use keep-alive connection for fastgcgi php-fpm, there is often problem with loading page. Page not completely loaded. I tried to debug using ...
0
votes
1answer
2k views

php-fpm, nginx magento store. Coming to a halt

We just moved to a new server. 2 x Dedicated, 48 GB ram, php-fpm, nginx, memcached, APC. We have an issue where each php-fpm process that spawns keeps getting bigger. A fresh restart of php-fpm shows ...
1
vote
1answer
489 views

adjusting php fpm configuration

Lately my server (i7-2600 @ 4x3.4ghz, 8GB Ram) is getting really high load averages. Ive cached the most popular pages and tried to remove them aswell to test if they are the fault, but it gives no ...
2
votes
1answer
2k views

Where can I find a PHP-FPM RC script?

I compiled PHP on my own computer, and I want to know how to setup a script to start PHP-FPM automatically. Can anyone suggest a script that will do this for me? I'm using a Ubuntu Linux server ...
1
vote
1answer
8k views

Nginx “rewrite or internal redirection cycle while internally redirecting to ”/index.html“”

I have pretty much a stock installation of LEMP on Ubuntu server that I was setting up just to host a few static files. When setting up PHPNuke just for testing purposes, I noticed that I didn't have ...
3
votes
1answer
84 views

cannot restart php5-fpm

I've made some changes in the .ini files and wanted to restart php5-fpm. /etc/init.d/php5-fpm restart Jan 20 14:25:48.171577 [ERROR] bind() for address '/var/lib/php5-fpm/apps.sock' failed: ...
0
votes
1answer
670 views

Php5-fpm too much memory usage nginx and ubuntu 11.04 32bit

I recently got vps with 512MB ram. I install nginx 1.2.4 with ph5-fpm and a simple wordpress installation . I currently have no traffic as its in development mode.But still It shows 495MB used and 80% ...
0
votes
1answer
1k views

Nginx php-fpm pool being blocked and stop responding

I'm having some issues with requests for pages not getting a response after requests take a long time to process. I have nginx setup to use php-fpm. I have two pools setup in PHP-FPM. One pool for ...
2
votes
0answers
434 views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
0
votes
1answer
552 views

How to install PHP FPM on CentOs 5.6

I am trying to install PHP FPM on my CentOS 5.6 server, but I wasn't able to get it to work. After downloading PHP 5.3.20 from their php.net, configuring it, making it and installing it, I got this ...
0
votes
1answer
406 views

Cannot execute PHP file from domain name

Server run on Amazon Linux AMI** (similary to redhat) I follow the installation from Install PHP-FPM, Nginx, & MySQL on EC2 with Amazon Linux AMI It's work properly if I call directly from server ...
2
votes
1answer
107 views

2 identical servers, one slower (higher load) than the other

I have a 3 servers setup, one frontend HAproxy sending requests to 2 backend servers. The backend servers use identical hardware and also identical software (Debian 6.0.6). They are similarly ...
1
vote
1answer
566 views

Blank PHP pages when using php-fpm and nginx on a Debian VPS

I keep receiving a blank page whenever I try to access a PHP page on my nginx webserver on a Debian VPS. nginx is working fine; I can access any normal HTML page. PHP-FPM is at least running, as I can ...
1
vote
1answer
110 views

How to setup a “server is down” message like Reddit and Twitter does? [closed]

I have a VPS with our Ubuntu LoCo Team's blog, but I want to setup a message that says the server is down when it happens, like Reddit and Twitter does. For example, if I restart the server or my VPS ...
0
votes
2answers
299 views

Cant find the php-fpm config

I cant find the php-fpm config file on my server. I tried to make an php-fpm.conf file in /etc/php.d/ folder, but it doesn't get included. Its not in these locations either: /etc/php-fpm.conf file or ...
2
votes
2answers
3k views

A complicated nginx/php-fpm chroot setup

I'm running nginx and php-fpm, and I want to set up jails for each host. My setup is a little complicated, so following tutorials on the web gets me nowhere. Each site has a directory ...
3
votes
3answers
4k views

NGINX + PHP-FPM + MYSQL - High CPU, Low RAM

All of a sudden our server started to act really weird, extremely high CPU usage and low RAM usage. I've never seen this before and I'm not sure what to do. I feel like if I could get the system to ...
0
votes
2answers
279 views

Nginx serving off the wrong root

I have 2 sites-enabled, with server_name as follows: server_name www.mysite.com mysite.com and server_name dev.mysite.com Problem: When I access the website via its IP address, by looking at the ...
1
vote
1answer
747 views

PHP5-fpm out of control - optimize configuration

I have a site with around 80K of visitors (daily). This site is hosted on linode.com and has a nodebalancer (same as a loadbalancer) with 3nodes behind it (2x linode 512 & 1x linode 1024). ...
1
vote
2answers
489 views

Installing php-fpm over php version missmatched

I have PHP installed by yum from the base @updates repository on Centos 6.3: php x86_64 5.3.3-14.el6_3 @updates 3.5 M I would like to install php-fpm version 5.3 because our web software works ...
2
votes
1answer
216 views

Overhead of many php-fpm processes on Linux?

I'm migrating the configuration of a webserver that runs PHP applications using PHP-FPM behind nginx. The server has about 40-50 (and growing) vhosts on it. The server is a single CPU VM with 1GB of ...
2
votes
1answer
662 views

php5-fpm configuration pm - (node) Process manager settings nodes in more layman terms

I have the following configuration for php-fpm [www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 user = www-data group = www-data pm = dynamic pm.max_children = 50 pm.start_servers = ...
3
votes
1answer
2k views

Can php-fpm support open_basedir set dynamically for multiple virtual hosts with a single user pool?

I am running into a problem where trying to set open_basedir dynamically under nginx (and apache) for php-fpm is "bleeding through" to other vhosts when running php-fpm as user "nobody" (for legacy ...