Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

7
votes
0answers
125 views

How can one php-fpm 5.6 site cause an outage across all sites?

I have a real head scratcher with one site on a server affecting others in separate php-fpm pools. I thought the idea was that php-fpm pools gave isolation to stop (reduce) this from happening. We ...
5
votes
0answers
935 views

Apache + Php-FPM + APC : mode_deflate not compressing HTML output

I have prepared a server to run a Magento instance with: Apache + Php-FPM + APC The problem I have is that Apache is not compressing the HTML output from the Magento PHP scripts. In my .htaccess I ...
4
votes
0answers
3k views

How do I allow users to override X-Frame-Options when using Apache + PHP-FPM?

I have an Ubuntu 14.04 server running Apache + PHP-FPM + FastCGI, serving user home pages. For security, I have enabled in Apache's configuration: Header set X-Content-Type-Options: "nosniff" Header ...
4
votes
0answers
976 views

PHP unable to mail() in chroot though I can use sendmail inside chroot

I'm building a php-fpm chroot, and am on one of my last steps before calling this a success. The php-fpm chroot is working like a charm. Also, I have mini_sendmail installed into the chroot (in place ...
4
votes
0answers
4k views

PHP-FPM ERROR: unable to read what child say: Bad file descriptor (9)

I'm having this issue: Apache 2.2.26 PHP 5.4.32 PHP-FPM 5.4.32 Zend OpCache 7.0.3 PHP-FPM Config: [testuser] listen = /dev/shm/testuser-php.sock listen.owner = testuser listen.group = apache listen....
4
votes
0answers
3k views

Docker PHP-FPM & NGINX

I'm having an issue with my containers communicating to each other. The linking of the containers is working but the php-fpm process isn't working. php container = 172.17.2.106 nginx container = 172....
3
votes
0answers
132 views

How to harden nginx vhosts (hosting WordPress) from other users in hacked WP installs

Overview: I have a dozen or so WP installs hosted on an Ubuntu 14.04 LTS, w/ PHP 5.5.9 & Nginx 1.4.6. MySQL runs on alternate node, not on public network. Goal: To have directories & files ...
3
votes
0answers
491 views

VirtualDocumentRoot and ProxyPassMatch

I have the following Apache configuration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot /Users/alex/Sites/...
3
votes
0answers
57 views

Q: lighttpd uses 2GB ram while idle for private page

I'm running a server with lighttpd installed. It runs php5-fpm and servering an owncloud server. Ubuntu Server 14.04 lighttpd/1.4.33 (ssl) (Jan 28 2014 17:26:04) - a light and fast webserver PHP 5.5....
3
votes
0answers
838 views

wordpress / php-fpm crashes when uploading images to server

I have successfully migrated a wordpress server to a new VPC ( Amazon ) but looks like php-fpm can't handle the image uploads. When I upload an image, it does partially and then stalls, or it doesn't ...
3
votes
0answers
91 views

php-fpm: Maintain php_mod logging format

I recently switched all my lab servers from apache pre_fork/mod_php to apache worker/fcgi/php-fpm, and after getting everything set-up correctly, I noticed one last issue; php-fpm is adding it's own ...
3
votes
0answers
7k views

High Performance AWS EC2 / RDS + Nginx + PHP-FPM setup

General description of the issue We're currently running an application on a PaaS type solution for PHP. Their solution is based on AWS cloud and due to the fact that their plans don't fit our ...
3
votes
0answers
1k views

php-fpm process in D state ,cause nfs wait rpc_wait_bit_killable

my wordpress site which is in clustered environment using NFS,nginx,php-fpm,mysql the infrastructure is hosted on amazon ec2.Under high load/traffic the php5-fpm process goes in D state(...
2
votes
0answers
154 views

What is PHP-FPM doing actually?

I followed the steps to install PHP5.6 and PHP7.1 side by side on an Apache server, using FastCGI. One of the steps is to install and start php-fpm. However, when I stop this service, the PHP systems ...
2
votes
0answers
478 views

Apache 2.4 + PHP-FPM + Chromelogger (how to increase HTTP header length limit?)

I have a running Apache 2.4 + PHP-FPM setup. There is one edge case though, when this setup fails - when using Chromelogger. Chromelogger is a server to client debugging tool, which sends it's data ...
2
votes
0answers
580 views

Nginx php-fpm getting rid of 502 error on high traffic site

currently i have a server with following specs: 32 core 128gb RAM 1TB SSD hardisk 5Gbps network uplink current setup are nginx+php-fpm without any load balancing setup nginx.conf ...
2
votes
0answers
240 views

Nginx: Serving magento site at different root with subdirectory inside other magento root

After many hours of googling and testing I have yet to get this to work. I have a functioning magento install at /srv/site1/htdocs . I have another magento install at /srv/site2/htdocs . I need site2 ...
2
votes
0answers
563 views

How to redirect request from one container to another when .php files are called

I am working in a LAMP stack using Docker and Docker-Compose and I am stuck since I am not able to execute PHP files meaning anytime I try http://localhost/index.php I end with the following 403 ...
2
votes
0answers
333 views

502 Bad Gateway Error - exited on signal 11

I have an issue on a particular Magento store, on two different servers. The issue is that when I save admin panels, I get a 502 error. The values actually save to the database, as pressing back on ...
2
votes
0answers
322 views

php-fpm chroot setup with apache mod_proxy_fcgi

i'm looking for recent instructions on how to set up apache with mod_proxy_fcgi and chrooted php-fpm. i was successful for the whole process except for the chroot part. i'm trying to use the most ...
2
votes
0answers
614 views

PHP-FPM random timeout crashes

Similar questions have been asked about this but none have seemed to shed any light on this issue. I am using PHP 5.6.18 on Ubuntu 14.04. The server its on is an in-office server with an 8 core CPU (...
2
votes
0answers
3k views

Getting recv() failed (104: Connection reset by peer)

The following issue happens only when i use Laravel's @include to include other blade templates into main layout: /etc/nginx/error.log 015/06/25 23:42:34 [error] 3374#0: *1 recv() failed (104:...
2
votes
0answers
1k views

Can not connect with imap_open but openssl s_client works

So after 2 days of trying all the solutions I could find that seemed to apply, I am still scratching my head. There must be something I am missing. I am trying to connect to a postfix/dovecot mail ...
2
votes
0answers
575 views

PHP-FPM + Apache (403 forbidden message)

Im having trouble installing php-fpm. When ever I install it and open a php file i get a 403 forbiden status code Looking at the logs is see client denied by server configuration: /usr/lib/cgi-bin/...
2
votes
0answers
3k views

Apache Server Stops Serving Requests Temporarily with Apache 2.4.12 on Amazon Linux with PHP 5.4.40 FPM/Worker

We have an apache server stopping serving requests constantly due to the following error: (70007)The timeout specified has expired: [client xxx.xxx.xxx.xxx:33740] AH01075: Error dispatching request ...
2
votes
0answers
286 views

apache php-fpm - max_children reached -> server unresponsive until php-fpm restart

One of our servers with a very special setting is very sensitivee to an unknown event. Hardware: Xen - VM 22 Cores (build with Intel xeon 4*6 Core) raid 6 SSD 60 GB RAM Configuration: Suse ...
2
votes
0answers
458 views

PHP-FPM slowlog and Mysql lost connection

I was having an issue with PHP-FPM and mysql. When I needed to process an input file that would generate several selects/inserts/updates for each line, it would stop after approximately 60s with ...
2
votes
0answers
376 views

How can I get openSSL to run on my web server with a PHP5-FPM chroot?

On my web server, I changed the chroot to only have access to the root of my website's home directory as opposed to the rest of the file system, for security purposes. However, I've noticed that since ...
2
votes
0answers
314 views

Database hangs when using owncloud on nginx php5-fpm postgresql - i think postgres if responsible

I have strange problem with this setup. Strangely it occurs only when using owncloud from one specific computer. Problem is when user click on "Activities" an "document" icons one after another ...
2
votes
0answers
447 views

Load Average problems while serving 40M requests daily with php-fpm, nginx

I have server with FreeBSD (16 cores with HT, SSD, 32Gb RAM) which is getting about 40M http requests daily. All requests are served by nginx + php-fpm. At these graphs you see that we have a ...
2
votes
0answers
1k views

Trying to get the “pool seems busy” errors to stop with php-fpm

I have a machine that is running with 3 cores and 7GB of RAM. On this machine we are running Nginx 1.4.2 and PHP-FPM. Each PHP-FPM process uses ~30MB of RAM. So this is the pool configuration I have ...
2
votes
0answers
898 views

What is the correct way to log PHP script's execution time and memory usage?

I want to monitor the execution time and memory usage for my web application running on Nginx + FPM. To that end, I am generating execution time and memory data in the page footer. I can also insert ...
2
votes
0answers
1k views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
2
votes
0answers
450 views

Nginx / PHP-FPM setting 404 / 5xx on externals

So I've recently been trying to help out the community by building a pimcore based nginx vhost config. Everything works very well from what I can see except for 1 small issue. If any of the pages (...
2
votes
0answers
502 views

PHP-FPM process timeouts but NGINX does not close the session with Client

I am using Magento with NGINX+PHP-FPM We are facing a problem that some of our AJAX call is timing out in the PHP-FPM. The Process in PHP-FPM gets killed but NGINX does not close the session with ...
2
votes
0answers
7k views

NGINX + php-fpm + APC High CPU Load

I am reaching out for some help here, I have spent quite a few hours on this site searching the posts and also on google trying to see what the issue may be and trying to solve my problem without much ...
2
votes
0answers
297 views

How to optimally configure php-fpm?

I am using php-fpm along with nginx to server a busy drupal sites. I have not tweaked php5-fpm.conf yet. The stability is fantastic, however, I am wondering how to optimally set the parameters to ...
2
votes
0answers
2k views

PHP-FPM High Memory Usage

I have a wordpress blog, that uses WP-SuperCache, and normally I get 100 visitors per day. With nginx + php-fpm it's blazing fast, and I have no regrets. One thing i noticed, php-fpm takes a lot of ...
1
vote
0answers
22 views

Nginx / PHP-FPM drop ajax requests intermittently, how could one pinpoint the cause?

I have an issue I cannot get to grips with. We have an app server that has mysteriously started "dropping requests". These are ajax requests. I restart php5-fpm, all runs fine for a few minutes then ...
1
vote
0answers
301 views

Apache 2.4 with php-fpm ignores .htaccess

I have a VPS server with Apache, FastCGI and php-fpm installed. But, the .htaccess files seems be ignored. I have a .htaccess file that redirects http URLs to https URLs: <IfModule mod_rewrite.c&...
1
vote
0answers
114 views

php.net discourages the use of threaded MPM in production with Apache 2

php.net discourages the use of threaded MPM in production with Apache 2. Use the prefork MPM, which is the default MPM with Apache 2.0 and 2.2. It doesn't mention anything about apache 2.4, I ...
1
vote
0answers
737 views

PHP FPM pool www - 100% spikes when executing scripts - how to debug

I am experiencing weird 100% spikes of cpu when loading drupal pages. It started several months ago and now Im trying to debug this. I moved same database and files to new hosting - everything runs ...
1
vote
0answers
380 views

How to escape/quote a dollar sign `$` in an env var in a php-fpm pool?

As symfony4 uses dotenv and environment variables for configuration, they are also needed on the server. to pass the variables it is possible to add the following to the pool config: example-pool....
1
vote
0answers
63 views

How can I determine a reasonable value for pm.max_children in dynamic mode?

I really don't understand the purpose of this variable - what exactly is the purpose of it? To prevent the exhaustion of ram? It seems ineffective as each request could use a variable amount of ram up ...
1
vote
0answers
354 views

Rules for a valid pool.d/www.conf file for php-fpm

This is how I sorted my /etc/php/7.0/fpm/pool.d/www.conf file after deleting all comments out of it for a nicer and easier display: [www] user = www-data group = www-data listen.owner = www-data ...
1
vote
0answers
185 views

Nginx link secure module with php issues?

Nginx configuration server { listen 80; server_name 173.249.40.xxx; root /var/www/files.com/html; index index.html index.htm; location / { try_files $uri $uri/ =404; } location /...
1
vote
0answers
90 views

PHP-FPM does not use memory

I run PHP7.1.15-FPM with nginx on an EC2 Instance. I installed Magento 2 which requires a lot of resources (e.g. 2Gb Memory). When I look at the default configuration of nginx, php-fpm and Magento, ...
1
vote
0answers
99 views

Wordpress upload file size error even after raising php limits

I get 'The uploaded file exceeds the uploadmaxfilesize directive in php.ini.' error while trying to upload a plugin which is just 5.1MB. I have raised the limits in php.ini file and also thru webmin. ...
1
vote
0answers
309 views

dns resolving fails in php-fpm chroot using docker

Using Docker, I am trying to set up nginx + nextcloud:fpm in a chroot environment. It's all set up and working so far except that the software reports that it cannot connect to the internet, the ...
1
vote
0answers
382 views

Nginx - PHP - FPM Config - How to clearly understand the concept?

pm = dynamic pm.max_children = 700 pm.start_servers = 20 pm.min_spare_servers = 20 pm.max_spare_servers = 40 pm.max_requests = 500 I am using the following. But still i am getting errors after ...