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

Sometimes for Some users 404 Not Found Nginx + PHP-FPM

Sometimes (Not Always) , I Get Nginx 404 not found message on my site. Unfortunately there are no logs written about it neither in php-fpm or in nginx error logs. Can it be due to caching ? I am ...
1
vote
1answer
13 views

Configure Centos7 Apache 2.4 php-fpm to run as user

I would like to configure a Centos 7 Apache 2.4 Linode to use php-fpm to execute php as the file owner. The docs for earlier Centos6 / Apache2.2 don't work and the configurations I have seen for ...
0
votes
1answer
1k 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 ...
0
votes
0answers
14 views

Nginx PHP-FPM stops after connection timeout

I have a server with Nginx and PHP-FPM for a single web application. Everything works will until I make a request for a page that takes over the 60 seconds allowed. Then PHP stops responding to any ...
0
votes
1answer
892 views

how to get rid of xdebug cannot be loaded error

How do I get rid off this error when I run php-fpm In my phpinfo, xdebug is mentioned, so why do I get this error Failed loading xdebug.so: dlopen(xdebug.so, 9): image not found I have php54 ...
2
votes
1answer
74 views

Website not loading static files when NGINX has static cache content enabled

I have a VPS running CentOS with NGINX/PHP-FPM. Everything works fine, except when I add the following lines to enable the static cache content. If I do, the page does not load those files specified ...
-1
votes
0answers
17 views

ngnix php-fpm error centos

I'm using nginx version: nginx/1.6.2. I've tried to with only sock file but this is not working.. Anyone knows correct configuration ? php-fpm conf : listen = 127.0.0.1:9000 ; listen = ...
1
vote
0answers
40 views

nginx & php5-fpm exited on signal 7 (SIGBUS) / 502 Gateway Timeout

if got the problem when i load a page multiple times (i.E. 10 Tabs with autoreload) only some of the pages load others get 502. it doesn't depend on the content of the page. when i open the same page ...
0
votes
2answers
510 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 ...
0
votes
1answer
1k 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 ...
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
0answers
13 views

How to add dbase to PHP-FPM [closed]

I just moved some code to a new server running Nginx and PHP-FPM and now I am getting this error message: Fatal error: Call to undefined function dbase_open() I've Googled around but I can't ...
0
votes
1answer
20 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 ...
0
votes
0answers
19 views

Nginx+PHP-FPN slow only on the benchmarked domain [on hold]

While benchmarking my website using: $ ab -n 1200 -c 150 -k -H "Accept-Encoding: gzip, deflate" I notice that while the test is running it takes several seconds to access the same page from the ...
-1
votes
1answer
51 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 ...
2
votes
2answers
2k views

403 Forbidden when trying to access a folder in document root of nginx

When I access index.php, it works fine. But on localhost/pset7, it gives a 403. Here is the permission log, -rw-r--r--. 1 root root 51 Jul 31 14:21 index.html -rw-r--r--. 1 root ...
1
vote
1answer
1k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
1
vote
1answer
186 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
46 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 ...
0
votes
1answer
23 views

SOA: Is using PHP FPM to serve webservice traffic without NGINX a good idea?

I'm in the processes of developing a service oriented architecture using PHP. A member of my team has suggested that because each of the services serves only http traffic, serving responses only in ...
1
vote
2answers
864 views

PHP-FPM service status `stop/waiting` but workers are running?

Starting php5-fpm appears to work, but checking the status immediately shows that it is not running: [root@server ~]# service php5-fpm start php5-fpm start/running, process 4516 [root@server ~]# ...
3
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, ...
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 = ...
-1
votes
0answers
36 views

nginx php5-fpm white page

My nginx.conf: location ~ \/php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME ...
3
votes
1answer
24 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
10 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 ...
1
vote
1answer
48 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
37 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
37 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
244 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
1answer
2k views

PHP FPM keeps hanging

I have tried all sorts of options but every couple days (mostly every day) FPM stops serving pages and I get a 502 (from cherokee webserver) The logs are filled with the following: [15-Sep-2014 ...
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 ...
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
609 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 ...
4
votes
1answer
10k 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 ...
7
votes
1answer
3k 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
61 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
22 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
21 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
435 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
51 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
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: ...
1
vote
2answers
614 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
2answers
2k 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 ...