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
2answers
1k 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 ...
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 ...
2
votes
3answers
5k 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 ...
2
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 ...
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", ...
2
votes
1answer
258 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
2
votes
1answer
1k views

Mysterious error with php5-fpm

I'm having a very difficult case with latest php5-fpm (from debphp) and nginx 1.4.3 on Ubtuntu 12.04LTS. In short, I cannot start php5-fp at all, I keep getting this error in syslog: kernel: ...
2
votes
3answers
2k views

How can i find out why my php5-fpm failed to start?

i get 504 gateway timeout when i try to reach my server a small check didn't find any logs on php5-fpm logs, but just to make sure, i tried to restart it. when i'm trying to restart it: sudo service ...
2
votes
2answers
1k views

PHP-FPM stops responding and dies

I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site ...
2
votes
2answers
537 views

Ram issues with NGINX, PHP-FPM+APC and Varnish

I'm running a 512MB and i have lot of ram issues. I think is due to my configuration. root@s1:~# free -m total used free shared buffers cached Mem: 1024 ...
2
votes
1answer
210 views

Making Nginx send 4xx/5xx errors from PHP-FPM

I have Nginx setup to reverse proxy all files ending in .php. In some scripts, I check for parameters and send "406 Not Acceptable" as a generic error which needs to be picked up on jQuery/from Ajax. ...
2
votes
3answers
1k views

How do I enable PHP’s flush() with nginx+PHP-FPM?

I’m using nginx with PHP-FPM (APC is installed). I need PHP’s flush() to work. Is this possible? Things I’ve tried so far: Disabling all output buffering in php.ini, as well as output compression. ...
2
votes
1answer
1k 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 ...
2
votes
1answer
872 views

Continuous segmentation faults (code 11) with nginx and php-fpm

I'm running a CentOS 6 64bit server with 1.2 GHz CPU and 2.4 GB RAM. The server runs nginx and php-fpm with the APC extension and also mysql. A couple of weeks ago the server starting continuously ...
2
votes
2answers
3k 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
1k 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 ...
2
votes
2answers
249 views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
2
votes
2answers
2k views

Increase PHP-FPM's max upload/post size

I'm running php5-fpm under Nginx on Ubuntu 14.04. I want to increase the max upload size. I have edited my /etc/php5/fpm/php.ini to have the following lines defined as below: upload_max_filesize = ...
2
votes
2answers
150 views

403 statuses on nginx at FreeBSD

I'm trying to switch from an Apache hosting solution to nginx with php-fpm on FreeBSD 9.2. I'm rewriting my script for creating vHosts and stuff for nginx now and get 403 statuses when I try to ...
2
votes
1answer
8k views

FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

I know this isn't a unique question, but perhaps the manifesting situation is unique. Answers found elsewhere don't match what I believe are my circumstances. I have a box hosting a few sites and, ...
2
votes
1answer
2k 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 ...
2
votes
1answer
93 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 ...
2
votes
1answer
2k views

Apache FCGI PHP-FPM Mac OS X 10.8 unable to bind

So I have found a few other threads about this kind of issue, but their solutions aren't working for me. Basically, this is my development machine and the setup has been fine for a number of weeks ...
2
votes
5answers
3k views

Update to recent stable php in Ubuntu 12.04

We run an Ubuntu 12.04 server where php 5.3.10 is installed by default. I thought Ubuntu did only apply bugfixes in their updates, so micros like 5.3.x should pass through. Apparently, our version ...
2
votes
1answer
2k views

nginx & php-fpm and custom header

I would like to pass some custom header (ACCESS_TOKEN) from client RESTful application (JS) to application server (php-fpm). I had read that nginx should pass all http headers to php, but somehow it ...
2
votes
2answers
2k views

Disable FastCGI Read Timeout in Nginx?

Is there a way to disable the read timeout for FastCGI? (fastcgi_read_timeout) Setting it to zero does not work and just causes an immediate timeout. Nginx 1.0.5 PHP-FPM 5.3.6-13ubuntu3.6 The ...
2
votes
1answer
2k views

How to free PHP-FPM memory?

There are several discussions complaining high memory usage of PHP-FPM, without any practical approach to overcome. As I explored the problem with numerous tests, the problem is related to the age of ...
2
votes
1answer
100 views

Is the server still vulnerable to attack if we don't turn off cgi.fix_pathinfo?

The /etc/nginx/sites-available/default file that comes with nginx installation has the following content: # You may add here your # server { # ... # } # statements for each of your virtual hosts to ...
2
votes
1answer
139 views

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
2
votes
1answer
198 views

why is php-fpm running as nobody?

I recently installed php-fpm on my server (CENTOS 6.5 x86_64 standard, WHM 11.44.1 (build 7)) following the instructions here: ...
2
votes
1answer
184 views

High Mysql Connections

Having a challenge discovering why results are as they are. Perhaps missing something obvious. Sorry this isn't very specific. But if anyone has an pointers on areas to focus on that would be very ...
2
votes
1answer
170 views

Nginx throws 404 only on php scripts using php-fpm

I've installed a testing server using nginx + php-fpm. I've tried all of the following: Nginx + Php5-fpm not rendering php files nginx + php fpm -> 404 php pages - file not found When accessing ...
2
votes
1answer
2k views

Nginx & PHP-FPM - Unable to open primary script ERROR

I have a blog with some rewrite rules when in comes to viewing single posts. The viewing is handled by a file named view.php. I am using some rewrite rules in my vhost config as follows: location ...
2
votes
2answers
942 views

nginx+php-fpm(chroot). No input file specifed

OS: Centos PHP: 5.5.6 Nginx: 1.4.4 Nginx conf server { listen 80; server_name example.ltd; root /srv/example.ltd/www; index index.php; access_log /srv/example.ltd/logs/nginx-main.log main; ...
2
votes
1answer
451 views

PHP-FPM not working as global PHP handler on Apache, CentOS 6.4

I'm trying to switch PHP handler on my server from mod_php to PHP-FPM. But something with my setup is worng. When I'm trying to open server.com/info.php, it's being opened as standard text showing ...
2
votes
1answer
525 views

CakePHP and Wordpress on Nginx PHP-FPM

I'm trying to configure both CakePHP and a wordpress blog on the same server. CakePHP here: http://site.com/ Wordpress blog here: http://site.com/blog/ What works: The whole CakePHP app and going ...
2
votes
1answer
320 views

Connection timed out NGINX php-fpm mail()

I am porting a PHP site from an Apache server too a NGINX server. First I will get rid of apache to avoid any problems: # service httpd stop # yum erase httpd* Now I am going to install php-fpm so ...
2
votes
1answer
1k views

Using Zend Optimizer+ with php-fpm + nginx

Note: I am talking about a component previously in Zend Server, but is now a standalone module and open-sourced, and will be bundle with PHP 5.5, it has performance/usability edge over the more widely ...
2
votes
3answers
3k 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 ...
2
votes
1answer
174 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
3answers
875 views

Nginx and php-fpm fails with high load: “Possible SYN flooding on port 80” and “104: Connection reset by peer”

I have quite heavy loaded web server using: Ubuntu server nginx php-fpm + apc Yesterday something wierd happened with my server. It crashed and stopped responding and after I rebooted it, web pages ...
2
votes
2answers
2k views

Configuring Nginx & php5-fpm to work with Codeigniter

As I'm trying to make my switch from Apache 2 to Nginx, I faced dozens of problems, and still fixing them. anyway, I'm trying to make them work, but no-luck yet. So I'm asking here looking for ...
2
votes
1answer
400 views

Nginx/php-fpm processes falls in Uninterruptible sleep

I got nagios critical warning about a server, and when i checked ps -aux i found that all of nginx (php-fpm) are in Uninterruptible sleep www-data 1330 0.4 0.3 299992 108560 ? D 16:06 ...
2
votes
3answers
601 views

MySQL Execution Time Spikes

I am having issues with MySQL all of the sudden today. Details: OS: CentOS release 5.7 Server type: Parallels virtuozzo container running on mediatemple DV 4.0 package Average total memory usage: ...
2
votes
4answers
3k views

How to avoid index.php in Zend Framework route using Nginx rewrite

I am trying to get rid of index.php from the default Zend Framework route. I think it should be corrected at the server level and not on the application. (Correct me if I am wrong, but I think doing ...
2
votes
2answers
3k 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
1answer
285 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 ...
2
votes
1answer
949 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
2answers
991 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. ...
2
votes
2answers
776 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. ...