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
19 views

PHP-FPM Can't create enough children and stops serving requests

I'm new to PHP-FPM and I've noticed at random intervals it will seemingly just lock up. [26-Dec-2014 22:50:16] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or ...
0
votes
1answer
2k views

FastCGI: comm with server … aborted: idle timeout (30 sec)

I have multiple virtual webs running Wordpress but this one started to throw errors and I am unable to find the problem. Apache says: [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: ...
-2
votes
0answers
31 views

PHP-FPM 5.6 with NGINX is downloading app.php of Symfony 2 and throwing 403 forbidden

I've been trying to set up development environment in Vagrant using CentOS 7 + Nginx 1.6.2 + php-fpm 5.6.4 Everything went smooth and worked, until I installed Symfony 2 project with this folder ...
0
votes
1answer
20 views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
0
votes
1answer
911 views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
1answer
38 views

Why is my PHP server redirecting to the wrong address?

I'm setting up a PHP web server on OpenBSD. phpinfo() is up and running. But, every time I try to install Wordpress, it's redirecting the client to the dummy hostname created on OS install ...
0
votes
0answers
43 views

nginx hhvm bad gateway

I do have an issue with Nginx 1.6.2(compiled) and HHVM 3.4.2. Everything is installed 'fine' when I run hhvm info.php it returns 'HipHop'. But when I visit the website I get an 502 bad gateway, so ...
0
votes
1answer
902 views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
1
vote
1answer
2k views

Nginx redirect all request that does not match a file to a php file

I'm trying to get all request to: http://example.com/downloads/* redirect to http://example.com/downloads/index.php except if the requested file exist in /downloads/ ex: ...
0
votes
2answers
902 views

504 error in nginx +php-fpm : post request

I have a test server with nginx and php-fpm. Pages on the site are opening correctly, but when I want send POST request for example an "authorize on site" I get "504 Gateway Time-out error". Nginx ...
1
vote
2answers
1k views

PHP-FPM with Apache 2.2.22 and Ubuntu 12.10 - 500 Error, or returns text (not executing)

I am following this tutorial to try to install PHP-FPM on my LAMP stack. My config in /etc/apache2/sites-available/default contains (as per the guide) <IfModule mod_fastcgi.c> Alias ...
2
votes
4answers
3k 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 ...
0
votes
1answer
1k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = ...
2
votes
2answers
1k 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, ...
4
votes
2answers
663 views

Denying folder in Nginx causing PHP-FPM to not take precedence

The title says it all, but I have a very interesting problem that I am quite confused on. Basically, I have a simple WordPress installation, and I wish to deny a folder (along with all files in the ...
0
votes
1answer
25 views

nginx, web page degraded when root path is changed

I'm setting a wordpress up with nginx. Everything's seems ok : server is up phpinfo() test is ok the worpress install routine is showing up The only trouble is the root statement in the web server ...
3
votes
0answers
101 views

nginx & php-fpm [debug] 11: Resource temporarily unavailable

New Development The core php error logs are below, but the site specific error logs show this. The memory on my php.ini file is : memory_size 1024; so it's not php's memory limit. I've also ...
1
vote
1answer
28 views

Random HTML and cookie value gets appended to apache proxy_fcgi error message

I am using Apache with PHP-FPM on my web server. When user enters some random pathname that Apache passes to proxy-fcgi and the file could not be found, there will be a standard error recorded in the ...
2
votes
2answers
3k views

Optimize php-fpm and varnish for a powerfull server

My setup is: Intel® Core™ i7-2600 and RAM 16 GB DDR3 RAM varnish+nginx+php-fpm+apc for a not very heavy WordPress blog with W3 Total Cache and CDN My problem is that after 55 hits per second ...
0
votes
1answer
16 views

Is there any option to allocate fixed number of php process to an application?

I have an Ubuntu server with Nginx and PHP5-FPM in which the settings are as follows: /etc/php5/fpm/pool.d/www.conf pm = dynamic pm.max_children = 6 pm.start_servers = 4 pm.min_spare_servers = 2 ...
0
votes
1answer
13 views

php-fpm-5.6.2 and mod_vhost_alias ProxyPassMatch

I've been using successfully fcgi for php and mod_vhost_alias. Now with new server I was looking into php-fpm which looks interesting with Apache/2.4.6 on CentOS 7. php-fpm setup is working fine but ...
0
votes
2answers
118 views

Nginx / PHP-FPM = Blank pages

Dear ServerFault Community, I managed to get my site into a fully functional state two days ago.. Around 3 hours ago today, I've restarted my linux box and have found my site to no longer work. I have ...
0
votes
1answer
2k views

NGINX connect() to unix:/var/run/php-fpm/vhost.sock failed

I use Centos 6.5 (64bit) with Nginx, PHP-FPM. Nginx with fastcgi connect to PHP-FPM using unix domain socket. When I place the socket in a directory with proper permission, it's ok. However when I ...
2
votes
0answers
24 views

Q: lighttpd uses 2GB ram while idle for private page

I'm running a server with lighttpd installed. It runs php5-fpm and servering an owncloud server. Ubuntu Server 14.04 lighttpd/1.4.33 (ssl) (Jan 28 2014 17:26:04) - a light and fast webserver PHP ...
2
votes
1answer
6k views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
0answers
5 views

Low TPS using Virtualbox + Ubuntu + Nginx + PHP-FPM + Silex [migrated]

I am trying to understand why I get such a low TPS rate on my development environment. I am using the following: Mac OS X Mavericks VirtualBox Ubuntu 14.04 Nginx PHP5-FPM Silex I did not tweak ...
-1
votes
3answers
1k views

Laravel on nginx+php-fpm returns blank page

I'm having this issue with Laravel which is served by nginx + php-fpm, it's just returning a blank page. Neither nginx nor php nor laravel are logging any errors at all. When running the index.php ...
0
votes
1answer
28 views

Configure Monit to monitor PHP5-FPM on Ubuntu/Nginx setup

System: LEMP running on Ubuntu 14.04 I'm trying to configure the tool Monit to restart Nginx or PHP-FPM if ever there is a problem. It is correctly monitoring Nginx however under status for PHP-FPM ...
35
votes
7answers
68k 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.
0
votes
1answer
442 views

Nginx error: “Primary script unknown” while reading response header from upstream

I have installed Nginx 1.6.2 with PHP-FPM (PHP 5.5.18) under CentOS 6.6 server. I didn't touch nothing else but /etc/nginx/conf.d/default.conf file where I made some changes (see below): server { ...
0
votes
2answers
48 views

Header unset seems not to work with apache 2.4.10 and php-fpm

I'm trying to pass headers from php code back to the apache accesslog by using HTTP headers, like so: Header note X-Userid userid Header unset X-Userid LogFormat "%h %l %{userid}n %t \"%r\" %>s ...
0
votes
2answers
55 views

Chroot doesn't work in PHP5-FPM + nginx

I have added two line in: "/etc/php5/fpm/php-fpm.conf". There are: chroot = /home/user/www/public_html chdir = / In the server section of my: /etc/nginx/sites-available/default: root ...
1
vote
2answers
966 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: ...
14
votes
7answers
58k views

Nginx + php-fpm “504 Gateway Time-out” error with almost zero load (on a test-server)

After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres ...
0
votes
0answers
33 views

PHP-FPM ERROR: unable to read what child say: Bad file descriptor (9)

I'm having this issue: Apache 2.2.26 PHP 5.4.32 PHP-FPM 5.4.32 Zend OpCache 7.0.3 PHP-FPM Config: [testuser] listen = /dev/shm/testuser-php.sock listen.owner = testuser listen.group = apache ...
1
vote
1answer
3k 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
2answers
1k views

Nginx error stating connection refused to PHP-FPM port

Newly create LEMP stack running PHP-FPM on Ubuntu 14.04 x64. Attempting to access some PHP in my webroot. Browser is showing 502 Bad Gateway and Nginx error log is showing the following (my IP and ...
2
votes
1answer
24 views

Php-fpm process always running

I am using Nginx with Php-fpm (php 5.5 + opcode) for a very high traffic web site, php-fpm status endpoint to monitoring what going on. After a big traffic peak, 200 "active process" are still running ...
-1
votes
0answers
29 views

Cache php calls on client side [migrated]

I own a website hosted on a debian 7 machine running nginx. When a user logs in, I serve him a lot of generated by php. Some of these files are always the same. Is there a method to cache them on a ...
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: ...
3
votes
2answers
2k 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 ...
0
votes
1answer
46 views

Huge request duration value for a particular php script

We are facing issues with a php-fpm server that spawns too many children. This morning, I set up php-fpm's status page, and got an interesting piece of information : among all the scripts that are ...
0
votes
1answer
51 views

Pass PHP5-FPM errors back to error page script? [closed]

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
1
vote
2answers
2k 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 ...
0
votes
1answer
67 views

Drupal 7 Multi-site Sub-folders nginx configuration

I'm using perusio configuration for drupal but I think that is only designed for single web site. php does not work in subfolders. I want to create a structure as follows: Main site ...
1
vote
1answer
40 views

How can I monitor resource usage for PHP sites on a per-virtual-host basis on GNU/Linux?

Running a bunch of PHP sites via apache2.4/mod_php on RHEL using the prefork MPM. My apache children are using a fair bit of RAM and lots of CPU. I would like to be able to attribute RAM/CPU use on ...
-1
votes
2answers
63 views

Mysqld.bin and php-fpm eating up all my CPU

mysqld.bin and php-fpm are eating up all my CPU. Here is the output of top run 10 times: https://gist.github.com/two7sclash/5081188dd00e8fc6bfcb I've got plenty of memory and CPU for the load ...
0
votes
1answer
100 views

Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM

There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not googleable). Why might I choose one over ...
0
votes
1answer
402 views

504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx

I have (well had) a working server with nginx on board. A server (dedicated) was only used to host a drupal site. Recently we decided to host also a magento store on it and started preparation. Since ...
0
votes
1answer
113 views

PHP file downloaded instead of executed with nginx try_files

I'm using Ubuntu 14.10, nginx 1.6.2, php 5.5.12. I have a site set up like this: server { root /usr/share/nginx/www/oliviataussig; index index.php; server_name oliviataussig.com ...