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
1answer
18 views

Can the execution time of PHP scripts be logged on Nginx

I have some issues with our clients reporting some of our web pages being slow. This could be for a number of reasons but I want specifically to log the execution time of each page, without having to ...
0
votes
1answer
21 views

Pass PHP5-FPM errors back to error page script?

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 ...
0
votes
0answers
26 views

Page displays “File not found” when I enable php-fpm chroot on debian wheezy apache2.2

I set up a chroot jail for a user "bob". bob is located in /var/jails/bob Bob has a site which is located in /var/jails/bob/bobssite.com/public_html Everything seems to work so far, including the ...
0
votes
0answers
9 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
44 views

nginx + php-fpm + phpmyadmin - blank screen, no errors

I am trying to run webserver under nginx and php-fpm. I have copied phpmyadmin, but when i display its page, I see only blank screen (its not display:none error, source code is blank too). When I ...
0
votes
1answer
22 views

How to debug nginx + php-fpm download failures?

Downloads fail after all data downloaded on nginx + php-fpm. I'm controlling downloads of zip files (roughly 100mb each) with a PHP script that streams the file directly to the client. I'm using ...
0
votes
2answers
67 views

Are there any performace gains to using Varnish along php-fpm and nginx? [on hold]

PHP-FPM 5.6 and Nginx 1.6.2 would no doubt give maximum performance, at-least speed wise. So, I would like to know if there are any pros/cons to adding varnish cache to gain probably few more speed. I ...
-1
votes
0answers
25 views

How to compile or run PHPNG with another user? [closed]

I am testing https://wiki.php.net/phpng Already compiled and working, the only problem is that to make php-cgi work with a framework like wordpress you need to run it with the user nginx is runnning, ...
0
votes
0answers
31 views

Wordpress Nginx Php-FPM Varnish Setup Fix

Master Slave Database We are running a wordpress site on Nginx, Php-Fpm, Varnish, at the moment we cant access wp-admin wordpress backend or pages but posts are running fine. Also when there is ...
0
votes
0answers
26 views

configure php-fpm to work only in one directory and HHVM on the rest

I am trying to test HHVM and php-fpm on the same site, running both. But I want php-fpm to work only on one directory, but I think I am not getting it right location ~ \.(hh|php)$ { fastcgi_pass ...
0
votes
0answers
34 views

mod_proxy_fcgi and php-fpm with apache 2.4 mod_rewrite vs proxypass, neither solution perfect

If I use mod_rewrite with the P flag most things work right: <Directory /home/dir/public_html/www.site.com> AllowOverride All Options FollowSymLinks Require all granted ...
-1
votes
0answers
16 views

PHP Relationship to VSZ Memory Usage [closed]

Every PHP processes consumes about 216M with our current configuration, and they're all loading identical libraries. I thought shared-objects were shared between the processes that required them, but ...
0
votes
0answers
24 views

Configuring /etc/hosts to run an application [migrated]

I am using nginx, until now I was running my php applications on /usr/share/nginx/html which is the default document root when nginx is installed on centOS and like systems. Now I had to create ...
0
votes
0answers
20 views

X2Engine doesn't install because it thinks session.save_path (unix:/tmp/memcached.sock) is not writable

I'm installing X2Engine and I get the following error on the install page: The path defined in session.save_path (unix:/tmp/memcached.sock) is not writable. # ll /tmp/memcached.sock srw-rw-rw- 1 ...
1
vote
0answers
13 views

what is php-fpm warning “failed to acquire scoreboard”?

what is php-fpm warning "failed to acquire scoreboard" in fpm error log? And how to fix it? tail -f /var/log/php-fpm.log [08-Oct-2014 03:36:36] WARNING: failed to acquire scoreboard [08-Oct-2014 ...
0
votes
0answers
42 views

php-fcgi periodically shutting down for Nginx, Centos 6.5 with Virtualmin

php-fcgi periodically shutting down 1-3 times a week. The server spec is: Server RAM: 512 MB CPU: 1 Core OS: Centos 6.5 Web Server: Nginx 1.0.10 PHP: 5.3.3 MySQL: 5.1.73 Control Panel: Virtualmin ...
0
votes
0answers
9 views

Exposing pm.status_path [migrated]

Do you think it's dangerous to publicy expose PHP-FPM pm.status_path? It displays "Pool Status", "Active Processes status" and "Idle Processes status", showing Script path and Request URI.
0
votes
0answers
17 views

CentOS - php-fpm update - rsyslog issue

Strangest thing. After updating php from 5.4.24 to 5.4.33, I noticed that php errors are no longer going to /var/log/php/all.log, instead they are back in /var/log/messages. I checked my rsyslog ...
0
votes
0answers
37 views

Docker PHP-FPM & NGINX

I'm having an issue with my containers communicating to each other. The linking of the containers is working but the php-fpm process isn't working. php container = 172.17.2.106 nginx container = ...
0
votes
1answer
32 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
0answers
36 views

Apache mod_rewrite failing to catch non existing URLs ending with PHP if run with PHP-FPM (FCGI) mode

On our production server we run in to issue when non existing URLs that ends with .php extension like www.domain.com/test.php are not passed back to Apache and mod_rewrite is not triggered and as ...
0
votes
0answers
33 views

Serving files outside the DocumentRoot with apache 2.4 and php5-fpm

I'm trying to serve a php file outside my document root with apache 2.4 and php5-fpm. My virtual host looks like this: <VirtualHost *:8080> ServerName www.domain.tld DocumentRoot ...
1
vote
0answers
31 views

Server returns http 504 error code for specific script

I have 3 servers all set up identically load balancing a single site with apache, mod_proxy_fcgi, php5-fpm and mysql/mariaDB galera cluster running on ubuntu 14.04 server. Everything seams to work ...
1
vote
1answer
65 views

php htaccess environment variables php-fpm mod_proxy_fcgi apache 2.4

My .htaccess: SetEnv tvar "my value" RewriteEngine on RewriteRule .* - [E=boostpath:normal] My virtual host settings: AllowOverride All Options FollowSymLinks Require all granted ...
0
votes
0answers
48 views

Improve speed of WordPress backend on Ubuntu VPS

I have a WordPress site running on my VPS which is quite high-specced (3520MB RAM, 4 Cores). The server runs Nginx and php5-fpm. Although the site is responsive on the front end, the backend tends to ...
0
votes
1answer
45 views

php-fpm package not available, Ubuntu 14.04 LTS

I try to install the package php5-fpm on dist Ubuntu 14.04 LTS, nginx. But I get this message: Reading package lists... Done Building dependency tree Reading state information... Done Package ...
0
votes
1answer
49 views

File cannot be downloaded completely via PHP from my nginx

I have a file on my tiny server (BeagleBoneBlack) which I want to download to another machine. Therefore I try to do it via PHP from my nginx-web-server. The file size is about 1.2 GB and the download ...
0
votes
1answer
49 views

high load average and cpu usage

I am experiencing high CPU usage here is the stats i got from server, the consumption after every restart in 15 minutes go upto 100%, what could go wrong? I have a site in laravel installed on the ...
0
votes
0answers
62 views

wordpress / php-fpm crashes when uploading images to server

I have successfully migrated a wordpress server to a new VPC ( Amazon ) but looks like php-fpm can't handle the image uploads. When I upload an image, it does partially and then stalls, or it doesn't ...
0
votes
1answer
34 views

Multiple server blocks in nginx: Php not working on server 2

I have a nginx server running on my webserver. I would like to achieve the following: example.com + www.example.com -> /my/web/dir/www pma.example.com -> /my/web/dir/pma The first point is not ...
0
votes
0answers
31 views

What is causing PHP-FPM's connections to our galera cluster to be limited?

On our current live site, we have had a flood of page requests from a single IP over a ~60 second window, which caused PHP to start failing to connect to the database. Our error logs have a lot of ...
1
vote
2answers
209 views

High io with php-fpm

Recently i have been having some issues with php-fpm and i notice that IO is very high for all php-fpm (99.9%) and that's what causing the cpu load to spike. Top command top - 06:28:53 up 8 days, ...
0
votes
1answer
37 views

Mysterious Upstream Client ::ffff:81.70.140.65…changes on each error

I read the following post: nginx errors recv failed 104 ...but have a different question... I'm curious to know why there is ANY reference to this mysterious upstream source: ::ffff:81.70.140.65 ...
0
votes
0answers
54 views

Run multiple nginx servers on different ports by different users

Let me describe the problem I need to solve: There is a sandbox server (Debian), each developer has own user account on it. I need to provide an easy and quick way of running/stopping any number of ...
0
votes
2answers
90 views

nginx use rewrite as dynamic 404 image

I want to get a dynamic 404 response depending on the requested url: foo.jpg doesn't exist http://example.com/img/style/thumbnail/foo.jpg should show ...
0
votes
1answer
42 views

atomic deployments with Nginx and PHP FPM

I'm trying to get atomic deployments, I don't want to lose/drop any requests. I deploy the code using Capistrano, classic situation were you have a 'current' dir that is a symlink to the latest ...
0
votes
0answers
27 views

php-fpm: Maintain php_mod logging format

I recently switched all my lab servers from apache pre_fork/mod_php to apache worker/fcgi/php-fpm, and after getting everything set-up correctly, I noticed one last issue; php-fpm is adding it's own ...
0
votes
0answers
32 views

Wordpress + Nginx + Discourse not working. Socket unavailable

I'm running wordpress 4.0 on latest ubuntu from this docker container: https://github.com/eugeneware/docker-wordpress-nginx wordpress is also running behind another nginx reverse proxy, but on ...
0
votes
0answers
78 views

Apache 2.4 <locationmatch> occuring before .htaccess

I have the following configure in my apache config: <VirtualHost *:80> <Directory "/var/www/site.com"> Options +Indexes +FollowSymLinks +ExecCGI -MultiViews ...
0
votes
2answers
167 views

apache 2.4 + php-fpm + mod_proxy_fcgi + alias

I have the following config: Apache 2.4, php-fpm, mod_proxy_fgci. The problem is that my config is not working with the alias directive: I've installed phpredmin, but the alias directive is not ...
1
vote
0answers
33 views

apache php-fpm - max_children reached -> server unresponsive until php-fpm restart

One of our servers with a very special setting is very sensitivee to an unknown event. Hardware: Xen - VM 22 Cores (build with Intel xeon 4*6 Core) raid 6 SSD 60 GB RAM Configuration: Suse ...
0
votes
2answers
86 views

Serve a custom 404 page generated by PHP

Here is how my php-fpm config is: location @site { fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; ...
0
votes
1answer
106 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 ...
0
votes
1answer
94 views

404 not found when trying to access index.php

Recently I have reinstalled a server with Ubuntu 14.04 LTS, nginx/1.6.1 and php5-fpm. When I try to access index.html it's working when I try to access index.php i get "404 Not Found". I double ...
0
votes
1answer
195 views

Nginx with php-fpm suddenly started returning 504 Gateway Time-out

We have a staging Ubuntu server running on the Azure platform that just suddenly started timing out. We had created the server some days ago and it was working great. All of a sudden today while it ...
-1
votes
1answer
151 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
1answer
17 views

nginx only serves php located in the root

I have the following file paths http://localhost/test.php http://localhost/playground/server.php Both of them simple hold <?php phpinfo(); ?> The issue is, nginx will serve the first one, ...
0
votes
0answers
62 views

Add custom variables to nginx access log from PHP-FPM

With the log_format its possible to include a range of variables such as $http_user_agent: http://nginx.org/en/docs/http/ngx_http_core_module.html#variables But is it possible to include a variable ...
0
votes
1answer
62 views

PHP FPM state Finishing but never completes

We are running a Symfony application on Ubuntu 14.04 with Nginx and PHP-FPM The problem is that individual PHP FPM will occasionally hang on our production servers. I have the output from the status ...
0
votes
1answer
82 views

Nginx and php-fpm trouble again

Dears I try to deploy wordpress on amazon ec2, I am facing the trouble on nginx and php-fpm, thanks for your help in advance. I got the error as the following when nginx and php-fpm are running. ...