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
25 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
56 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
28 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
9 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
11 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
8 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
19 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
34 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
27 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
0answers
17 views

Nginx not using alias for webhook

Good afternoon all, So i have to set up nginx for a server for development and i need to do some automatic deployment. Webhook is created for the gitlab and the php bash script is also set up. The ...
0
votes
1answer
23 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
27 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
64 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
30 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
20 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
23 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
24 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, ...
0
votes
0answers
34 views

php-fpm in docker have FastCGI sent in stderr: “Primary script unknown” while reading response header from upstrea error

I trying to use docker to run my php-fpm I use this Docker Image mkaag/phpfpm this is my nginx config location ~ \.php$ { try_files $uri /index.php =404; fastcgi_pass php-upstream; ...
1
vote
1answer
53 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 ...
6
votes
0answers
84 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
72 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
40 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
37 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
99 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
70 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
44 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
111 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
51 views

Apache server status scoreboard

I am trying to figure out why we are having relativly high load even during hours in the day where there is almost no traffic. I came across the server-status log, where I see that there are workers ...
0
votes
0answers
15 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
26 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
0answers
50 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
21 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
38 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
32 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. ...
0
votes
1answer
48 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
102 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
66 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. ...
1
vote
1answer
69 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
34 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. ...
0
votes
2answers
178 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):...
0
votes
2answers
59 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
1answer
24 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....
0
votes
0answers
64 views

/php-fpm/www.sock failed after client request body is buffered

We have a php script which parse xml feeds. Time to time feeds are too big. Now we have a total dead nginx problem. steps: Big file [warn] 7972#0: *268173 a client request body is buffered to a ...
1
vote
1answer
43 views

php-fpm not generating core dump files despite being configured to

I'm running Centos 7 with php-fpm 5.4. I'm encountering a (signal 11) SIGSEGV error in my php-fpm error logs and want to debug it. I've followed the advice of php5 fpm: how do you generate core dump ...
0
votes
0answers
43 views

Nginx PHP-FPM 5.6 PATH_INFO is empty

I'm running nginx 1.14.0 and php-fpm5.6 on Ubuntu 18.04. When I look at my PHP variables with info.php, the PATH_INFO variable is empty. I wonder what could be wrong? /etc/nginx/sites-enabled/mysite....
0
votes
1answer
38 views

Wrong file owner on webserver but how?

OS: CentOS 7.1 Applications: NginX: 1.14.0 PHP-FPM: 7.1.17 I have a webserver that has NginX and PHP-FPM running. Both applications are running by the user nginx. However, when my Laravel ...
0
votes
1answer
113 views

Deploying a php/laravel app with nginx in Docker swarm yields blank page and no errors

I have a Laravel application which I plan to deploy on a Docker Swarm. The problem is that no matter what I do I get a blank page when calling localhost/index.php. I'm using 2 separate services for: ...
0
votes
0answers
418 views

Can't get PHP to parse with NGINX/FastCGI/PHP

So I spent the better part of last night trying to get my ec2 instance setup with nginx and php7.2. I got everything installed and I edited the server block in my nginx.conf with the values I thought ...
0
votes
1answer
110 views

Moodle: Error during Installation

I am trying to install Moodle and everything seems fine but then when it comes to Admin user creation process, it seems as there is no CSS file, and "update profile" button does not perform any action....
0
votes
0answers
51 views

PHP for redis not loading

Trying to get REDIS client installed correctly for use on a debian linux install. I installed redis client with PECL. When I run PHP -m from the command line it shows that the redis client is loaded ...