Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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

Intermittent 503 timeouts on website due to PHP FPM "Attempt to connect to Unix domain socket failed"

I have been experiencing intermittent site outages showing a 503 error. The site normally runs just fine. I've pinpointed it to the following error that gets spammed in my apache logs: FCGI: attempt ...
user avatar
-1 votes
0 answers
14 views

NGINX wiith Vesta CP does not accept URL rewrite rules for WordPress. UBUNTU 18.04

I installed NGINX + PHP FPM server with VESTA control panel, everything works fast, but I ran into one problem. WordPress gives 404 error on all pages (except for the main and control panel) and I ...
user avatar
1 vote
0 answers
17 views

Octopus deployment causes 100% CPU usage in PHP-FPM

Environment: AWS OS: GoldenImage-amazonLinuxV2-2021-01-04_19.43.07 Nginx: 1.20.0 PHP-FPM: 7.3.33 Octopus tentacle: 6.1.1351 The old method So we currently use a simple push script to deploy a PHP site ...
user avatar
0 votes
0 answers
16 views

Fix 502 Bad Gateway

I have Nginx running on Ubuntu server (digital ocean), I've setup LEMP stack for hosting the Wordpress website. I'm getting 501 Bad Gateway when I try to reach website using the IP address. I see this ...
user avatar
  • 101
0 votes
0 answers
53 views

Nginx 502 Issue with the API & php-fpm

I've configured the new dev machine but can't get nginx working with the API as it is supposed to. The current error is that 'curl localhost/api' returns a 502. Host: Nginx PHP 8.1.x, php-fpm ...
user avatar
0 votes
0 answers
411 views

proxy_fcgi:error: The timeout specified has expired: Error dispatching request to : (polling)

my web server reaches the state of being unreachable every 1-2 days until I completely restart the server. The server is Debian Bullseye with the newest Apache + PHP 7.4. I'm using FPM, because I want ...
user avatar
0 votes
1 answer
25 views

Nginx rewrite rule to make php see https scheme

I want my pho application to only see the https scheme even if the secure connection is already terminated. I have the following setup: Browser --https--> nginx --http--> nginx --> php-fpm ...
user avatar
  • 103
0 votes
3 answers
35 views

Debian: how to put two versions of libcurl on one system?

I'm trying to migrate two web apps on single server(debian10), both require different versions of php, and both require cURL extensions to work properly. php5.6-curl uses libcurl v3 php8.1-curl uses ...
user avatar
0 votes
0 answers
225 views

Ubuntu 22.04 php8.1-fpm wifth Apache - 403 Forbidden You don't have permission to access this resource

I installed php8.1-fpm on Ubuntu 22.04. In principle, I set everything up, but still "403 Forbidden You do not have permission to access this resource "error message is displayed. The system ...
user avatar
  • 1
0 votes
0 answers
18 views

rpm is not installing dependencies, how to fix that?

I am using fpm to create an rpm for our application and need some dependencies as part of it. yum install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel ...
user avatar
0 votes
0 answers
23 views

debian phpfmp chroot and imagemagick - NoDecodeDelegateForThisImageFormat / supported formats:0

Friends, I've setup a chroot-jail with nginx and phpfpm 7.4 from packages.sury.org/php as usual (on Debian 5.10.103-1 bullseye). Imagemagick fails: <?php $im=new Imagick(__DIR__ . '/image.png'); ...
user avatar
  • 1
0 votes
0 answers
9 views

How to package rpm with vitualenv?

We are creating an rpm file with fpm As part of our product, when I check the existing project code, old developer using fpm to package the product and also set python3 as dependency. So whenever the ...
user avatar
0 votes
0 answers
13 views

php config - generate hashed password manually

I've created a php conf file, which include some user / password infos. For testing purposes I've added the password for the database in plain text. Since this can't be a good idea, I want to change ...
user avatar
0 votes
0 answers
25 views

Nginx if cookie exists, use proxy, if not, run php to create cookie and check again

I'm trying to create a condition with nginx that if a cookie does not exists, the nginx run index.php to create the cookie, and if a cookie exists, then the nginx goes to proxy. How I can do this? I'm ...
user avatar
0 votes
0 answers
14 views

Wordpress/Woo Commerce site keeps timing out

I have a woocommerce website hosted using AWS Lightsail on the bitnami stack. It's using apache and php-fpm. I use Cloudflare for DNS and some basic caching. The site has been up and running on ...
user avatar
  • 101
0 votes
0 answers
11 views

Running PHP application with plugin-support

I've a PHP application that is running fine in Kubernetes, except one scenario. The "problem" is that the application can be extended using plugin. In this case, we're simply adding the ...
user avatar
  • 123
0 votes
1 answer
29 views

How to set SELINUX HTTPD User Content RW?

I'm quite new to SELINUX, I've simple question, I know there are httpd_sys_rw_content_t for /var/www/html, and read only httpd_user_content_t, but if I want to allow some folder to be RW for that ...
user avatar
0 votes
0 answers
141 views

php8.0-fpm service not loading

I recently upgraded from PHP 7.4 to PHP 8.0. It seemed to work just fine until I rebooted. It looks like my PHP service isn't loading. user@server:~$ sudo systemctl status php8.0-fpm ● php8.0-fpm....
user avatar
0 votes
0 answers
43 views

Parsing PHP code in .html, .phtml in Plesk/Debian

I have updated my Plesk system from Debian 8 (PHP7) to Debian 11 (PHP 8.1.4) using the Plesk-internal backup function, everything worked fine at the first glimpse. However, I can't get PHP 8 (FPM) to ...
user avatar
  • 111
0 votes
0 answers
27 views

Php-fpm is generating too many proccesses

I am using a VPS with 2 GB of RAM on a 1 core CPU. (Ubuntu 20.04 + nginx1.21.6 + php7.4 + Mariadb10.5) And run 3 WordPress websites, and the average number of concurrent users is around 10. But I ...
user avatar
0 votes
0 answers
52 views

What should I set my pm.max_children to for php-fpm?

I've researched a way to calculate what pm.max_children should be set to for php-fpm but I'm a bit confused as to exactly which numbers I'm supposed to plug into the equation. The equation is RAM / ...
user avatar
0 votes
0 answers
20 views

DefaultGateway Timeout Ubuntu 21.10 several processes Hosted on Azure

Hey guys I am getting the following showing up on my glances screen. Don't have any issues serving up sites or getting to the net. Just curious why this would be showing u here> Sometimes it ...
user avatar
  • 1
0 votes
0 answers
83 views

Nginx + Laravel inside /api folder: File not found

I have the following config for Angular (JS) app, where the laravel (PHP) API for the same app is inside the 'api' folder: server { listen 80; server_name example.com www.example.com; ...
user avatar
1 vote
1 answer
52 views

How to measure CPU usage per site in a nginx + apache + php-fpm setup

If I have a server with nginx as reverse proxy and Apache + php-fpm as server. I also have a ton of websites on this server, say 200+. I want to write a script which can tell me how much CPU is used ...
user avatar
0 votes
1 answer
158 views

How do i install php 8 without php-fpm and nginx modules?

I am trying to install Apache2 + PHP 8.1 in a fresh install of a Centos 8.5 server. This is my server setup: [centos@api-stg html]$ cat /etc/*elease CentOS Stream release 8 NAME="CentOS Stream&...
user avatar
0 votes
0 answers
10 views

Prevent Azure from swapping VMSS release while VM is still booting up

I use Azure DevOps to release a new VM into a VMSS. When I release the update, Azure swaps the images while the PHP-FPM process is still booting up. This results in 502 Bad Gateway errors for ...
user avatar
0 votes
1 answer
148 views

What is this NGINX location for PHP FPM fastcgi_pass 127.0.0.1:9000 really doing?

What is this NGINX location for PHP FPM fastcgi_pass 127.0.0.1:9000 really doing? Here's my locations and I have no errors, but I'd rather fully understand that line. # pass the PHP scripts to FastCGI ...
user avatar
0 votes
1 answer
94 views

What would prevent php-fpm (8.0.16) from being able to write to an NFS mounted filesystem?

I have a php-fpm (8.0.16) instance that cannot write files to an NFS share. I am using a simple php script for testing: <?php ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); $fp =...
user avatar
0 votes
0 answers
36 views

How to set up multiple apache + php-fpm + mariadb service groups on a single server with per-group resource limits?

We have a centos8 web server hosting hundreds of websites, using 3 services: apache, mariadb and php-fpm. Because apache and mariadb do not support per-account resource limitation, all websites have ...
user avatar
0 votes
0 answers
86 views

Set PHP CLI configuration to load XML modules

My Linux Ubuntu 20.04 server is running PHP 7.4 using FPM. I have Joomla installed and am trying to run a script inside the cli directory on the site. The xml PHP module is installed under PHP 7.4 FPM,...
user avatar
0 votes
1 answer
132 views

nginx 404 .php extension with fpm

When I visit a non-existent url with .php extension I get a ngnix 404 error page, however url without .php extension it works as expected using the try_files. Where the 404 is handled via php ...
user avatar
1 vote
0 answers
183 views

How to avoid "Could not resolve host" inside Docker under heavy load?

the problem I am dealing with for months is explained very easy: I am running PHP-FPM with docker, and whenever the server load is increasing I randomly get "Could not resolve host" errors (...
user avatar
  • 131
0 votes
0 answers
83 views

Securing Apache against mod_proxy SSRF exploit CVE-2021-40438

I'm tasked with securing Apache against CVE-2021-40438 in order to achieve PCI compliance. The server is running Apache 2.4.52 and PHP-FPM 7.4.26, each running in their own docker container. From what ...
user avatar
  • 1
0 votes
0 answers
19 views

PHP-FPM chroot working out of the box, is it normal?

I'm trying, in a dev box (Ubuntu 20.04), to setup for the first time a chroot. Here is my PHP-FPM pool (Apache 2.4 as Webserver): [test] prefix = /srv/users/$pool user = $pool group = $pool listen ...
user avatar
0 votes
0 answers
160 views

Slow PHP-FPM startup on new VMs

I have an Ubuntu 18.04 virtual machine that is started up automatically by an Azure VMSS. It appears that PHP-FPM is taking up to 60 seconds to startup when the VM is turned on. I was under the ...
user avatar
0 votes
1 answer
169 views

How to fix PHP open_basedir restriction restricting access to subdirectory on nginx server

I am using nginx with php-fpm, and we are receiving a lot of errors like this: 2022/01/23 12:48:13 [error] 5514#5514: *9277 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): ...
user avatar
0 votes
1 answer
359 views

Getting 503 with apache proxy_fcgi_module [SOLVED]

I'm using CentOS 9 Stream on a VM, trying to setup my apache server to be able to show php content on the web. The server works fine when its just html, but I'm getting these errors (503 in the ...
user avatar
  • 3
0 votes
1 answer
290 views

Restart PHP FPM as root - Authentication is required to restart 'php7.4-fpm.service'

I have a www-data user, I allowed to restart PHP FPM by him in /etc/sudoers: www-data ALL=(ALL) NOPASSWD:/usr/sbin/service php7.4-fpm restart /etc/sudoers has right permissions ls -la /etc/sudoers -r-...
user avatar
  • 135
0 votes
0 answers
250 views

PHP errors appear in PHP and Nginx containers

I've been playing around recently with moving away from file based logging locally in a PHP app, to pushing PHP errors through stdout so they're output alongside the other logs in a docker setup. This ...
user avatar
  • 990
0 votes
1 answer
95 views

Nginx php-fpm 1 of 3 pools not working: returns stat() failed (13: Permission denied)

I have nginx with 3 pools for php7.4-fpm - one for each of 3 users on the system as they have their own apps and files. The setup of all 3 is completely identical, but the recently added one has some ...
user avatar
  • 13
0 votes
0 answers
32 views

Apache2 response times abysmal after enabling php-fpm module

I'm running Apache2 on a Debian 11 VPS. I've written an API, and I'm trying to stress test it via an external server using ApacheBench. With mpm_prefork enabled and php8.0-fpm disabled, the 95th ...
user avatar
  • 1
0 votes
1 answer
75 views

php-fpm & Apache 2 - analysing PHP Message: logs

One of my servers has recently been switched to using php-fpm. The error logs now log 404's in a new format: [Sun Dec 26 00:11:37.827426 2021] [proxy_fcgi:error] [pid 25239:tid 140600822003456] [...
user avatar
  • 143
0 votes
0 answers
33 views

Nginx not loading usernames

Good day, on my site users, can create usernames for their profiles but every time they try to visit their usernames on the browser to shows a 404 page, and on top of that it does not show the defined ...
user avatar
0 votes
0 answers
160 views

Optimize PHP-FPM options for performance

PHP-FPM is great for heavy-loaded sites, but it is not clear how to configure it properly for performance. In the PHP-FPM Pool options, we have fields: Max Requests (default: 20) Max Children (default:...
user avatar
0 votes
1 answer
48 views

Joomla redirects wrong after POST

Situation: FreeBSD 13 server with Apache 2.4 as reverse proxy on SSL. Bastille jail with nginx on port 80 and joomla 4.04 Problem: When doing a POST within Joomla (actually any POST except the one ...
user avatar
  • 21
0 votes
0 answers
27 views

Infinite request with a big URL php-fpm

I have a zend application running in lenp stack. Nginx 1.18, php 7.4.26,Ubuntu 20.04. For this app I'm using ec-2 AWS and a database in RDS. So, the problem is. I have some big queries who as passed ...
user avatar
0 votes
0 answers
82 views

CPU Maxing out with PHP-FPM - __memcpy_sse4_back -> async_page_fault

I'm having an issue with a centos 7 apache server running PHP 7.3.27 in PHP-FPM mode. Apache is running in mpm-worker mode. The server hosts WordPress sites running w3 Total Cache. Redis version 3 is ...
user avatar
  • 39
0 votes
0 answers
33 views

PHP-FPM Full Status displays wrong request URI

A bug was opened 5 years ago regarding this issue - https://bugs.php.net/bug.php?id=72319 Has anyone been able to find a workaround?
user avatar
  • 111
0 votes
1 answer
77 views

Php-fpm doesn't start after some changes

I'm using php-fpm 7.3 with apache on the centos 7. I installed php and apache with directamin control panel on my server before. I added these below configs in to the global section of php fpm in /usr/...
user avatar
  • 103
0 votes
0 answers
339 views

Docker - Bad Gateway when attempting to proxy nginx container to laravel php-fpm container

I'm trying to work out whats causing a 502. I have a simple application with two containers: web - running nginx, with a proxy to app: fastcgi_pass app:9000; app - running php-fpm. I'm not sure how I ...
user avatar
  • 101

1
2 3 4 5
41