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

slow apache/php-fpm in local server accessing with domain (through nat)

I have setup a local webserver to develop my php apps, everything should be working ok (no problem testing the domain through a proxy website), but when I navigate from local, sometimes the request won't finish loading (it keeps loading for a while…
Chazy Chaz
  • 409
  • 1
  • 7
  • 16
0
votes
1 answer

Larger uploads not posting on nginx + php-fpm

I'm running into an issue where images < 2MB are uploading without issues, but 2MB images are not uploading via form posts. Configuration: php.ini upload_max_filesize 96M post_max_size 96M memory_limit 128M nginx.conf client_max_body_size…
user68842
0
votes
0 answers

Is there a variable in error_page that can make this multiline nginx error config into one line

This is my current config location =/error.css { root /web/belldandu/data/SYFEP; } location =/error.php { root /web/belldandu/data/SYFEP; include /web/belldandu/cfg.d/fastcgi; fastcgi_intercept_errors off; …
Belldandu
  • 101
  • 2
0
votes
0 answers

Peculiar NGinx / PHP5-FPM behavior

I'm rather new to Nginx, but got it working w/ PHP5-FPM ... more or less. What I want to do: Have Nginx call the PHP5-FPM parser for every PHP file located above the /var/www/example.com/ directory on the server. This sort of works, with one major…
0
votes
3 answers

How to identify the bottlenecks in a Debian/Ubuntu nginx + php5-fpm setup

I would like any hints or ideas as to what might be causing the following situation. The website is on a Debian server with nginx 1.6.2, php5 through fpm. A GET request to a page is supposed to generate a ZIP archive of considerable size from a few…
Slavic
  • 111
  • 4
0
votes
1 answer

I've a wordpress website running running nginx + php7-fpm. Wordpress url redirection

My clients wordpress websites is serving many 404 requests. After checking I could see that the 404 URLs are like /wp-content/uploads/2015/8/a.png&_nc_hash=ASsvdeeknbhs and it throws 404 error. But if we add a '?' after that filename, it will show…
Anto
  • 139
  • 6
0
votes
2 answers

PHP7 in Ubuntu 16.04. One FPM pool try to chroot another FPM pool

I move my sites from old PHP (php 5.4) and OS (Ubuntu 12.04) to new server with PHP 7 and Ubuntu 16.04. I cought bug with creating FPM pools. Here's my common pool config: [zabbix.example.com] include = /etc/php/7.0/fpm/default-config.conf user =…
0
votes
3 answers

Nginx download "*.php" instead of display it contents in a Docker environment

I am working in a new Docker environment running PHP71 + Nginx. The Dockerfile is inherit from million12/docker-nginx. This is the content of /etc/nginx/hosts.d/vhost.conf (which I took from here): server { listen 80 default_server; …
ReynierPM
  • 710
  • 5
  • 14
  • 30
0
votes
1 answer

OpenBSD 6.0 chrooted httpd with php 7.0 mail() works, but no mail goes out?

I started with a fresh install of OpenBSD 6.0 which has a chroot (/var/www) on their httpd server (not Apache). I installed PHP 7.0 and set up the php-fpm using the binary installs. In the web root there exists both sendmail and femail objects. I…
0
votes
2 answers

nginx / fpm configuration with mixed paths

I got a PHP application with Core in /srv/myapp/src/www. This application can have plugins in /srv/myapp/plugins/pluginname. Plugin's entry point is /srv/myapp/plugins/pluginname/www and corresponding url is something like /pluginname/?arg=value. I…
Manuel VACELET
  • 125
  • 1
  • 9
0
votes
1 answer

Not able to get https response from nginx server after installing self signed certificate

Getting no response from server when connecting with https:// Http is running fine I have installed self signed certificate and configured properly without errors. I am running nginx with php-fpm. I checked with nginx it is listening on port 443. I…
0
votes
1 answer

Wordpress overloads LEMP

My current configuration: GCE f1-micro (1 vCPU, 0.6GB) Haswell, CentOS 7.2, NGINX 1.10.2, PHP 7.0.12 Static pages serve without issue. phpinfo() page servers without issue. WordPress setup page overloads CPU causing me to reset the…
Ryan Prentiss
  • 291
  • 5
  • 11
0
votes
0 answers

502: Connection reset by peer when using systemd-socket-proxyd to activate fpm on-demand

The setup: An nginx container vhost manager which uses systemd to automatically spawn php-fpm containers when their respective vhosts are activated. The configuration: A shared volume for sockets in /var/run. systemd-socket-proxyd used to listen on…
DMCoding
  • 492
  • 5
  • 11
0
votes
0 answers

PHP-FPM (PHP 7.0), with mod_fastcgi and Apache 2.2 - is this reliable?

I'm a relative Linux newbie, so I realize I have enough knowledge to do something dumb. I was wondering if anyone could comment on this: On a RHEL 6.2 server with Apache 2.2. I installed PHP 7.0 along with PHP-FPM, which is listening on a Unix…
C C
  • 423
  • 1
  • 4
  • 16
0
votes
1 answer

Unicode characters in my PHP configuration

Earlier today I was having an issue where I couldn't setup my PHP7 remote interpreter on PhpStorm I ended up finding out that I have unicode characters in my PHP configuration: I have no idea how that happened and I probably would never have…
Raph Petrini
  • 101
  • 3