Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
21 views

php-fpm and nginx in single cause php-fpm crash

I want to run services written in php in cluster. So I'm using docker. Here is the stack: php 7.2 php-fpm docker nginx rabbitmq/redis/db/etc In local edvelopment, there is no problem to share ...
0
votes
0answers
15 views

Change php user with docker-compose

The documentation for Docker PHP image says "For running the FPM variants as an arbitrary user, the --user flag to docker run should be used". I'm using PHP in docker-compose and want to change the ...
0
votes
0answers
36 views

PHP is not working after installing ModSecurity for NGINX on Ubuntu 16.04

My server is running on Ubuntu 16.04. One of my web app(php app) was running on my nginx server. To install ModSecurity I removed the NGINX completely and then followed the following steps to complie ...
1
vote
0answers
14 views

Nginx serving PHP file as download [duplicate]

I have a website with an index.php file (rhys.ddns.net/php/index.php). Whenever I try to access said file in my browser it is getting served as a download. I have checked my sites-enabled/default file ...
0
votes
0answers
23 views

Prioritize CPU ressource between virtual hosts

I have a webserver with apache2 and php7.2-fpm, hosting 10 websites. What would be the easiest way to allocate some hosts more CPU ressources ? I tried to play with fpm workers and pools, but I ...
0
votes
1answer
39 views

PHP (7.1) issue with mail , openssl , certificate

In the php.ini I have: [openssl] openssl.cafile= /etc/ssl/cert/mydomaincabundle.crt this line allow email from PHP with SMTP to be sent from PHP es Wordpress or PHP application as i use mydomain.ext ...
0
votes
1answer
30 views

DNS lookup failure for:

I installed my server with virtualmin, and I am using apache with php fpm. When I try to open my website I have this error : Proxy Error The proxy server received an invalid response from an ...
0
votes
0answers
50 views

WebSockets + Apache and Nginx in “reverse proxy mode” + SSL/secure

As I had tried to connect PHP WebSocket from socketme.io through HTTP, since it was successful and again after loading certificates and making HTTPS it didn't work. As my hosting server's ngnix is ...
0
votes
1answer
29 views

Load balance PHP-FPM with HAProxy resulting in service unavailable

I need to load balance PHP-FPM with two backend servers with HAProxy (with Apache running on those backend servers as well). I have this frontend: frontend fr_fpm bind *:9000 mode tcp ...
0
votes
1answer
64 views

Nginx says 404 not found, no error log

I am getting a 404 not found at nginx page, i get no error in nginx error log file too. server { listen 6269; server_name (domain); root /home/temp; index /_h5ai/public/index.php; ...
0
votes
0answers
25 views

502 Bad Gateway with dockerized PHP-FPM

I'm trying to replace my PHP-FPM installation with a docker container. I can build a container and start the FPM service (127.0.0.1:9000). However, I get a Bad Gateway (502) error when I enter the ...
0
votes
1answer
66 views

Cannot find php-fpm to for PHP 7.2 to install on Centos 7.5

Have created a new VM server for a project, it is running Centos 7.5. After following a large number of different articles online to try and get nginx and PHP 7.2 running on this box I cannot get the ...
0
votes
1answer
50 views

issue with server reached max_children setting, consider raising it

I have recently migrated 30 websites from my old server to new one, and now running on nginx as previously was running on apache. Everything works fine for all websites except for 1 website. I don't ...
1
vote
2answers
123 views

understand correctly pm.max_children tuning

I have done some investigations and I have found this to calculate and adjust pm.max_children value https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/ but for example : ...
0
votes
1answer
36 views

Nginx with docker load balancing app server (php)

I haven't found an solution so far, so I'm asking here: This is the situation I'm locking an solution for: We are planing an architecture that contains the following components Docker Container (...
0
votes
0answers
41 views

how to install PHP-FPM Intl extension on Linux CentOS 6.9

I'm trying to install php "intl" extension using SSH commands, can anybody help please? My server is Linux, CentOS 6.9, Nginx, php-fpm 7.0.19, MariaDB # yum list php*intl Loaded plugins: ...
3
votes
1answer
99 views

Apache PHP-FPM weird responses with Proxy enablereuse=on

When enabling <Proxy ... enablereuse=on max=10> I start receiving strange responses. When refreshing the current page, the main request loads different responses; like a blank page, responses ...
0
votes
0answers
31 views

PHP-FPM pools of a domain are working non stop

My server OS is centOS. I use Apache for httpd. Every site runs PHP by own user. One of my sites (let's say that 504domain.com) gives 504 gateway error constantly. Restarting Apache makes the site ...
0
votes
1answer
16 views

I want config.json to be readable by php app, but not via the browser

Forgive me if this is a remedial question. I'm authoring an API for a web app. I've got a config.json file for local configuration, but currently it can be called directly via a web browser if you ...
0
votes
1answer
29 views

Apache24u / phpinfo: still showing old version

Ive upgraded the server from default apache 2.4.6 to the apache24u (https://centos.pkgs.org/7/ius-x86_64/httpd24u-2.4.34-1.ius.centos7.x86_64.rpm.html). when I check it via shell, I get the correct ...
0
votes
0answers
33 views

Basic Auth header params does not exist depending on url

Forgive me ahead of time for my lack of knowledge on this topic When I send a basic auth request (via header) to my url https://www.mywebsite.com, the PHP server variables such as "PHP_AUTH_PW" and "...
1
vote
1answer
55 views

Nginx: Wordpress: Blank Page

When I try to access my webserver, I get a blank page. It is set up to work with wordpress, but it doesn't. This is my wordpress.conf (located in conf.d): server { listen 80; #listen 443 default ...
3
votes
1answer
38 views

Nginx: CSS and JS files inside my wordpress blog directory are served wrong

I set up an Amazon ec2 LEMP server for my photography website, which previously was on apache, which I'm a lot more familiar with. I have everything running generally ok, except for in the blog ...
1
vote
1answer
19 views

Let PHP-FPM report the script's current line number on timeout

My website is running successfully on PHP-FPM with NGINX on Debian. Timeout period is set at 300 seconds for NGINX. This is enough for most pages, but some scripts get stuck. I can't reproduce the ...
1
vote
1answer
72 views

php-fpm fails after X requests

I using nginx to serve out a PHP CMS (Grav) so I've been using php-fpm. Everything works fine in the beginning, but after about 20 or so requests, some of the pages will return a 502 error. I don't ...
0
votes
1answer
49 views

directive 'catch_workers_output = yes' don't work as I want

I have CentOS 7 with apache 2.4.35 with pmp event and php-fpm all works fine but all php errors are go to one big file for all my virtual hosts. I read all docs about it and find that ...
0
votes
2answers
95 views

Client denied by server configuration on Apache 2.4

We have migrated multiple Drupal 7 / 8 sites to a new stack, where the main changes were replacing Apache 2.2 and FastCGI with Apache 2.4 and PHP-FPM. We have the following error on multiple sites: [...
0
votes
1answer
106 views

Update from PHP 5.6 to PHP 7.3 [closed]

I am trying to update from PHP 5.6 to PHP 7.3 I installed: php7.0-fpm php7.0-mysql and I have the 2 services raised but Nginx only recognizes PHP 5.6. If I stop the service, I get the error 502 Bad ...
2
votes
1answer
352 views

Docker - PHP 7.2 FPM Alpine - Imagick

I'm using Docker image php:7.2-fpm-alpine as base image with following command to install Imagick: RUN apk add --update --no-cache autoconf g++ imagemagick-dev libtool make pcre-dev \ && ...
0
votes
0answers
27 views

Nginx 502 Error with php-fpm depending on hostname

I'm using Nginx to serve out a web page using the Grav CMS which runs on PHP. I am using php-fpm to achieve this with Nginx. Everything seemed to work fine at first, but then I started getting a 502 ...
1
vote
1answer
15 views

Non-standard site directories

You know that by default, servers like nginx and apache use standard directories for sites. Like "public_html", "www". And I noticed that on multi-user setups the sites are placed in the user's home ...
0
votes
0answers
35 views

Nginx pass my request to default or local address

There is two issue with NGINX configurations. I tried to setup prestashop on CentOS 7 with Nginx according to this instrument that I found similar this in Prestashop forums . the nginx.config file ...
1
vote
2answers
597 views

Docker + Nginx + PHP-FPM error: [emerg] 1#1: host not found in upstream

I have been on this error for 3 (full days) and still trying to figure out the issue and at the same time contemplating suicide :) I have a docker setup for LEMP stack that I cloned from this repo: ...
0
votes
1answer
241 views

Configuration change for Apache + PhP-FPM 7.2 necessary?

Until now, I was using Ubuntu 16.04.5 Server with Apache, Nginx as a reverse proxy, PHP 7.0 + FastCGI + FPM, everything updated to last version. Everything went fine. This is one Apache virtualhost, ...
0
votes
0answers
11 views

How to run Multiple version of PHP concurrently on different Virtual hosts in NGINX

i want to run 2 diff websites on the same NGINX Server. Both using Differ version of php ( php-7 and 5.6 ) and both are intercomuunicting hence requried to up both at the same time. Kindy suggest a ...
0
votes
0answers
42 views

PHP-FPM /status?full error 404 Not Found

I cannot get PHP-FPM status page, probably because of mod_rewrite. But It is on commercial solution and I don't know what exacly are rewrite rules. Exists another way to get status page?
0
votes
1answer
19 views

PHP 7 FPM checkconf is throwing invalid user: ‘www-data:www-data’, but I'm not using a www-data user

I'm using a different user for my web services. Screw convention. I don't have www-data set in any php config files: $ grep -rnw /etc -e 'www-data' $ But I'm still getting this error: $ ...
0
votes
1answer
22 views

What does the following statement on nginx config mean?

I am seeing a statement on nginx config but can't figure out what it does. this works when I am at the main directory under path; however, when I try to access files in subdirectories, it doesn't ...
0
votes
1answer
42 views

nginx/php/fastcgi: php files from secondary directories not evaluated as php

I'm running nginx-1.14.0 with php-fpm7.2. When I access php files that are resident in the root, they are properly sent through fastcgi and their php gets properly evaluated. However, when I access ...
0
votes
0answers
62 views

Synology and php.ini / fileinfo

When i run phpinfo() it states fileinfo IS enabled when i search the server with shh i cannot find fileinfo.so anywhere i even made an if statement to only fire if fileinfo extension is enabled... it ...
0
votes
1answer
65 views

PHP 7 FPM slow log file location

In my www.conf file, there is this line: slowlog = log/$pool.log.slow Where is that on Ubuntu?
0
votes
1answer
36 views

Location block passing through to a different php-fpm sock

There are two hosts with a PHP-FPM pool each - one.com and two.com. I would like one.com/two to pass through and show two.com using two's pool, but I seem to be having difficulty. Through alias and ...
0
votes
0answers
145 views

PHP-FPM Not loading Environment Variables from /etc/environment

I have environment variables set in /etc/environment. printenv shows them. However, php-fpm isn't seeing them. I have uncommented clear_env = no in /etc/php-fpm.d/www.conf - this exposes SOME env vars ...
2
votes
0answers
64 views

What is PHP-FPM doing actually?

I followed the steps to install PHP5.6 and PHP7.1 side by side on an Apache server, using FastCGI. One of the steps is to install and start php-fpm. However, when I stop this service, the PHP systems ...
0
votes
1answer
44 views

NGINX + PHP-FPM issues with burst requests

I have NGINX setup with PHP7.2-FPM and am having issues with burst requests. The average amount of active processes (fpm children) is 15. I have these settings (48 core server): listen.backlog = ...
0
votes
1answer
26 views

Start command only works when run manually

I get the following error when installing PHP FPM: Creating config file /etc/php/7.0/fpm/php.ini with new version invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied ...
0
votes
1answer
26 views

Why does WordPress on 3 load balanced EC2 servers run out of memory/fpm child processes and crash?

The problem: 30-40 minutes after pointing the DNS from our old server towards our new server, all available memory gets used up and our (3) load balanced EC2 instances crash. To make matters worse, ...
1
vote
1answer
139 views

Apache and PHP-FPM security with mod_proxy_fcgi

I use PHP-FPM in a shared hosting configuration. Each FPM pool runs as a different user. Apache runs as www-data. Apache connects via a socket using mod_proxy_fcgi. I allow users to use .htaccess ...
7
votes
0answers
97 views

How can one php-fpm 5.6 site cause an outage across all sites?

I have a real head scratcher with one site on a server affecting others in separate php-fpm pools. I thought the idea was that php-fpm pools gave isolation to stop (reduce) this from happening. We ...
0
votes
1answer
158 views

NGINX + php7.0-fpm + phpmyadmin

Disclaimer: I've tried tips listed in probably every google result on the first 2 pages. None of them worked for me. This is not a duplicate. I'm running Debian 9 in LXC container that had LAMP ...