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
27 views

PHP-FPM process is taking too much CPU

I'm trying to understand the top command, php-fpm is taking too much %cpu but the CPU on top is always very low why is that happening, and where to start to maybe tune it?
Emad Ha's user avatar
  • 101
0 votes
1 answer
60 views

How to tell sqlsrv extension (php8.1-fpm) to accept self signed certificate?

I am currently encountering a problem on a Moodle server which uses an external MS SQL DB for its authentication and enrollments. During connection, an error occurs related to a self-signed ...
Gbl's user avatar
  • 5
0 votes
0 answers
46 views

Limit php-fpm to a specific sub directory generally handled by apache

I am facing the following legacy setup with php-7.4 and libapache2-mod-php7.4 installed and enabled: <VirtualHost *:80> ServerName example.com DocumentRoot /var/www/html <...
Cologne_Muc's user avatar
0 votes
1 answer
45 views

Partial Results Error during File Upload – Seeking Assistance (CentOS 8.8, PHP 8.2, WordPress)

I hope you're doing well. I'm reaching out because I've hit a roadblock with my WordPress website and file uploads. Here's the error message that has been causing me headaches: [Thu Nov 02 16:55:53....
LKX's user avatar
  • 1
0 votes
0 answers
42 views

opcache_reset() keeps returning false

I have a web server running WordPress on Nginx and PHP-FPM (PHP 8.0). When a PHP file is changed, it will be detected by a separate program and opcache_reset() is called repeatedly until it succeeds. ...
Akihiro HARAI's user avatar
0 votes
1 answer
36 views

php-fpm creats only one socket file

I have multiple virtual hosts with unique domain names, users, and root directories for each on Nginx and php8.1-fpm. In the /etc/php/8.1/fpm/pool.d/domain.com.conf contains user = domainuser group = ...
FlourishDNA's user avatar
0 votes
2 answers
111 views

Why cannot Nginx access files in the `wp-includes` directory?

I have a WordPress website that I installed on an Ubuntu server. I setup Nginx to listen for requests and to push them to php-fpm. I am using the pool feature so that the WordPress site can have all ...
SunSparc's user avatar
  • 1,008
0 votes
1 answer
59 views

installed homebrew openssl library not found when building MongoDb PHP driver on Mac

Similar to this questioner, due to a 502 Bad Gateway error, following the PHP docs I am attempting to build the PHP Mongo driver from scratch, using a modified ./config step ./configure --with-mongodb-...
wonder95's user avatar
  • 123
0 votes
0 answers
31 views

Track down PHP crash running in lighttpd - no logs

0 Just recently I've started to see seemingly random crashes on a web server that has been stable for quite some time. I think PHP is crashing, but there are no crash logs so I'm only assuming that's ...
QldRobbo's user avatar
0 votes
0 answers
73 views

SELinux silently blocking PHP process listing

I have a system where we use PHP to run some rudimentary health checks on the server. When hitting a status page, it verifies that certain processes are running, and returns an error message if ...
Jared's user avatar
  • 383
2 votes
1 answer
362 views

How can I permanently change the ownership of /run/php?

On my Ubuntu server, I run Apache 2 with a php8.2-fpm pool, and I have changed the PHP user, which is not www-data anymore. I've changed the php-fpm.conf (/etc/php/8.2/fpm/pool.d/www.conf), so that ...
Henning Haugen's user avatar
0 votes
0 answers
66 views

php-fpm - How to log `NOTICE`s to stdout, everything else (`E_ALL`) to stderr?

As far as I understood the configuration docs, it is only possible to enable/disable specific log levels: # ini, E_NOTICE disabled entirely. error_reporting=E_ALL & ~E_NOTICE display_errors=stderr ...
goulashsoup's user avatar
0 votes
0 answers
89 views

Need php-cgi process to show site URL too?

I have a CentOS 7 server. When I use "top" to view processes I can hit "c" to get the full command. I then see something like this: 17890 do1803 20 0 R 100.0 0.6 0:02.39 /...
Ken Williams's user avatar
0 votes
0 answers
68 views

PHP-FPM triggers "pm.max_children" but does never recover

I have a scenario where I use some JQuery (yes a very old project) that does 10~100 HTTP GET requests async. I just fire them and let the browser handle how many are being done in parallel. I don't ...
Matthijs's user avatar
  • 121
2 votes
1 answer
34 views

Setting up monit to keep track of .sock files for php-fmp sites

I'm trying to setup Monit so that it keeps track of domains in case PHP crashes. Example: check file php7.3-fpm-pidfile with path /var/run/php/php7.3-fpm.pid start program = "/usr/sbin/...
Andrew Newby's user avatar
  • 1,124
0 votes
1 answer
129 views

502 Bad Gateway nginx 1.20.1

I know why is this coming. But I don't know how to fix it. I was installing osticket following this article. https://www.vultr.com/docs/how-to-install-osticket-on-centos-7/ Turns out current osticket ...
achhainsan's user avatar
2 votes
0 answers
167 views

Docker nginx + php performance

I am using docker-compose to run an nginx container and a PHP container. I have a performance issue, where each 4th or 5th request to a simple PHP script takes several seconds (normally <<1s). I ...
Joaquim d'Souza's user avatar
0 votes
1 answer
164 views

PHP Fatal Error: Cannot open /dev/urandom: No such file or directory when calling session_start() with manually built PHP

Problem I built PHP8.4 manually in Ubuntu 14.04 since the OS is out of support with no ppa package available. I tested for phpinfo() web page showed correct information while adding session_start() at ...
NeNe's user avatar
  • 3
0 votes
1 answer
118 views

Running PHP7.4 FPM on Ubuntu. Forgot to install PHP7.2-curl. Wondering if I will need to bring down all the other websites for the change

So I run a server with about 7 websites. Just wondering if adding a module I will have to bring down the php-fpm and thus reboot the nginx process or adding a module. Nginx Ubuntu 20.04 php 7.4 ...
BostonAreaHuman's user avatar
0 votes
1 answer
145 views

503 Service Unavailable or Empty Response on specific pages over PHP (PHP-FPM) on MacOS

I've got a strange problem here involving some versions of PHP installed in my local machine (MacOS Ventura 13.5). Certain pages (two at this moment) doesn't load in some versions of PHP. It's loads ...
Luiz Otávio's user avatar
0 votes
0 answers
48 views

system load spikes causing php-fpm pools to fill and cause micro outages

kind of at my wits end at this point and looking for some help. 2 physical Web servers CentOS NGINX PHP5 php-fpm 2 physical DB Servers CentOS NGINX elastic search zookeeper couchbase as user load ...
John Bell's user avatar
0 votes
2 answers
122 views

Incorrect Permissions and Ownership in /etc/nginx/sites-available Folder for Containers

I seem to have encountered an issue with the default permissions and ownership of the containers within my /etc/nginx/sites-available directory. The current permissions and ownership structure appears ...
Sylvester DeMouser's user avatar
0 votes
1 answer
231 views

Laravel, nginx, Docker, PHP - Load Test, Very Unsatisfactory Results

We are creating two servers in Hetzner (https://www.hetzner.com/cloud). Parmeters of both: CPX51 - vCPU 16 AMD, RAM 32 GB. On one server with Ubuntu 22.04 we install Docker and run the PHP application ...
portableunit's user avatar
0 votes
0 answers
151 views

Nginx + php-fpm 8.1 - 502 Bad Gateway - Site down for hours until php-fpm manually restarted

I have a web server set up on Nginx and PHP-FPM (PHP version 8.1). It has worked fine for over a year now. Lately, I've noticed that the site would be down for hours - maybe once or twice a week. ...
peppy's user avatar
  • 73
0 votes
1 answer
550 views

Nginx and PHP-FPM 504 gateway timeout with multiple curl requests

So I've been going crazy with this for the last 5 hours or something like that. We have been having a problem in one of our servers that suddenly started giving 504 gateway timeouts. So first versions:...
Tio's user avatar
  • 145
0 votes
1 answer
172 views

How does Php-fpm access filesystem, or does it?

Background: My server has become too old to upgrade. Some software will only work on PHP 5.6 and is incompatible with newer versions of PHP. New server hosting packages do not support PHP 5.6 as it ...
David Newcomb's user avatar
0 votes
0 answers
412 views

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)

I have exported a WordPress XML file which contain all pages, posts, WooCommerce products, orders etc. File size is 100MB. Now I am trying to import it on another machine but getting error. It even ...
Frank Martin's user avatar
0 votes
0 answers
132 views

What is the proper value of "fastcgi_split_path_info" in Nginx virtual host when using php 7.4 with "cgi.fix_pathinfo = 1" on Nginx v1.25.1 Mainline?

BACKGROUND: I am running a LEMP server with Ubuntu Server 20.04 with Nginx v1.25.1 Mainline and php7.4-fpm. In my virtual hosts file I am trying to set the proper and working fastcgi_split_path_info ...
DanRan's user avatar
  • 103
0 votes
0 answers
89 views

How to keep Entity Tags (Etags) generated by PHP

I'm running a small RESTfull api server from a hosted Plesk Obsidian server. A small PHP based REST Api generates ETags for resources and are correct on our development environment. In production we ...
theking2's user avatar
  • 179
0 votes
1 answer
47 views

nginx how to handle POST requests in 404 handler?

in my /etc/nginx/sites-enabled/devdb.easy-ads.com I have: server { root /srv/http/devdb.easy-ads.com/www; index index.html index.htm index.nginx-debian.html index.php; ...
hanshenrik's user avatar
0 votes
1 answer
44 views

nginx how to execute php scripts on "internal" uris?

I have a problem getting php scripts to execute in internal sites loaded via X-accl-Redirect.. My /etc/nginx/sites-enabled/devdb.easy-ads.com file contains: server { root /srv/http/devdb.easy-...
hanshenrik's user avatar
0 votes
1 answer
989 views

No candidate version available for php7.4-fpm

We’ve been installing php7.4-fpm via the ppa:ondrej/php repo with apt on an Ubuntu 18.04 server with our Chef recipes, but today it’s not working today. I think maybe the packages have been removed ...
Will Ashworth's user avatar
0 votes
0 answers
442 views

PHP-FPM child processes terminate for no apparent reason

// FIXED Issue was Shopware 6.5 related After weeks of unsuccessful debugging, we are now hoping for help here. We have a system where we can create test instances for Shopware 5 and Shopware 6. The ...
Rafael's user avatar
  • 1
-1 votes
2 answers
512 views

nginx and php-fpm waiting for server too long

I am using docker to mount nginx and a PHP-FPM using Phalcon 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
232 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
1 vote
2 answers
184 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
  • 235
0 votes
0 answers
354 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
1 answer
86 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
214 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
1k 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
140 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
  • 363
0 votes
0 answers
134 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
44 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
135 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
1 answer
181 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
212 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
93 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
182 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
251 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
180 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

1
2 3 4 5
43