Questions tagged [php-fpm]

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

PHP-FPM provides a number of useful features over the traditional FastCGI php implementation. It is implemented as a daemon that controls one or more PHP process 'pools' which can be independently configured. Main configuration options for each pool include:

  • Socket on which requests are received (either local or TCP)
  • Separate php.ini settings for specific application requirements
  • Dynamic process control. FPM can dynamically change the number of worker processes depending on pool load.
  • Uid/gid for the pool workers
  • In-flight configuration updates - a change to the pool configuration will be rolled out gracefully across all pool workers without losing connections.
2118 questions
0
votes
1 answer

Nginx does not match path location

I am trying do Fastcgi server based on location. all request /api/v1/ -> server v1:9000 and /api/v2/ -> server v2:9000 my nginx config is server { listen 80; index index.php index.html; root /var/www/public; location ~ \.php$ { …
0
votes
1 answer

How to configure NGINX location to serve Codeigniter RESTful API in sub directory of server?

I have the following directory structure: mysite.com - /api (codeigniter RESTful API Server) - /app (backbonejs app) I'm trying to configure NGINX to point all requests for mysite.com/api* to the api directory and use Codeigniter's setup.…
David
  • 841
  • 3
  • 14
  • 31
0
votes
2 answers

How to setup Nginx and PHP-FPM socket

This is my third attempt at posting this question now after incorrectly posting to both super user and Stack Overflow. Hopefully this is now the right place! I have taken over managing the company's web hosting, which is an AWS server running…
Edward144
  • 153
  • 2
  • 2
  • 5
0
votes
2 answers

Nginx, installing fastcgi_purge_cache on centos 7?

I'm trying to setup my sites to run with fastcgi_cache and found it a bit problematic that it doesnt really refresh content when something new is added to my site/webshop. So i stumbled upon the plugin nginx_helper, and it seemed to be everything…
Mac
  • 115
  • 1
  • 1
  • 9
0
votes
1 answer

How to use php-fpm in tcp mode on an external machine?

I'm using php-fpm over TCP, because Is my intention load balance it. Should I have PHP files on every server? Or can I store it at the web server (Lighttpd)? I'm receiving 404 Error when trying to request a simple php file. That file is stored at…
LeonanCarvalho
  • 640
  • 2
  • 6
  • 22
0
votes
2 answers

php-fpm doesn't work with nginx rewrites

I am trying to rewrite to a PHP file in nginx without changing the URL, but php-fpm isn't processing the file and all I get is a 500. If I remove the rewrite and visit the file directly, it works, so the .php file is not wrong. server { listen…
skiilaa
  • 101
  • 2
0
votes
2 answers

php script not executing from subdirectory

Here is the situation. I've setup prestashop 1.7.1 on an ubuntu 14.04 VM running Ajenti, so its php-fpm and nginx for me. After looking through a lot of tutorials and some custom configuration i managed to get everything working just fine. However i…
K Sant
  • 1
0
votes
1 answer

Nginx server returns 404 for all php pages except index

I installed a new server with nginx and php 7.1. When I want to do a call to myurl.com/page it returns a 404. When I do a call to myurl.com/ everything is fine. I already added this in my nginx config: location ~ \.php$ { include…
Bart Bergmans
  • 633
  • 1
  • 6
  • 9
0
votes
0 answers

pool www child exits on signal 6, wordpress http error

I've Debian Stretch running nginx + php7 for a wordpress website. This question is not about wordpress, but about php7.0-fpm (it's just that wordpress is showing my current php problem). And please, don't tell me to "google it", I dit for half a…
bmourey
  • 1
  • 1
0
votes
1 answer

Debian 9 build PHP7.0 with --with-fpm-acl fails

I need to enable support for POSIX ACL in PHP-FPM. I can get ACL list with getfacl and set them with setfacl -m from shell so my kernel support it. I've downloaded sources of PHP7.0_7.0.19 with $ cd /tmp/ $ apt-get source php7.0 and updated the…
Dawid
  • 186
  • 1
  • 7
0
votes
0 answers

Apache2.4 - PHP 5.6 and PHP7.1 running at the same time

I'm looking to run both PHP 5.6 and 7.1 in my development server, with Apache. I know that Nginx can easily handle this, but I really need Apache. Here so confs # My main configuration file, running with PHP7.1
Treast
  • 101
  • 1
0
votes
0 answers

Unable to link to shared library under systemd

Does systemd do something funny with linking shared libraries? I have a php extension which loads a shared library outside the php extension directory. If I run php-cli or start php-fpm from the CLI it works as expected and phpinfo() shows how the…
chell
  • 51
  • 1
  • 6
0
votes
1 answer

Nginx error_page not serving php files

I'm trying to set up a 404 file which handles unknown url requests using the error_page directive, the file im trying to root it to is a .php file which is in the same directory as the route. The problem i cannot figure out is that as soon as i…
Jimjebus
  • 13
  • 1
  • 1
  • 4
0
votes
0 answers

Why my apache server keep on stopping?

My apache server keep on stopping. If i restart it will work for 5-6 hours again it goes to down. These are system and apache configuration details. Apache : 2.4 version PHP : 5.6.30 System Configuration :256GB RAM,80 cores intel processors MPM…
0
votes
0 answers

PHP-FPM 7.0 + NGINX: Idle processes

i know there are a lot of good answers for questions like this on stackoverflow or serverfault but i cant find answers for my questions. I have following /status output for my php-fpm 7.0 processes. pool: www process manager: …