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
4answers
5k 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 ...
0
votes
0answers
51 views

Ubuntu 16.04 services timing out at boot time

I just spun up a new Ubuntu server this morning to try and prepare a production server for a client's code. Unfortunately in testing the server I found that after a reboot the database and PHP-FPM are ...
1
vote
1answer
1k views

How to conditionally set php session cookie within php-fpm www.conf?

I need to set PHP session cookie domain dynamically using php-fpm configuration, pseudo code like this: <If "%{HTTP_HOST} !~ /[0-9]/"> php_value[session.cookie_domain] = ".mysite.com" </If&...
0
votes
0answers
20 views

Gateway Timeout with PHP,NGINX and Laravel [on hold]

I'm using a Godaddy VPS with Nginx, PHP and Laravel installed on Ubuntu 14.04, I have page where I'm sending request to Paypal REST API, that works on my local machine and the response is returned ...
0
votes
0answers
13 views

How to increase php-fpm processes on Plesk [on hold]

We have a VPS hosting account running Plesk 12.5 on CentOS 7. When we're loading testing the VPS it only runs 5 php-fpm processes (as shown by top). There are 24 cores on this VPS and overall CPU ...
0
votes
1answer
16 views

Nginx conf with php-fpm alias not working

i cant get the kohana aplication working. Server specs: ubuntu 14.04, nginx, php7.0-fpm I have the following structure: build: (static website) ,server: (php-kohana application) |-- build | |-- ...
0
votes
1answer
20 views

WordPress slow through CloudFlare with PHP-FPM

I am running multiple WordPress sites and one Symfony app on the same server, all of them are using CloudFlare. While the Symfony app has the expected loading time etc, the WordPress sites are ...
0
votes
0answers
13 views

New nginx + phpfpm installation causes PHP files to download

I just finished installing Nginx and PHP-FPM using the steps in guide here. However, the test PHP info page seems to be downloading instead of showing up on the browser. Here's what the config looks ...
0
votes
2answers
1k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
0
votes
0answers
11 views

PHP_FPM port no changes after service php-fpm restart on server

I have 2-3 websites running on Nginx PHP-FPM configuration on a server. I have assigned a unique port to each website in Nginx and Php-fpm configuration as below. In Nginx Vhost conf : location ~ \....
1
vote
1answer
35 views

Session files are created every 2 second. Running on openshift Laravel PHP nginx haproxy

What causes the access on the server when the server starts? I've run rhc tail on my app to monitor the new logs. Here is my log http://laravel.io/bin/Dez4o When I started the app using rhc app-...
3
votes
1answer
1k views

NGINX Internal Load Balancing + PHP-FPM Upstream causing random double request / submission

We are having a very serious problem where during seemingly random times, we get a duplicated request that is processed by our application. Typically, a user submits a form and occasionally will save ...
1
vote
2answers
6k views

Nginx upgrade to 1.8 - Now getting 502 bad gateway

Today I upgraded my localhost server from nginx 1.6.3 to 1.8.0 and now all my local websites are getting a 502 bad gateway. A standard nginx config file is as follows server { charset utf-8; ...
-2
votes
0answers
20 views

Apache + Php-fpm +wordpress Errors

Hey Guys i have blog that running on apache2.4 php5.6 and php-fpm to handle my wordpress blog. Iv been running the setup for sometime with no problems but off late i have been noticing the following ...
1
vote
2answers
2k 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: ...
4
votes
1answer
2k 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
votes
0answers
11 views

PHP 7 as PHP-FPM application, user and groups are www-data [closed]

I would like to switch from FastCGI application to PHP-FPM, but if I do so from the PHP settings of a domain that I manage under Plesk 12.5, the user that is executing the application is www-data, ...
1
vote
2answers
75 views

.htaccess file not loaded for PHP files

I am trying to work out why my .htaccess is not being considered when loading a .php file. Below files sit in the webroot of my localhost. .htaccess # Cause a HTTP 500 test file.html <html>&...
-1
votes
0answers
20 views

How can I check PHP7 FPM file Syntax on Centos

Hi I am using Centos 7 with PHP7 on a staging server and PHP5.X on another server. On the Centos 7 with PHP7 I get in touch with a problem that could be a permission problem but everything is ok ...
2
votes
1answer
1k views

Can not optimize php5-fpm to work without errors

I have installed ngix + php5-fpm. I am happy with it but I can not optimize php5-fpm so that it works without errors. Each fixed error creates a different error. First I had the the default settings ...
0
votes
1answer
1k 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 ...
1
vote
2answers
1k views

Replicating mod_fastcgi with ProxyPassMatch (PHP-FPM setup)

I want to move from Apache 2.2 to Apache 2.4, but there is no mod_fastcgi, and the recommended upgrade path is mod_proxy_fcgi However I can't figure out how to accomplish the following: <IfModule ...
0
votes
0answers
29 views

New Apache 2.4 MPM-Event server: (22) Invalid argument: ap_queue_pop failed

After ordering and setting up a new web server (64bit, 4 vCores, 6GB RAM, Ubuntu 14.04) with Apache 2.4.7 (and PHP7 fpm) with worker but during busier traffic hours Apache crashes. The error log is ...
0
votes
2answers
51 views

Permission Denied to PHP Files on Centos 7 with nginx

I have problem WHAT I DID Install Centos 7.2 with nginx 1.10 -- create a nginx server block sudo mkdir -p /var/www/example.com/html -- set permission sudo chown -R nginx:nginx /var/www/example.com/...
0
votes
1answer
1k views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/...
4
votes
1answer
6k 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 10:...
0
votes
2answers
1k 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 /home/user/...
0
votes
1answer
1k views

One unix socket for all php-fpm pools

I want to set only one listening unix socket for all php-fpm pools, but fpm requires them to be different. Production server has 2GB ram and I noticed that it is running out of RAM, adding more ...
3
votes
1answer
1k 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 ...
6
votes
1answer
2k views

Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?

I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug. Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by ...
3
votes
1answer
1k 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 ...
0
votes
1answer
1k views

Nginx Magento config not working, 404 on installation

This is my stack: Nginx 1.7, MariaDB 10, PHP 5.6 (FPM) and CentOS 7. I have used Centminmod for the installation of the above mentioned software. I created a vhost for the magento installation. ...
0
votes
0answers
14 views

Configuring nginx + Laravel to not execute any other PHP files

I have a Laravel application hosted on nginx, using a fairly standard php-fpm configuration. There should be no need to execute any other PHP files on the server, except for one specific script that ...
6
votes
5answers
22k 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 ...
0
votes
0answers
19 views

Varnish: Ignore cookies

I currently run a site running WordPress (in the document root) and a forum script (in site.com/forums/), and I'm using Varnish to cache WordPress. I don't, however, want to use Varnish to cache the ...
2
votes
1answer
44 views

Trouble with nginx and PHP-FPM

I am having trouble getting my webserver (nginx) to work with php-fpm. The page keeps loading and then the loading time expires. I hope one of you can help me resolve this issue. I have made an ...
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 ...
3
votes
2answers
60 views

Start PHP-FPM with root option automatically

I was trying to get PHP-FPM running a pool as root, but I can't seem to adjust the init.d startup params. It works when starting PHP-FPM from the CLI (with sudo php-fpm7.0 -DRy /etc/php/7.0/fpm/php-...
0
votes
1answer
3k 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 = unix://...
0
votes
1answer
2k views

Temporarily website outages, fastcgi PHP communication aborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid 2599:...
0
votes
0answers
18 views

Using nginx with nagios3, getting blank page

I'm trying to set up nagios3 with nginx on Ubuntu 14.04, and I'm having some trouble that I hope someone can shed some light on. I just get a blank page, instead of the expected Nagios page. It seems ...
1
vote
1answer
46 views

nginx php5-fpm doesn't show PHP message

I looked in my nginx error.log and saw that it is overfilled with these errors: FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ..., server: ..., request: "...
2
votes
2answers
2k 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: java....
1
vote
0answers
18 views

How to specify FastCGI parameters with Apache mod_proxy_fcgi?

The PHP-FPM documentation says that it's possible to pass custom php directives from the web server, and there's an example for Nginx. Is it possible, and how, to do the same using Apache-2.4 and ...
0
votes
1answer
27 views

503 Bad gateway for php only html works fine

I have configured aws instance from amazon ec2 linux image and configured nginx and php on server. Server serves html pages normally but don't serve php pages and also shows 503 Bad gateway error when ...
0
votes
4answers
2k views

Nginx or php-fpm error?

I found my vps nginx error log like this 2013/04/06 03:28:04 [alert] 8557#0: mmap(MAP_ANON|MAP_SHARED, 5242880000) failed (12: Cannot allocate memory) 2013/04/06 04:05:30 [alert] 10299#0: mmap(...
0
votes
2answers
1k views

PHP 7 cannot connect to MySQL

I have compiled LAMP servers for hundreds of times. However I am facing issues with PHP 7. I compiled it properly, but it cannot connect to MySQL in localhost. phpinfo shows PDO and mysqli are ...
0
votes
1answer
23 views

nginx download php script on HTTP but not in HTTPS

I'm nginx with php-fpm on my server. I configured nginx with SSL (Let's Encrypt) and made HTTPS the default instead of HTTP. The problem is that when accessing the web via HTTP the php file is ...
1
vote
2answers
13k views

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [...
0
votes
1answer
2k 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 pm.min/...