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

getting types_hash_max_size error in /var/llog/nginx/error.log when restarting nginx

I ma getting the below error in /var/log/nginx/error.log file: 2017/02/07 16:18:53 [warn] 775#0: could not build optimal types_hash, you should increase either types_hash_max_size: 2048 or types_hash_bucket_size: 64; ignori ng…
Basid Rahman
  • 1
  • 1
  • 1
0
votes
1 answer

Apache 2.4 w/ PHP 7: PHP7.1-FPM and/or libapache2-mod-fastcgi

I am in the process of upgrading a web server from using the slower, resource-intensive mod_php, and all has been well, until I noticed that PHP 7.1 is running successfully using only the php7.1-fpm package (from ondrej/php repository), without…
1234567
  • 173
  • 1
  • 10
0
votes
1 answer

NGINX locations behaiving strange.... Not matching directory

I have a Wordpress installation, and in it's root folder I have a custom built external service. This external service I would like to run on a separate pool. So I created 2 pools of php FPM for it one will be running in 127.0.0.1:9000 and the…
Alex Frenkel
  • 111
  • 1
  • 6
0
votes
2 answers

CPU usage spikes when calling website

I have a quick question for something I couldn't find while searching. I'm a total server noob so please don't get angry. When I track CPU usage using ssh top I can the user process causing about 20 percent of CPU load when calling a website that…
0
votes
1 answer

How do I proxy based on MIME type?

How do I proxy a file in Apache based on its MIME type? I want to use PHP-FPM with FastCGI but the recommended solution using ProxyPassMatch is clunky, a pain to work with, and all around unfavorable. How would I go about proxying based on MIME type…
robbie
  • 101
0
votes
1 answer

Wordpress Access in Nginx and Permission denied

I have been trying to get wordpress work with nginx its new task for me but I am almost done. But I am still at the end can't get wordpress to work I have tried everything I was able to get and the same issue exactly and the solution approved, but…
Muammad
  • 3
  • 1
  • 4
0
votes
0 answers

CentOS Linux release 7.3.1611 (Core) : No package php-fpm available

I am running on : CentOS Linux release 7.3.1611 (Core) I want to use nginx as my web server. So I need to install all the Prerequisites. First # yum -y install epel-release then # yum -y install nginx php-fpm [root@18010850 conf.d]# yum -y…
Fadly Dzil
  • 101
  • 2
0
votes
2 answers

Enable Bzip2 in php-fpm on Ubuntu

How can I enable functions like bzopen in php7.1-fpm on Ubuntu 16.04? I'm using the packages from ppa:ondrej/php.
the_nuts
  • 430
  • 6
  • 19
0
votes
3 answers

Nginx - PHP7 unexpected FastCGI record while reading response header from upstream

I upgraded to PHP7 (PHP 7.0.14) on a production server (CentOS 6.8) two days ago. Now, I am getting following error in nginx (1.10.2-1) logs. 2017/01/20 08:20:04 [error] 7654#7654: *153301 upstream sent unexpected FastCGI record: 3 while reading…
Jai
  • 141
  • 1
  • 3
  • 14
0
votes
4 answers

NGINX+PHP-FPM: Is it possible associate php-fpm PID to access log entry?

We have been using NGINX and php-fpm. We've been noticing that some requests are hanging up for a long time (10+, 20+ minutes...) via top command. Also, some suspect requests (I mean bots) were detected in access log entry (NGINX) but I’m not sure…
0
votes
1 answer

nginx dynamic Host & Directory path_info missing

I'm trying to accomplish a nginx Configuration wich allows me based on part of the URL/ServerName to choose the project folder (document_root), all dynamic. So if i got a Web-Server directory…
0
votes
1 answer

wordpress not rendering site

I upgrade my ubuntu server from 14.04 to 16.04. A few of the packages like: php nginx mysql were updated, I have a small site running on there which was working fine. I was first receiving a 502, which has been corrected as php5 was removed and…
user3465651
  • 101
  • 1
0
votes
1 answer

nginx/phpfpm is giving older php file result

Server: ubuntu 14.04lts nginx(v1.10) server is showing older content when i have already changed the file,the changes are seen after 3-6 minutes. the document root directory is mounted from nfs share. the changes in the file is seen when i read/cat…
sherpaurgen
  • 616
  • 6
  • 10
  • 26
0
votes
1 answer

Performance issue on drupal

I am running a drupal 7 website on a Linux server (with 4 cores and 12GB RAM) with LEMP (nginx+php5-fpm+mysql). The drupal installation has a large number of modules enabled(all of which are needed). I also use apc + boost + memcache + authcache for…
mirto
  • 1
0
votes
1 answer

Varnish cache not optimised for Wordpress. What am I doing wrong?

I'm running a php5-fpm, nginx, varnish setup for my high traffic WordPress. But I'm not sure if I've the optimal varnish setup because my varnishstat never goes beyond 85% Hitrate avg: 0.8661 0.8399 0.8389 Here are my…