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.

773 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k 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
682 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
94 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
302 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
0 answers
216 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
58 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
225 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
278 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
0 votes
0 answers
107 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
603 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
2 answers
362 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
1 answer
126 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
104 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
48 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
892 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
256 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
0 votes
0 answers
534 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
  • 231
0 votes
0 answers
2k 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
1 answer
340 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
829 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
0 votes
1 answer
853 views

PHP-FPM ondemand: active children amount up till max_children, then php stops working

My server runs 10 websites, very low traffic. Config: Ubuntu 20.04.5 LTS Nginx 1.18.0 (Ubuntu) PHP 7.4.3 In nginx.conf this is added: upstream local_php { server unix:/run/...
vicmortelmans's user avatar
0 votes
0 answers
447 views

FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

Need help with fnd the issue on new server. Im running magento site with nginx php-fpm with varnish. The site get blank with only that text File not found. And im getting error in nginx log 2022/12/17 ...
user3715053's user avatar
0 votes
1 answer
912 views

Unable to get index.php from Nginx container to PHP container on AWS and Docker

I've installed Docker on an AWS EC2 instance and deployed Nginx and PHP-FPM containers. [ec2-user@ip-172-31-80-56 ~]$ sudo docker container ls CONTAINER ID IMAGE COMMAND ...
JeremyCanfield's user avatar
0 votes
0 answers
194 views

PHP NGINX not working on a Subdomain

I have a Sub Domain" ad.example.com and I am trying to install a CMS and it get stuck at install.php with a 404 not Found error server { access_log /var/log/nginx/ad.example.com.access.log; ...
Abel's user avatar
  • 1
0 votes
1 answer
148 views

How to install memcashed on a LAMP stack with PHP FPM?

I have a LAMP stack with PHP FPM and multiple virtual hosts with Wordpress sites on. I have tried to install memcashed using this tutorial. In Wordpress sitehealth I get: "You should use a ...
newcat1000's user avatar
0 votes
0 answers
253 views

Nginx - PHP never render. Html files work well

when I enter PHP files, they load forever. But do not show up in the browser. After few minutes the browser goes to timeout. Html files get shown/rendered correctly. Here is my virtualhost: server { ...
Pikk's user avatar
  • 359
0 votes
1 answer
410 views

Apache 2.4: ProxyPassMatch prevents mod_rewrite?

I try to setup a new development-environment in docker, with: Bitnami Apache 2.4 - bitnami/apache:2.4 Bitnami PHP 8.0 - bitnami/php-fpm:8.0 Bitnami Mysql 5.7 - bitnami/mysql:5.7 The whole thing is ...
Mojo78's user avatar
  • 1
0 votes
0 answers
1k views

php-fpm access log to rsyslog

I am trying to find a solution for getting logs from php72 php-fpm yii2 application behind nginx on several numbers of servers: at now application writes its logs to files on server disk, yii performs ...
Илья Бугримов's user avatar
0 votes
0 answers
108 views

php and apache not seeing anything in there defined tmp dirs

How to check logs for non application 500s? we have standard php and apache but not seeing anything in there defined tmp dirs I have actually 2 issues one is routing logs for https://www.test.com ...
sam23's user avatar
  • 59
0 votes
0 answers
257 views

how to stop nginx 302 error

I have a site with Ubuntu 20.04, php 8.1, and nginx 1.23.1. If I restart nginx and php-fpm I can login, browse the site, and everything works. If I wait a certain amount of time with no activity on ...
raphael75's user avatar
  • 133
0 votes
1 answer
917 views

PHP-FPM not killing idle processes

I have a low traffic site with prestashop and set up php-fpm 7.4 as ondemand to not eat up all the resources since most of the time there isn't any high traffic, config is as follows: pm = ondemand pm....
Anonüümne Rüütel's user avatar
0 votes
2 answers
814 views

Issues with Imagick / PHP / Windows

I'm setting up a project on a Windows server and having an issue with ImageMagick. I'm from a Linux background and struggling to get it working. I have downloaded from http://pecl.php.net/package/...
DanC's user avatar
  • 1
0 votes
1 answer
247 views

apache2 with PHP-FPM truncating error_log messages

I have an apache2 server configured to serve multiple websites with php-fpm. Each websites has a custom error_log file ErrorLog "/var/log/apache2/error_log-example.com" using the following ...
Luca Ricci's user avatar
0 votes
1 answer
640 views

unable to proxy pass to NGINX server running php spf

I have a main NGINX server to run certs for all my internal servers. I am adding an endpoint for a new NGINX server running php. If I connect directly to the new server the new server works correctly. ...
grandpa_sam's user avatar
0 votes
0 answers
250 views

New server Apache 2.4 + PHP responds very slowly

a customer asked to migrate their current server with plesk to a HA infrastructure. I've created the structure with haproxy and apache 2.4, but i can see many requests take a looooong time (some of ...
Nando's user avatar
  • 1
0 votes
1 answer
2k views

WordPress with Nginx + PHP-FPM sometimes slow where slowlog pointing to wp-config.php (PHP 8.1)

I have a recent WordPress 6 installation with MariaDB and PHP 8 FPM running on Docker. Sometimes, request on the frontend have a slow response time on the main HTML document. In this example, one of ...
Lion's user avatar
  • 508
0 votes
1 answer
157 views

opensuse php fpm lighttpd 403 is it a permissions-issue

So far I have configured php-fpm configured and is up and running listening to port 9000 lighttpd is running and serves static files the problem that I have seems to be a permissions issue, so i chmod ...
garsev's user avatar
  • 1
0 votes
0 answers
241 views

brotli on apache with proxy_fcgi for PHP-FPM is not used

I'm running an apache 2.4.54 with broti enabled. brotli configuration as seen below and loaded before default deflate configuration. $ cat /etc/apache2/mods-available/brotli.conf <IfModule ...
M Klein's user avatar
  • 101
0 votes
0 answers
2k 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 ...
Arkadi's user avatar
  • 101
0 votes
0 answers
782 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 ...
Santosh Baruah's user avatar
0 votes
0 answers
45 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 ...
zippy-flop's user avatar
0 votes
1 answer
2k 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 ...
Benyamin Limanto's user avatar
0 votes
0 answers
1k 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....
Simunza Muyangana's user avatar
0 votes
1 answer
3k 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&...
Superveci's user avatar
0 votes
0 answers
138 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 ...
Ján Lalinský's user avatar
0 votes
0 answers
1k 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 ...
JimmyBanks's user avatar
0 votes
0 answers
2k 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 ...
robjmills's user avatar
  • 990
0 votes
1 answer
641 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] [...
steve's user avatar
  • 153
0 votes
1 answer
176 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 ...
GTeley's user avatar
  • 21
0 votes
0 answers
90 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 ...
Jonas S. Marques's user avatar

1
6 7
8
9 10
16