As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

nginx and php-fpm waiting for server too long

Hi I am using docker to mount nginx and a php-fpm using Falcon as a framework and react as the front end `upstream fastcgi_backend { server bfy-%APP_VERSION_UID%_buildify-php-fpm_1:90%FPM_PORT_PREFIX%;...
Apoorv dev's user avatar
0 votes
1 answer
72 views

Frequent server downtime and suspicious server hits to access random Pdf files

Our Server hosting PHP web application is facing frequent downtime Server Information [Nginx, FreeBSD] Web application [PHP 5.6, MYsql 5.7] I have gone through the Nginx logs and below are my findings ...
Ekky's user avatar
  • 101
0 votes
0 answers
14 views

Apache FPM keeps stopping and restarting on Cpanel based VPS [closed]

I have a VPS with Contabo. I keep getting 2-3 times a day the folowing error: the subprocess “/usr/local/cpanel/scripts/restartsrv_apache_php_fpm” reported error number 29 when it ended. The service ...
joomkit's user avatar
  • 101
1 vote
1 answer
51 views

PHP-FPM starts before the web folder mounts in /etc/fstab, throws error

I'm running a LAEMP reverse proxy server on Arch in the cloud. I have my nextcloud/data folder mounted to an attached storage drive at /mnt/hdd/nextcloud/data, linked to /srv/www/nextcloud/data. If I ...
Jesse's user avatar
  • 215
0 votes
0 answers
43 views

PHP-FPM unable to find or access status shared memory

I am running a busy magento 2 load balanced web server with 3 back-end PHP-FPM servers and a shared EFS network filesystem on AWS cloud. There are lots of concurrent users and everything works fine ...
Bursuc Sergiu's user avatar
0 votes
0 answers
17 views

installation of apache2 + php82-fpm under macOS Ventura seems to keep php files in cache

A macports' installation of apache2 + php82-fpm under macOS Ventura seems to keep php files in cache, even before installing php82-opcache. I don't know if this is coming from apache2 or php82-fpm, ...
Fabien Auréjac's user avatar
0 votes
0 answers
59 views

NGINX + PHP + ASDF: asdf plugin is using PHP 5.6 instead of 7.4

Goal: I need to load a PHP website (7.4) running NGINX using ASDF plugin. (Mac OS, M2 processor, NGINX and ASDF installed) issue: when I load the website via nginx I get this: Fatal error: Composer ...
w3jimmy's user avatar
  • 143
0 votes
1 answer
35 views

How is php-fpm socket folder ({/var,}/run/php-fpm) created on Linux?

I am setting up multiple php versions on CentOS7 (native and from remi repos). As installed, the native php-fpm ( is setup on a unix socket, while the (remi) php74-php-fpm would listen on a TCP socket....
Alien Life Form's user avatar
1 vote
1 answer
43 views

Find what paths are required for open_basedir?

We have a server (running PHP-FPM 7.4 on Apache) that hosts various scripts, frameworks and applications like DokuWiki. It's grown to a pretty complex beast. We would like to apply an open_basedir ...
xebeche's user avatar
  • 361
0 votes
0 answers
14 views

php.ini file setting being ignored - tring to change upload_max_filesize

Running php8.2 with fpm - I have rebooted server, I have restarted both php8.2-fpm and apache2. I am 100% certain I've changed the correct php.ini file - infact I have changed all 3, apache2, cli and ...
Michael T's user avatar
  • 121
0 votes
0 answers
16 views

PHP 7.4 FPM under Nginx serves wrong class from cache

We have a Linux environment serving a few different applications, all written in PHP 7.4. They are served out of a single Nginx web server using virtual hosts, and are all using FPM. In our code we ...
Henrik Schultz's user avatar
0 votes
0 answers
50 views

php-fpm corrupts source code after child SIGKILL

Strange situation happens, about once a month on the server one of the php-fpm child processes is forced to shut down (error log - WARNING: [pool www] child 20651 exited on signal 9 (SIGKILL) after ...
Vv.'s user avatar
  • 3
0 votes
0 answers
38 views

PHP-FPM slow log returning invalid results

The problem I’m running PHP-FPM 7.4.30 under Apache 2.4 on RHEL 8, and I’m not able to get PHP’s slowlog to work properly. It won’t return valid information about long-running scripts. When I enable ...
potc's user avatar
  • 81
-2 votes
1 answer
140 views

Site downloading instead of displaying in broswer

The site is this agency website. I just migrated a wordpress site files and database (diffrent url) to digitalocean (new url). nginx installed settings ok. php-fpm8.1 letsencrypt installed, mariadb ...
Crypto Coupons's user avatar
0 votes
0 answers
38 views

php7.4-fpm consumes 100% CPU and loops mremap() system call

Recently I have upgraded to the mainline Debian 10 backport kernel. This morning I've noticed that the web server is very slow, and inspection showed 100% CPU usage by php7.4-fpm: PID USER PR ...
mt42's user avatar
  • 131
0 votes
1 answer
32 views

ModSecurity : PCRE limit settings do not have any effects

I'm facing Rule execution error - PCRE limits exceeded (-8): (null). errors when I ask ModSecurity to analyse body data (using the SecRequestBodyAccess On directive). I've read about the problem, and ...
Jean's user avatar
  • 123
1 vote
1 answer
66 views

PHP-FPM static max_children amount doesn't seem to matter much during stress tests

I've been stress testing PHP-FPM set up as static using wrk, with NGINX running on Ubuntu Server 22.04 for the past few days, writing down results for every scenario. When I look at them, it seems to ...
Medito Di Terra's user avatar
1 vote
1 answer
30 views

Handling Nginx location aliases when using a standalone PHP-FPM server

I host various Laravel applications that use various versions of PHP, and decided to improve the current single bloated container Docker setup by having multiple PHP-FPM containers, one for each PHP ...
slightly_toasted's user avatar
0 votes
0 answers
56 views

Rate limit specific PHP endpoints when running Nginx with php-fpm

Like many apps, I have some endpoints that are more sensitive than others, such as login & password reset, and need rate limiting. However, nginx handles all requests for PHP resources through a ...
Synchro's user avatar
  • 3,128
0 votes
1 answer
83 views

PHP-fpm consuming most memory

My Memory and swap memory is being used mostly by php-fpm which results in slow response from server. below is the output of top command. Kindly suggest Also my php-fpm conf file settings are as ...
Bhavik's user avatar
  • 101
0 votes
0 answers
43 views

Limit CPU Usage per PHP Pool

I'm running a typical LEMP stack where I have multiple PHP-FPM pools, one for each site that's on a Rocky Linux 8 VPS. Occasionally, some rogue process on one of the sites will cause a huge CPU spike ...
thekendog's user avatar
0 votes
0 answers
75 views

kubernetes responding with 502

I have a cluster running 2 deployments and an ingress (caddy). One of my deployments is working fine, its a golang image listening on 80. The other deployment is a php-fpm image listening on 9000, ...
wcb's user avatar
  • 1
0 votes
1 answer
50 views

Nginx/PHP-FPM Server often 521 error

I have problem with my server since its ended up with 520/521 error. However, this only happen in a few seconds then its normal again. I have no idea where the problem is. The SSH is running well, ...
Stuart William's user avatar
0 votes
0 answers
35 views

php files serving blank pages except for the login page on nginx

I have a project that has the root directory ed_v001 and all the includes and settings are in a directory ed_v001/includes. When i open it in a browser it displays the login page properly but when you ...
Kudzai Chikomwe's user avatar
0 votes
0 answers
26 views

Server Send Code 521 While SSH running well

I would like to ask a question regarding my server problem. I have no idea why it sent 521 code while resources is still fine. I think there is misconfiguration. I am using default of Webuzo panel. ...
Stuart William's user avatar
0 votes
0 answers
41 views

php-fpm high load Unexpected character

The load is not high and everything is ok When the load came up that day, it suddenly became abnormal. some mistakes: [error] 29935#0: *88148841767 FastCGI sent in stderr: "PHP message: PHP Fatal ...
FLY's user avatar
  • 1
0 votes
1 answer
277 views

How to downgrade php-fpm from php-fpm8.1 to php-fpm7.4 in Ubuntu 22.04?

I installed php-fpm8.1 with nginx in Ubuntu 22.04, but php-fpm8.1 is incompatible with some old code; I want to downgrade to php-fpm7.4 without damaging anything. How can I do that?
Niyaz's user avatar
  • 103
0 votes
0 answers
87 views

PHP-FPM + Apache2 security

I have configured my server (an Ubuntu 22.04 machine) so that it is managed by Apache (v2.4.55) and php7.4-fpm. The current configuration allows every vhosts to be divided into specific php-fpm pools, ...
MrL's user avatar
  • 1
0 votes
1 answer
59 views

HTTPD + MPM_EVENT + PHP_FPM

I have created a docker container with the following OS: Debian 11 WebServer: httpd2.4 (Enabled mpm_event) Backend: PHP-FPM Docker is running in EC2 and I have given 10GB RAM and 5CPU for the docker ...
siva nanda perumal's user avatar
0 votes
1 answer
120 views

With php-fpm.conf what is the default value for "pm"?

According to https://www.php.net/manual/en/install.fpm.configuration.php for pm there are: pm string Choose how the process manager will control the number of child processes. Possible values: static,...
Avatar's user avatar
  • 127
2 votes
1 answer
272 views

nginx route all 404 requests to a php script

I want to route all 404 requests to a php script, How should I do that? My nginx config is: server { listen 81; listen [::]:81; root /srv/http/paste.lan/www; autoindex on; ...
hanshenrik's user avatar
0 votes
0 answers
149 views

Cannot start the php-fpm service in Alma 9

I've compiled php 8.2.3 on Alma Linux 9 but fails php-fpm fails to start. I was previously using Centos 7 with a slightly older php version and didn't have any issues. The php-fpm conf file is also ...
Asa Carter's user avatar
0 votes
0 answers
410 views

AWS ECS: Networking between container Nginx and PHP-FPM on the same host

So I have spent the past two weeks learning about ECS and trying to setup a very basic task with an nginx container and and a PHP app in another container. It seems like I'm very close, but I'm now ...
tmath's user avatar
  • 111
0 votes
0 answers
110 views

How to create a proper nginx fastcgi configuration for 1 server 1 domain

I would like something simple like everything to redirect to ssl and from there cached I guess no? How can I get non www version to redirect to www version as well PS. I am using ssl strict ...
Crypto Coupons's user avatar
0 votes
1 answer
60 views

Weird traffic behavior on Ubuntu server

top - 19:51:36 up 1 day, 12:27, 1 user, load average: 19.14, 11.33, 4.74 Tasks: 172 total, 18 running, 154 sleeping, 0 stopped, 0 zombie %Cpu(s): 90.0 us, 10.0 sy, 0.0 ni, 0.0 id, 0.0 wa, 0....
Crypto Coupons's user avatar
1 vote
1 answer
607 views

Nginx returning 404 on new installation

On Linux Mint 20.3 I had working setup for my local development of website: server { listen 80; listen [::]:80; server_name cbp.local; root /home/gacek/html/cbp/public; index ...
Gacek's user avatar
  • 85
0 votes
0 answers
135 views

Poor server performance on Linux Ubuntu 20.04 with PHP-FPM, MySQL, and Redis Server installed

My client’s server has recently started having performance issues. The single website hosted on the server loads very slowly. It is built with WordPress using a custom theme. There are a minimum ...
Mike Hermary's user avatar
1 vote
0 answers
251 views

What does "connect() failed (101: Network is unreachable) while resolving" in NGINX error log mean?

Earlier this week, we host a live virtual event on our organization's website that had higher-than-expected attendance. We had several complaints from users saying they either couldn't get into the ...
rguttersohn's user avatar
1 vote
0 answers
141 views

need nginx to be able to check directory outside of root directory

I have a Laravel app that works perfectly fine when running with php artisan serve but when trying to use nginx as the frontend I'm having all sorts of trouble getting this to work properly. I ...
MasterOfNothing's user avatar
0 votes
0 answers
71 views

Php-fpm cannot run a *.php file from a symlink pointing outside the DocumentRoot directory. Error "File not found."

if I will create a virtualhost with PHP mode: php-fpm (using Virtualmin) if I enable Options +FollowSymLinks in the Virtualhost if I create a symlink inside DocumentRoot to a directory outside ...
Peter Bentix's user avatar
1 vote
0 answers
114 views

Nginx - Server dead when received many requests

we have a large Woocommerce website hosted on Google VM servers (E2 4vCPU + 32 GB RAM + 100 GB SSD Storage), recently we created a mobile application using flutter and WordPress -Woocommerce- API, but ...
mohammad's user avatar
1 vote
2 answers
212 views

http3 removes domain from all links

So couple days ago I installed NGINX 1.23.3 QUIC with Brotli, TLS 1.3, OpenSSL 1.1.1s with HTTP/2 and HTTP/3... so server with fastcgi and php-fpm... when I load site for first time it works with ...
Raimond's user avatar
  • 11
0 votes
1 answer
100 views

PHP-FPM ERROR: [/etc/php-fpm.d/www.conf:xxx] unknown entry 'process_control_timeout'

I have a LAMP stack with Amazon Linux 2, Apache 2.4, and PHP-FPM for PHP 8.1 and I'm trying to set the value for process_control_timeout in my PHP-FPM config I added process_control_timeout=50s to the ...
Arth's user avatar
  • 365
0 votes
0 answers
289 views

How can I fix docker networking issues with multiple containers when working locally

So I have a basic docker setup with nginx and php-fpm that gets deployed to AWS ECS: Dockerfile for nginx # Install nginx FROM --platform=linux/amd64 nginx:latest # Use custom configs ADD nginx/conf/...
andreas's user avatar
  • 221
0 votes
0 answers
512 views

nginx (+ php-fpm) sometimes returns http code = 499

I have a script.php that is called via curl and runs for about 40 minutes. Sometimes the script just stops in the middle. In nginx access.log script call completes with strange http code 499. There ...
Vv.'s user avatar
  • 3
0 votes
0 answers
17 views

Different senders for different VHosts

I have Ubuntu 20.04 LTS server, with Apache2 (mpm_event), PHP 7.4 FPM, postfix (as a relay) installed. This server hosts several sites (WordPress). The problem is that the sites are sending by default ...
NukDokPlex's user avatar
0 votes
1 answer
105 views

Sudden spike in PHP-FPM process CPU usage. How to track down?

I have a magento2 store(with 10609 products) running on an ec2 instance(ubuntu 20.04, 16core and 32GB ram). It is a shared server with staging and live on the same instance. A few days ago, I got an ...
Kingdom venus's user avatar
0 votes
0 answers
120 views

Why does my socket connection not work?

I am on Ubuntu 22.04. I have a bit of a non-standard configuration, but I managed to have it running. However there is one thing that does not work: connecting Apache to php-fpm via socket. It works ...
Palantir's user avatar
  • 125
0 votes
0 answers
303 views

php.ini file is edited but still changes are not reflecting

I used phpinfo() in the code and it shows that the Loaded Configuration File is /etc/php/7.4/fpm/php.ini, I edited the upload_max_filesize to 500M and restarted the fpm service using, sudo systemctl ...
Sting's user avatar
  • 1
1 vote
2 answers
2k views

Configuring PHP-FPM in Apache

I installed Apache/2.4.54, PHP72-FPM, PHP74-FPM and some other versions of PHP-FPM on Arch Linux. Apparently there is some misconfiguration in httpd.conf, PHP can`t interpret anything and browser ...
Phree's user avatar
  • 13

1
2 3 4 5
43