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 + php-fpm chdir not working

I'm meeting a problem with getting my nginx and php-fpm working. I'm getting an error 504 when I try to access my application. I have a structure like this; data/mywebsite/ | |---revisions/ | |---shared/ | |---released/ |---web/ …
0
votes
1 answer

PHP Files downloading on page load rather than executing - NGINX

I have set up a sub domain in root directory along with our actual domain. In the root directory the two folders are as follows: domain.com sub.domain.com When going to domain.com (which already existed) things work as expected. When going to…
coopwatts
  • 103
  • 4
0
votes
1 answer

Using NGINX to serve images from multiple storage servers

I'm working on a project similar to Imgur but for clients only. I'm using NGINX as my webserver and PHP-FPM/MYSQL to handle the rest. One speed bump I will eventually run into is running out of server space. I would like the ability to add more…
i228
  • 1
0
votes
1 answer

php-fpm keep children running, not complete request and got max children fast

I have node server and have 8 website on it, 2 of them has most of traffic, all website connected to cloudflare CDN with low security level and set php-fpm pool for every website one of them has only strange problem sometimes its working fine,…
ezak
  • 13
  • 1
  • 6
0
votes
0 answers

Disribute PHP files after compiling from source

I have compiled and installed multiple version of PHP on my system. When I compile my PHP, there are a few files that are not copied to to their location. For example, when I compile my PHP v7.1(PHP-FPM), its service file (./sapi/fpm/init.d.php-fpm)…
undone
  • 167
  • 1
  • 1
  • 10
0
votes
3 answers

nginx won't execute PHP code when redirected from a SEO like URL

Unlike other questions related to nginx not executing PHP files, mine does, the problem comes when I use SEO like urls instead and redirect to a php script, then instead of executing the code it sends the script as plain text to the…
Fran Marzoa
  • 101
  • 3
0
votes
1 answer

Set up nginx + php to serve php files from home directories

Here is the relevant part of my nginx.conf, which does not work for php files that are located in the home directories of the users: location ~ ^/~(.+?)(/.*)?$ { alias /usr/home/$1/www$2; autoindex on; } # Serve user directories…
qazqolang
  • 1
  • 1
0
votes
1 answer

PHP-FPM gives no response, request does not terminate

I'm using PHP-FPM which worked fine until yesterday, now requests do not return any response and keep running indefinitely - or until the client/proxy runs into a timeout. There is a NGINX proxy in front of PHP-FPM, but the error seems to be inside…
0
votes
1 answer

nginx + php5-fpm + cifs share + CakePHP timeout

I recently moved my cakephp 3 dev environment onto a network share. The server in question has only had a path change for the nginx webroot (root /var/www/webroot, to root /mnt/dev/webroot). I am mounting the CIFS share via /etc/fstab as…
Huw Jones
  • 1
  • 2
0
votes
1 answer

Suppressing PHP errors with Nginx and php-fpm

Try as I may, I can't suppress error messages from PHP (using php-fpm) being displayed. Relevant files; /etc/php5/fpm/php.ini:display_errors = Off /etc/php5/fpm/pool.d/www.conf:php_flag[display_errors] =…
Ross
  • 1
  • 3
0
votes
1 answer

Force php to kill idle connection while stopping download from external remote point?

I have nextcloud, and there is connected remote storage, it is fuse folder of rclone mounted as local /drive. On this /drive I have some big files. when I start to download some big file I see it in bmon that my vps is downloading it and serving to…
user2265690
  • 729
  • 1
  • 5
  • 4
0
votes
2 answers

Increase PHP-FPM's max upload file size

I've increased params values in php.ini: upload_max_filesize = 10M post_max_size = 12M And php --ini command in console shows me: post_max_size => 12M => 12M upload_max_filesize => 10M => 10M But anyways, when I'm trying to send file > 1mb I get…
0
votes
2 answers

Why php function can't run with in my nginx?

PHP7 and nginx installed on centos7 this way. To install php7 sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm sudo yum install php70w php70w-common Now to check it with php -v. PHP 7.0.19 (cli) (built: May 12 2017…
scrapy
  • 337
  • 4
  • 17
0
votes
1 answer

Permission Issues with nginx 1.12.0 and php7.1-fpm on Debian Jessie

I have configured php-fpm, and nginx for development under a home folder, and I've been unable to resolve a permissions issue. It appears that php7.1-fpm.sock still refuses a connection, even though all permissions appear to be…
Darin Peterson
  • 157
  • 1
  • 9
0
votes
0 answers

services in CentOS e.g. nginx, php-fpm doesn't include symbolic link configuration files

I have 2 services in CentOS 7 - nginx - php-fpm Those services have main configuration to include *.conf in certain directory. However, it didn't read the symbolic link file in that certain directory. Please see screenshot for better…
chaintng
  • 519
  • 4
  • 8