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
2answers
642 views

Nothing is written in php5-fpm.log

I have two servers which is Ubuntu 12.04 and Ubuntu 14.04. When I use Ubuntu 14.04 in my new server and enabled the php-fpm log file found under /etc/php5/fpm/php-fpm.conf that reads as follows: ...
6
votes
2answers
6k views

nginx with php-fpm downloading php files rather than executing them on mac os x (local environment)

I'm having trouble getting PHP files to execute on my local development machine. I seem to have successfully installed nginx and php-fpm also seems to be correctly installed, and running but can't ...
1
vote
2answers
3k views

php-fpm: hundreds of seconds in the log

I have nginx+php-fpm web server So I've noticed in php5-fpm.log many strange lines: [03-Sep-2013 09:25:23] NOTICE: [pool www] child 23999 exited with code 0 after 321.832329 seconds from start ...
0
votes
1answer
41 views

PHP-FPM - problems with the pre-start process

My webserver runs NGINX with PHP-FPM. After (I guess) an update, the service php5-fpm stopped working and refuses to restart/start - even after a reboot. As another webserver does the same updates and ...
-1
votes
1answer
73 views

502 bad gateway after upgrading PHP5-FPM

I just upgraded php-fpm and my server has gone away with a 502 bad gateway I've been searching for solutions and came across some like this: http://stackoverflow.com/a/10470827/1612432 and this ...
1
vote
1answer
567 views

CentOS 6.6 with Nginx 1.6.2 - Suddenly can't restart nginx - nginx: [emerg] open() “/usr/share/nginx/on” failed (13: Permission denied)

This is a new install in which nginx previously started and stopped normally. I believe this error arose after enabling server blocks which tested (nginx -t) successfully. I then tried to restart ...
0
votes
0answers
68 views

How to run 2 fast-cgi (php-fpm) websites on an nginx server?

I have nginx running with a few vhosts for different domains. One of them uses php-fpm. I need to add another vhost(for a new domain) that points to a new directory and that also has to use php-fpm. I ...
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, ...
3
votes
1answer
32 views

nginx locations and precedence (deny ignored for *.php)

I'm a somewhat experienced Apache admin in a past life, but I've decided to take the plunge and learn nginx. So far everything seems fairly intuitive, but it's clear that I haven't quite internalized ...
3
votes
2answers
6k 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 ...
0
votes
0answers
15 views

php-fpm timeout (ping and status also timed out)

I've problem with my fpm in production server. The fpm keep hanging until I restart the service. After restarting, the problem gone. But it will return in a day or two. Keep it restarting won't be a ...
2
votes
1answer
78 views

Need recommendations on Firewalled DMZ design for PHP web server on Linux

The 3 options we are considering are listed below. Which one is best or is there a better solution we didn't consider. All servers are linux with nginx. Do you see anything particularly wrong with ...
0
votes
1answer
66 views

SSL on Ubuntu 12 LTS with Apache and PHP-FPM

After reading many tutorials I managed to run successfully Apache MPM-Worker and PHP-FPM on Ubuntu 12 LTS. I have separate pools for each user and everything works like a charm. However I need to ...
0
votes
2answers
38 views

Why arent these web pages getting processed by PHP?

I have created a fresh install of nginx and php5-fpm on an Ubuntu 14.04 server and made the changes shown below to get configuration working. When I browse to a directory containing an index.php or ...
3
votes
1answer
254 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. ...
3
votes
5answers
14k views

Nginx/FPM/PHP all php files say 'File not found.'

i just installed nginx 1.1.13 and php 5.4.0 on a centos 5.8 final 64bit machine. Nginx and PHP/Fpm are running, and I can run php scripts via ssh command line, but in the browser I keep getting 'File ...
2
votes
2answers
2k 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: ...
1
vote
2answers
630 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 ...
7
votes
1answer
4k views

Is the PHP option 'cgi.fix_pathinfo' really dangerous with Nginx + PHP-FPM?

There has been a lot of talking about a security issue relative to the cgi.fix_pathinfo PHP option used with Nginx (usually PHP-FPM, fast CGI). As a result, the default nginx configuration file used ...
0
votes
0answers
130 views

Apache + Event_MPM + FastCgiExternalServer + php5-fpm : php-fpm hangs emergency_restart_threshold does not reset

Sorry if this seems rambled. I have been trying to troubleshoot / solve this for the past 20 hours straight, while having to babysit the server and restart php5-fpm every time it goes down. I imagine ...
0
votes
0answers
48 views

Set php-fpm slow log file permissions

I have a setup of php-fpm on CentOS 7 with each user having their own pool and log files. I want to make sure that each user is able to view their own log files. This works great for the PHP ...
0
votes
0answers
32 views

Location directive not working when using php-fpm (via mod_fastcgi)

I've configured a virtualhost which should be completely restricted with a SSL client certificate, except one location (/Public). My configuration in my virtualhost: <Location ~ ^/(?!Public)> ...
0
votes
1answer
454 views

Joomla Extension Uninstall Causes 502 Bad Gateway

We have a VPS with some PHP websites hosted on our Ubuntu 12.04 LTS servers using NGINX. In a Joomla 3 site, when uninstalling an extension that errors out, the page shows an NGINX error page with a ...
0
votes
1answer
2k views

NGINX failed to connect to php-fpm socket

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 ...
0
votes
1answer
83 views

Correct nginx virtual host for wordpress that's installed on non-root directory?

Let's say my main domain is example.com. I install SSL on the domain and I can successfully access domain. My preferred version is using www, so all requests will be redirected to ...
1
vote
1answer
1k 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 ...
0
votes
2answers
6k views

Recommendation for PHP-FPM pm.max_children, PHP-FPM pm.start_servers and others [closed]

I have the following server: Intel® Xeon® E3-1270 v2 Single Processor - Quad Core Dedicated Server CPU Speed: 4 x 3.5 Ghz w/ 8MB Smart Cache Motherboard: SuperMicro X9SCM-F Total Cores: 4 Cores + 8 ...
1
vote
2answers
691 views

nginx 404 instead of 403 for empty directory

I have the following config for my nginx server: server { listen 80 default_server; server_name example.com www.example.com; root /var/www/example.com/web; index index.php ...
0
votes
0answers
31 views

Per-pool php.ini with PHP-FPM without php_value workaround

I'd like to use separate php.ini files for each PHP-FPM pool. I've checked similar questions and they all say to use php_value, but that's a really dirty workaround and would require to manually (or ...
8
votes
5answers
10k views

Apache 2.4 + PHP-FPM + ProxyPassMatch

I recently installed Apache 2.4 on my local machine, together with PHP 5.4.8 using PHP-FPM. Everything went quite smoothly (after a while...) but there is still a strange error: I configured Apache ...
0
votes
4answers
4k 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
2answers
7k views

Phpmyadmin location for nginx

I installed nginx and phpmyadmin. I set up a domain with these parameters to test phpmyadmin: server { listen 80; server_name example.com; root /usr/share/phpmyadmin; index index.php; fastcgi_index ...
0
votes
0answers
191 views

Wordpress and PHP-FPM slow

I cannot find answer elsewhere. I have plain vanilla Wordpress installation. No posts. Database completely empty. Server 1 is nginx + php-fpm Server 2 is mysql nginx & php-fpm set-up according ...
-1
votes
1answer
237 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
1
vote
2answers
3k 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: ...
0
votes
1answer
83 views

403 Forbidden error with fcgid and PHP

I'm trying to configure php and mod_spdy on Apache 2.4, Debian jessie, x64. I've followed this guide and configured Apache following this other guide and installed these packages: ...
1
vote
1answer
154 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
2
votes
1answer
97 views

Limit the total memory usage of PHP-FPM

I'm running PHP-FPM on my Debian servers. My question is about the memory usage. I can only set the memory_limit inside PHP, and that shouldn't be too low for some requests. I also can only set the ...
0
votes
0answers
62 views

Unable to open redis 6379 for inbound on AWS EC2

I have two servers on EC2. One hosting my php application and other hosting my redis server. I am managing my php session and data on redis server. So on my php server I gave the ip:port as session ...
1
vote
1answer
751 views

NGINX don't parse .php5 as .php

I have installed nginx with ISPconfig. Everything works fine except some websites I have ported from apache server unfortunately have .php5 extension and I don't know how to make nginx to parse them. ...
0
votes
1answer
538 views

Php-Fpm: status URL for all pools

I have an ISPConfig server serving php pages with FPM in ondemand mode. On another server with a single fpm pool I keep daemon monitored using the /status URL and work great. In ISPConfig case there ...
0
votes
1answer
109 views

SELINUX blocking php-fpm and nginx working together?

I'm having some issues with SELINUX. When trying to visit my website I get 403 forbidden from nginx and the server pops up with an error and says to use grep NGINX /var/log/audit/audit.log | ...
0
votes
1answer
15 views

Strange issue with Nginx compiled from source and Nginx from official Fedora repository

TL;DR Nginx, compiled from source, had trouble process .php files, while with the same PHP-FPM configuration, nginx , from official Fedora repository, worked like a charm on DigitalOcean 512MB Fedora ...
0
votes
1answer
347 views

nginx proxy pass / rewrite with multiple locations to passenger app and php-fpm

On a server for a small team of people (up to 30) I installed several services which have to be accessible from the browser. I want to use nginx because I consider it being more lightweight. All ...
3
votes
5answers
5k 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
38 views

Nginx hosting with path appended to index.php

I'm hosting an instance on Concrete5, and in addition to using a dynamic paths, they also use URLs in the weird form of www.mysite.com/index.php/path/to/page. I have it mostly working, but I'm ...
0
votes
0answers
41 views

Create .deb package after running passenger-install-nginx-module

I do need nginx with passenger support and also custom modules. For compiling nginx with the needed modules I use passenger-install-nginx-module provided by Phusion Passenger directly. I would like ...
0
votes
0answers
38 views

Wordpress low-level mkdir() call failing, despite correct file permissions

When trying to install a theme in Wordpress, I get this error: The file ownership and permissions are correct: # ls -l /var/www/ total 4 drwxrwxrwx. 6 nginx nginx 4096 Feb 24 09:35 wordpress ...
-1
votes
1answer
73 views

Wordpress is unable to write files, despite correct file permissions [closed]

I am unable to automatically install plugins or themes on my new wordpress setup. It gives me this screen: I believe this is usually due to a write permission error on the wordpress directory. ...
1
vote
1answer
86 views

nginx, fpm - Bad Gateway error on php

i'm stuck here with a Bad Gateway issues and PHP I use Nginx 1.6 in combination with FPM on Debian Wheezy. Its a clean and new installation. But everytime if i run a php file it will result in a Bad ...