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
1 answer
5k 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 ...
4 votes
2 answers
6k views

File issue with NGinx & PHP-FPM on separate servers

I've done a bit of research on running NGinx and PHP with FastCGI on separate servers, and have successfully set it up on test virtual machines. I've ran into the problem that these articles describe.....
0 votes
1 answer
6k 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 ...
4 votes
1 answer
13k 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; ...
17 votes
2 answers
70k 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
1 answer
3k 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 ...
6 votes
1 answer
3k 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
1 answer
659 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 (...
4 votes
2 answers
6k views

NGINX Internal Load Balancing + PHP-FPM Upstream causing random double request / submission

We are having a very serious problem where during seemingly random times, we get a duplicated request that is processed by our application. Typically, a user submits a form and occasionally will save ...
0 votes
2 answers
3k views

Apache 2.4 with PHP-FPM 5.6 on Centos 6

I'm trying to get PHP working over FPM on Centos. On the FPM side, /etc/php-fpm.d/www.conf is pretty much the default values. I'm left it using a TCP port as follows (I may want to change to a file ...
1 vote
1 answer
1k views

Proper permissions on FreeBSD with nginx and php for multiple users

I am trying to set up a multi-user FreeBSD server using nginx. Here are my steps so far: In my /usr/local/etc/nginx/nginx.conf file I set user www www; so that nginx acts as the www user, part of ...
2 votes
0 answers
2k views

Apache 2.4 with php-fpm ignores .htaccess

I have a VPS server with Apache, FastCGI and php-fpm installed. But, the .htaccess files seems be ignored. I have a .htaccess file that redirects http URLs to https URLs: <IfModule mod_rewrite.c&...
0 votes
0 answers
878 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
1 answer
664 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
1 answer
935 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 ...
1 vote
1 answer
663 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 ...
2 votes
1 answer
2k 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 ...
1 vote
1 answer
1k 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 ...
5 votes
4 answers
13k views

How do I enable PHP’s flush() with nginx+PHP-FPM?

I’m using nginx with PHP-FPM (APC is installed). I need PHP’s flush() to work. Is this possible? Things I’ve tried so far: Disabling all output buffering in php.ini, as well as output compression. ...
1 vote
1 answer
4k 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
1 answer
5k 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
1 answer
7k 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
1 answer
38 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
0 answers
64 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
2 answers
3k views

Missing PATH_INFO on Apache 2.4 / php5.6-fpm / proxy_fcgi

I'm using Debian 9 with PHP-FPM 7.0.26-2 & 5.6.32-1 from repository deb.sury.org. The same configuration is working fine on a Debian 8 server with PHP-FPM 5.6.30 I've copied the pool.d/user.conf ...
1 vote
1 answer
10k 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, ...
1 vote
1 answer
5k views

PHP-FPM 7.1 not accepting config parameters in Docker

I am getting this error on the end of php-fpm container initialization. This one and another with upload_max_filesize as unknown entry. [04-Jun-2018 13:07:59] ERROR: [/usr/local/etc/php-fpm.d/zz-...
5 votes
2 answers
6k views

PHP-FPM signals for pool error_log rotation

I am moving all my server's log rotation tasks for logrotate. The server has several PHP-FPM pools, each of them configured with a separated error_log directive. The logrotate recipe for the logs is ...
0 votes
1 answer
263 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
1 answer
1k 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
1 answer
1k 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
1 answer
548 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 ...
3 votes
0 answers
1k 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
1 answer
642 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
1 answer
511 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, ...
6 votes
0 answers
342 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 ...
1 vote
2 answers
5k 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
3 answers
11k 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
2 answers
91 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 ...
0 votes
1 answer
339 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
0 answers
275 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
1 answer
941 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
2 answers
17k views

Install httpd24, php56 and php70 as SCL is not working with error "file not found"

Let's start saying that I have read this, this and this at Remi Blog since the question it related to those repositories. The blog entries is not helping me at all or I am missing something here but I ...
1 vote
2 answers
9k views

Apache 2.4 + PHP-FPM + ProxyPassMatch using Unix socket

I try to set up Apache v2.4 + PHP-FPM + ProxyPassMatch using Unix socket. Using Debian 9 Stretch, PHP v5.6.37, PHP v7.0.31, Apache v2.4.25. My virtualhost setting is the following (000-default.conf):...
1 vote
1 answer
9k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = unix://...
6 votes
1 answer
19k 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....
2 votes
1 answer
193 views

xdebug remote centos host from mac

I have a server running CentOS7, PHP7.0.7 with php-fpm, and SELinux. I am trying to debug a PHP script running on that server. And I have a Mac machine that runs PHPstorm where I intend to do the ...
0 votes
2 answers
3k views

Why php function can't run with in my nginx?

PHP7 and nginx installed on centos7 this way. To install php7 sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm sudo yum install php70w php70w-common Now to check it with ...
0 votes
2 answers
4k views

add_header not working in Nginx location

So, I've been trying to figure this out for the past 8 hours, but it seems I'm stuck... I have the following Nginx config file: server_tokens off; upstream php-handler { server unix:/var/run/php5-...
-1 votes
1 answer
409 views

Will apt-get upgrade modify symlinks? For example libphp7 symlinked instead of libphp5 under /etc/alternatives

I performed sudo apt-get upgrade. $ sudo apt-get upgrade After the upgrade, I noticed some php 5.7 files and folders in the etc directory For example: I saw /usr/bin/php7.1 and /etc/php/7.0, 7.1, 7....

1
15 16
17
18 19
44