Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
67 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 (...
3
votes
1answer
280 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
84 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
29 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
82 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
142 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
106 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
197 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
29 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
224 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
110 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
547 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
882 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
1k 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 \ && ...
3
votes
1answer
20 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
37 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
3answers
2k 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
2k 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
19 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
91 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
65 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
28 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
50 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
1answer
345 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
60 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
230 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
147 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
125 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
42 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
41 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
459 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
124 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
320 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 ...
0
votes
0answers
63 views

how to have index.php on root and subdirectory with nginx

I have two index.php files that I want to serve on my nginx server. One of them is in the root directory and the other one is in a subdirectory under root. The root one works just fine but nginx only ...
1
vote
2answers
456 views

Unable to write in the cache directory Symfony 3.1

/var/log/nginx/app.local_error.log: 2018/09/13 11:25:20 [error] 20627#0: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught RuntimeException: Unable to write in the cache ...
0
votes
3answers
556 views

nginx downloads php files instead of rendering them

I found a similar question here: https://stackoverflow.com/questions/25591040/nginx-serves-php-files-as-downloads-instead-of-executing-them But unfortunately the answer there doesn't help me. So here ...
1
vote
1answer
685 views

Nextcloud 14 does not upload files bigger than 1MB

I am running Nextcloud 14 on Debian Stretch with nginx, php-fpm7.2, mariadb and redis inside a LXC container (Proxmox VE, lvm thin storage). On another LXC container, alpine linux 3.8 runs an nginx ...
1
vote
2answers
67 views

Nginx - multiple vhost that require access to shared function

i have some php application under 1 docroot as below : /data/app/ |-- antispam.php |-- api | `-- functions.php |-- images |-- messaging |-- parents | `-- index.php `-- students `-- index.php ...
2
votes
2answers
2k views

How to set date.timezone and what is the correct place to do it

(I'm trying to deploy an open source php project to nginx. The project itself does not matter.) I need to set date.timezone to my local timezone because the project uses a global setting. I found a ...
0
votes
0answers
35 views

Ftp permission on file written by php-Fpm

I have a some nginx virtualhost with ftp user (Ftp user is ownership on folder and file). When Php-Fpm write a file (upload, cache, cms update via http) this user has the ownership and ftp user is not ...
0
votes
1answer
49 views

Run php script artisan opcache:optimize after php7.2-fpm start or restart

I want to run php /path/to/artisan opcache:optimize to build laravel cache after php7.2-fpm start or after restart. I have tried to insert it on /etc/init.d/php7.2-fpm in do_start() method but ...
0
votes
1answer
155 views

php threads (not processes) keep mounting up until server crashes

I've been struggling with the following problem for a while now and would very much appreciate your help. My webserver completely crashes on a regular basis due to too many php threads. The number ...
0
votes
0answers
54 views

ProxyPassMatch matching for empty directory irrespective of regex

I am trying to use ProxyPassMatch to proxy my PHP files to PHP-FPM. My line looks like this. ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1 It is proxy-ing the PHP scripts ...
0
votes
0answers
89 views

nginx php mysql multiple site

i have trouble configuring Nginx/php to route service requests to different sites. We have created a service within our web app that pushes content to nginx hosted web site (actually the service cals ...
0
votes
1answer
38 views

nginx loads php, but not html

so, to start off with, yes, I have looked for a solution, but I can't find it. I know the issue is with my rewrite code, but I don't know enough to fix it. I'm using nginx and php-fpm on debian 9.5. ...
2
votes
1answer
246 views

PHP-FPM Status Page - request URI always /index.php

I'm using nginx with PHP-FPM My application requires all urls to be redirected to index.php (see nginx conf) location / { root /var/www/app/public/ try_files $uri /index.php?$args; } ...
0
votes
1answer
528 views

php-fpm status page not found on docker

I Have two docker containers for php-fpm and nginx, i run it with docker-compose.yml file, but i try to setup the status page of my php-fpm and it not found. i acces to http://localhost/status url ...
0
votes
0answers
72 views

High Load Average, Slow website [duplicate]

I recently upgraded to a new server, with the same codebase and mysql database setup. The load averages are significantly higher than they were previously, and the website seems to be slower as well. ...
3
votes
1answer
612 views

FastCGI: Unable to open primary script on NGinx and PHP-FPM

I am apparently not the only one with this problem, but after trying every suggested solution for couple I reached I point where I don't know what to do. I am running Ubuntu 16.04, NGinx and PHP-FPM....
0
votes
0answers
217 views

How to install actual php7's fast-cgi for apache2

Following a couple of tutorials to achieve the main goal -setting up PHP-FPM on Ubuntu 16 - I also had to install the FastCgi-Module for Apache 2.4.18 with apt-get install libapache2-mod-fastcgi. ...