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

How to figure out the optimum settings for Apache 2.4 PHP-FPM mpm_worker?

I'm struggling to figure out the correct settings for my Ubuntu server. It has 16 CPUs and 48GB of Ram. However, it seems to be taking a while to respond to requests. Recently, I switched to PHP-FPM and Apache 2.4 mpm_worker. My mpm_worker.conf…
Wayne
  • 73
  • 1
  • 11
0
votes
1 answer

Why would one Virtual Host be slower than the rest?

I've got multiple virtual hosts on my Ubuntu server. I am running Apache 2.4 & mod_php. At the moment, one website is receiving a lot of traffic - and it is taking time to respond (6+ seconds at times). However - the other websites on this server…
Wayne
  • 73
  • 1
  • 11
0
votes
1 answer

Apache ProxyPass root to NodeJS and /admin to PHP-FPM

I have been trying to handle all requests via a NodeJS, except those going to the /admin directory via mod_proxy, but with no success. This is the configuration I came up with, but it is not working. ServerName domain.com …
Ivo Sabev
  • 177
  • 1
  • 1
  • 5
0
votes
1 answer

php5-fpm status page is blank for when using nginx 1.10.3 but works with 1.4.6

I just run into some issue while trying to hook some nodes to datadog for monitoring. I am using ubuntu server 14.04.5 LTS. I added a nginx ppa:nginx/stable so I got nginx 1.10.3 installed. my nginx configuration…
black sensei
  • 609
  • 3
  • 10
  • 25
0
votes
1 answer

Configuring nginx to work with multiple PHP front controllers

I'm currently trying to migrate a PHP app that is in the middle of being converted from php file per page to a front controller based system, from a server running Apache to Nginx. The site has a couple of other PHP apps in sub folders that use…
Technofrood
  • 23
  • 1
  • 8
0
votes
1 answer

php.ini is not read after upgrading to PHP 5.6.25 from RHSC on RHEL7 with SELinux. How to debug?

Configuration: I run a web server with RHEL7 with the SELinux kernel module and php-fpm. By default, RHEL7 ships with PHP 5.4. This version of PHP is too old for my software, so I've upgraded to PHP 5.6.25 from RHSC. Before upgrading, everything…
Free Radical
  • 131
  • 9
0
votes
1 answer

how do i restart php7-fpm with supervisord?

I have a custom docker image for apache and php7-fpm but whenever i make changes to the php ini file and use supervisord to retsart php7-fpm after those changes during image building before running the container from the image i noticed i have been…
uberrebu
  • 503
  • 6
  • 17
  • 36
0
votes
0 answers

Apache and PHP-FPM slow ( development enviroment)

I have Intel i5 and 8gb ram running Arch linux. I am trying to optimize my local development environment in order to speedup the pageload ( I develop on Magento that is an heavy php application ) Take care I have not any knowledge about php-fpm…
Francesco
  • 109
  • 6
0
votes
1 answer

First time configuring NGINX with PHP, confused about which server block to modify

I'm in the process of building a LEMP stack server and local development environment, largely following the tutorials that both Linode and DigitalOcean provide. I have installed all the disparate components, but I'm a bit confused about configuring…
0
votes
1 answer

Setting up php 7 w/ Apache 2.4 using php-fpm

I have Apache 2.4 working with php7 using php-fpm. I'm using this block to pass traffic to php-fpm SetHandler "proxy:fcgi://127.0.0.1:9000" The problem I'm having is that parts of the application I'm using,…
buffcleb
  • 1
  • 1
0
votes
1 answer

php-fpm user unable to run node commands

I have a vagrant instance running CentOS7. This vagrant instance is running Nginx to host websites locally on my mac. I have php-fpm running to support processing of php files. Finally, I have a php file that calls a node.js script. What I am…
Jake
  • 101
  • 1
0
votes
0 answers

error while installing php7 FPM

I have a server with Ubuntu 16.04 installed. Righ now I'm trying to install Nginx+PHP7. I follow this instructions (so sorry that is in spanish, but you can see the commands at least). The thing is, when I execute: sudo apt-get install php-fpm…
Sredny M Casanova
  • 129
  • 1
  • 1
  • 3
0
votes
1 answer

Identify failing or hanging outbound network connections on linux

I admin a busy webserver which uses nginx/php-fpm , connects out to mysql(RDS) and elasticsearch, but also many third parties for advertising and other plugins etc are on the site(unfortunately I’m not aware of all the specifics). I have a random,…
Anthony
  • 11
  • 1
  • 5
0
votes
1 answer

php-fpm installed and running, but Apache24 still using CGI

On my Freebsd server, I have Apache installed with php-fpm, but phpinfo() reports that the server is using CGI/FastCGI instead of FPM/FastCGI. I can see several children of php-fpm, but they have no activity: 73819 - IW 0:00.00 php-fpm:…
0
votes
1 answer

I am trying to install icehrm on the host . I am getting "Primary script unknown" in nginx error.log

I am trying to install and configure ICEhrm . However I was successfully able to unzip the file. Here is my app/config.php file