Questions tagged [fpm]
FastCGI Process Manager - an alternative PHP FastCGI implementation with some additional features
518
questions
0
votes
0
answers
26
views
PHP pg_connect() does not return in PHP-FPM after MacOS Sonoma Upgrade
I have wasted a lot of time on this and I'm stumped. Anyone have some insight or work arounds? Thanks in advance for your attention...
My PHP/PostgreSQL/NGINX app has been running on MacOS using PHP-...
0
votes
1
answer
46
views
Docker: How to organise an Laravel app with schedule and queue in a Docker way
Hej there,
For some days I try to find a good solution for my Laravel app. I am using docker and docker compose to organise my stack and have splitted it into the following services:
Nginx for ...
0
votes
1
answer
27
views
NGINX: Set up a project from a path (/api) and define routes in the code from the root (/)
I am trying to set up a Laravel application on NGINX with the following config:
server {
listen 443 ssl;
server_name {MY-IP}; # The project is mounted on an IP
# ssl_certificate ...
# ...
-1
votes
1
answer
36
views
How to run Caddy and PHP-FPM in seprate containers within a POD
I have a Kubernetes deployment that has two container in it.
Caddy webserver
PHP-FPM container
Here is the Caddy config:
my.caddy.website:80 {
root * /app
php_fastcgi localhost:9000
...
0
votes
1
answer
40
views
getting "ERROR: unable to read what child say: Bad file descriptor (9)" in php7.2-fpm.log
I am getting the "ERROR: unable to read what child say: Bad file descriptor (9)" randomly on the production server and these error come conseuctivly more than 10 time after which php crashes ...
0
votes
1
answer
43
views
PHP script doesn't quit when browser connection is closed
NOTE: this is not a duplicate of question 25363635 I'm using php-fpm + apache mod_fcgi + proxy (see below). connection_aborted() and ignore_user_abort() do not work in my case. TLDR is how to make ...
0
votes
0
answers
56
views
Some cookies are misusing the recommended “SameSite“ attribute Error in Nginx Reverse Proxy
I have a Nuxt.js application serving on 127.0.0.1:3000 address, Laravel application listens on 443 port for backend purposes.
Also have a nginx 1.24.0 listening on 443 with reverse proxy that proxies ...
0
votes
0
answers
18
views
Running 2 Separate Containers Apache-PHP and PHP-FPM
I've been circling around if it is proper to have this setup
Container1 = Running with Apache + PHP
Container2 = Running with PHP-FPM with index.php (running phpinfo page) on /var/www/html
Then ...
-1
votes
3
answers
184
views
Docker: NGINX and PHP: Why change the default user/group?
I started learning about Docker and setting up NGINX and PHP. I looked at some examples and saw the following example: https://github.com/aschmelyun/lc-the-docker-tutorial/blob/main/nginx.dockerfile
...
0
votes
1
answer
84
views
Nginx container returns 502 Bad Gateway
I have the following problem, I hope you can help me.
I have 3 docker containers, one with php-fpm, nginx and mysql.
When entering my website, the browser responds with a 502 Gateaway error code.
I am ...
0
votes
0
answers
74
views
php-fpm terminating and not restarting resulting in 502 Bad Gateway
I have a DigitalOcean droplet that hosts a Laravel app. For server management I use Laravel Forge and Envoyer (for zero downtime deployments).
I keep getting a 502 Bad Gateway on my website.
I ...
0
votes
1
answer
101
views
How to fix pool valet : child exited leading to error 502?
I cannot login to my locale Laravel API from Nuxt frontend on macos, I'm getting 502 error.
Below are my logs for nginx and php-fpm:
$ tail .config/valet/Log/nginx-error.log
upstream prematurely ...
1
vote
2
answers
221
views
How to dockerize apache php fpm for wordpress
Seems like this tutorial for basic Apache with php-fpm which I followed works fine.
I'm having some hard time on how I can build same using docker container running with basic wordpress, lots of tags ...
0
votes
0
answers
14
views
Did not get sever response header when mpm_event and php-fpm is enabled
When I used mpm_prefork module in Apache server then Apache_response_headers work properly and give response header but when I enabled mpm_event and PHP-fpm then this function not work so is there any ...
1
vote
1
answer
175
views
Optimizing PHP-FPM Configuration for WordPress on Bitnami EC2 t3a.medium instance
I'm running a WordPress website on an AWS EC2 t3a.medium (4Gb Ram) instance using Bitnami.
The server's RAM often gets completely filled, causing the server to crash and I need to restart it from ec2 ...
0
votes
0
answers
46
views
NGINX and Laravel always returns response code 200
I sincerely hope you can help me as none of the similar topics and provided solutions fixed the situation.
I am running on the same container for simplicity nginx as reverse proxy, vue app fro ...
1
vote
0
answers
125
views
php8.2-fpm not rendering with nginx
I was trying to set up ngninx to accept files without .php extension but php-fpm (or nginx, I don't know) is not interpreting them.
Source code
server {
listen 443 ssl;
listen [::]:443 ssl;
...
1
vote
0
answers
169
views
Laravel High CPU usage php-fpm
I created a test api that gets data from cache/redis, when I run domain/api/test it consumed up to 15% cpu
//api: laravel 8.54
**1** -> cpu ~10%
Route::get('test', function(){
return \Cache::...
0
votes
0
answers
160
views
PHP FPM and Nginx dockerfile
I have this dockerfile that contains my php fpm and nginx together:
# Use a base image that includes PHP and Nginx
FROM php:8.2-fpm AS symfony-app
# Install any additional dependencies needed for ...
0
votes
0
answers
75
views
PHP-FPM (ZTS) service stuck on 'activating' but is working, then fails after 20 Minutes
i have quite a weird problem with my php-fpm.service. I use Ubuntu 22.04 and I compiled PHP (ZTS) 7.4.33 and 8.0.26 from source with --with-apxs2=/usr/bin/apxs2, --enable-parallel and other Options ...
0
votes
1
answer
122
views
How can I kill a php-fpm process without the signal being logged in the fpm log
I have a function that through exec() kills a php-fpm process.
exec("kill -9 ".$pid);
Everytime I call it, a line gets added to the php-fpm log
WARNING: [pool xxxxxx] child 18120 exited on ...
0
votes
0
answers
278
views
(Docker) Prestashop 8.1 FPM with Nginx - 504 Gateway Timeout
I am trying to get Prestashop 8.1 running on Docker as my dev environment, but I can't succeed. First I tried the prestashop:latest image with Apache web server and used Nginx as a SSL Proxy to run it ...
0
votes
1
answer
374
views
How to use multiple PHP version using Apache and not using FPM? [closed]
I have two PHP versions installed on the server 7.2 and 7.4. Both are enabled as well.
There is a project running using PHP 7.2. And I need to run a new project using PHP 7.4. As I've mentioned, I don'...
0
votes
1
answer
160
views
proxy_fcgi:error malformed header from script bad header
I'm attempting to "rebuild" an infrastructure for the development team in my company using Docker. I accomplished this about 1 year ago, and now I'm working on refactoring and rewriting it ...
0
votes
1
answer
27
views
Inserting a variable in php-fpm.conf
I'd like to add the date to the name of my slow log file (to make like a rotating log).
I can't find a way to do it like this in my php-fpm.conf. The server doesn't restart with the date. Is this even ...
0
votes
1
answer
33
views
Login info is shown is plain text on Nginx and php-fpm
I am using code igniter 4 with php-fpm and Nginx. For some reason I get ini_set() error with header already sent information occasionally. When the error happens I see login information and url in ...
0
votes
0
answers
98
views
Apache2 / PHP-FPM / FPM pool / Why am I having a forbidden access (403)?
it seems I made something wrong or I didn't understand …
Fist of all, explanations about what I want to do :
I would like to have differents PHP-FPM sockets with differents users for differents sites.
...
1
vote
0
answers
99
views
Why PHP FPM pm-dynamic has such massive overhead?
I have a very fast Drupal website (backend response 8ms with Memcached).
End user responses (via Google Page Speed) range from 160ms to 620ms when pm dynamic is set as FPM governor.
Switching to pm-...
0
votes
0
answers
186
views
host not found in upstream "php-fpm" in /var/www/magento/nginx.conf.sample
facing the issue when try to install the magento on linux. when i run the ngnix -t command is show the error.
nginx: [emerg] host not found in upstream "php-fpm" in /var/www/magento/nginx....
0
votes
0
answers
64
views
pcntl-fork equivalent with php-fpm
I have recently migrated one of my php applications from hostgator to AWS using the Apache AMI.
The PHP is running with the server API as FMP/FastCGI, my code is currently built for CGI/FastCGI.
With ...
0
votes
0
answers
236
views
"npm ERR! Invalid Version:" on resolutions in package.json in php:8.1-fpm image
NOTE: It's not a question, it's sharing of todays headache, hopefully it will save somebody some time.
Our builds started to fail with the error
#29 [22/27] RUN npm install
#29 1.031 npm ERR! Invalid ...
1
vote
1
answer
96
views
two versions of PHP on the same Ubuntu 18.04 server with Apache
I have a server with Ubuntu 18.04 on which I host two applications, one works with PHP 7.0 and the other with PHP 8.0. I have followed several guides where they explain in detail what to do with PHP-...
0
votes
2
answers
1k
views
How to turn off php-fpm and use regular php instead on Apache web server?
I'm setting up a new web LAMP VPS that happened to include php-fpm configured by default with the default settings and I've been using regular php for a long time, and I'm not familiar with php-fpm, ...
0
votes
1
answer
364
views
How can I configure PHP FPM for Google Cloud Run in Docker?
I'm trying to get a PHP FPM application working on Google Cloud Run (Docker), but I'm not sure how to set it up to run with FPM instead of Apache? I've looked all around, but don't see any clear ...
0
votes
0
answers
105
views
No input file specified with [email protected] and httpd (brew)
I have a very weird problem with my Apache + php-fpm setup on OSX Ventura.
I am using brew, few months ago I installed httpd (apache) and multiple versions of php (7.3, 7.4, 8.0, 8.1 and few weeks ago ...
0
votes
0
answers
45
views
use different versions of php in nginx at the same time
i have 2 application: one written on php5.5, second on php8.0. When i tries setup separated php-cgi blocks in nginx - all requests handled by php5.5. Looks like php5.5 definition overrides php8.0 or ...
0
votes
0
answers
47
views
PHP-FPM+Nginx set keepalive cause response error?
I set up PHP-FPM and Nginx to maintain persistent connections. However, in high concurrency scenarios, the responses are incorrect, causing the frontend to display the source code of the webpage ...
0
votes
1
answer
185
views
Set the base path of an Apache proxy handler
I'm developing an application with 2 containers: apache and php-fpm.
Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost:
<FilesMatch .php$>
...
0
votes
1
answer
54
views
Other than the opcache what can require php-fpm to be restarted to see changes?
I have opcache setup as follows:
; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
opcache.validate_timestamps=1
; How ...
0
votes
0
answers
64
views
Nginx blocks PHP FPM process
I have a project running on Symfony 4.4 in a Kubernetes cluster. In the entrypoint.sh file, among other things, two commands are written consecutively:
php-fpm -F &
nginx -g 'daemon off;' &
...
0
votes
2
answers
543
views
Kubernetes with Symfony and PHP-FPM
I'm asking for help with what I think is a non-trivial question that I've been trying to solve for a few weeks now.
I recently upgraded my project to Symfony 5.4. However, after deploying the project ...
0
votes
1
answer
77
views
PHP 7.4 FPM under Nginx serves wrong class - cache mixup?
We have a Debian 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. Nothing ...
1
vote
1
answer
673
views
FastCGI and memory exhaustion error from WordPress site
My WordPress site is currently having multiple issues. For error number 1, I tried to increase the memory limit to 6GigaBytes but the errors still occurs. Any help would be appreciated.
[proxy_fcgi:...
0
votes
0
answers
377
views
PHP-FPM not working on the Kubernetes pod after upgrade Symfony
I already wrote my problem, but unfortunately no one helped me. I decided to add some research to my question and describe the problem in more detail, hoping for your help.
So, I had a project that ...
1
vote
2
answers
735
views
Installing PHP on ubuntu server 22.10
I'm trying to install php on Ubuntu 22.10, I used to be able to do "apt install php" and be done with it but now I can't for some reason?
All I get when I run install php is this:
root@...
0
votes
0
answers
56
views
I have a PHP Application which I want to move to EKS. Docker Image got build successfully but on deploying it is failing reason - Readiness Probe fail
I have a PHP Application which I want to move to EKS. Docker Image got build successfully but on deploying it is failing reason - Readiness Probe fail error -
Get "http://172.17.0.6:80//health....
1
vote
1
answer
385
views
At some point Symfony cache adapter failed to save key
I am running a Symfony application on a Docker container with this environment specs:
Docker base image: php:8.1.5-fpm
PHP: 8.1.5
Symfony: 5.4.*
I am recurrently facing a strange behavior where the ...
0
votes
1
answer
161
views
How can I restore disable_functions locally with PHP-FPM?
I host multiple low-to-none traffic websites on a single Nginx+PHP-FPM 7.4 server. Due to security concern, I disable_functions in my php.ini, like so:
disable_functions = exec,passthru,shell_exec,...
0
votes
0
answers
136
views
Showing the laravel request uri in php fpm status page
I have a php fpm 7.4 status page giving the following details :-
************************
pid: 284764
state: Idle
start time: 11/Apr/2023:21:04:09 +0200
start ...
0
votes
1
answer
685
views
PHP Content-Type: text/event-stream with PHP FPM/CGI - ChatGPT text streaming
I'm working with the ChatGPT API in PHP.
I'm trying to stream the ChatGPT completion text in PHP. When I do it on my local machine it works fine, but my server is using PHP FPM and as a result, it isn'...