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.

1
vote
1answer
58 views

Serve two different websites, one under root and another under /news for nginx

I have this set up under Apache but can't get it working under nginx. I have two websites one that covers everything, another under /news/. They run the same framework - Silverstripe. Here is my ...
0
votes
0answers
17 views

Suggestions on Hardening System against php-fpm proxy brute force [on hold]

i have recently (about 1 week ago) changed my Virtualmin system over to running php-fpm (mpm-event) from CGI/FCGI (running as Virtual server Owner) OS = Debian 9 Apache = 2.4 php 7.0, 7.1,7.2, 7.3 ...
0
votes
0answers
34 views

ajax/jquery causes “error 500” on Apache2 (php-fpm enabled) server

Just set a VPS with this guide: "https://www.howtoforge.com/tutorial/perfect-server-ubuntu-18.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/". Everything looked perfect! but I ...
0
votes
0answers
12 views

How to disable mysql password logging in apache with php-fpm and doctrine

I have an Ubuntu server with some custom php application based on doctrine. The server runs apache-2.4, mysql and php7.2-fpm. After testing a misconfiguration for the database connection in my ...
0
votes
0answers
11 views

Docker `php-fpm` with different pool user from `www-data`, `primary script not found`

I have the following dockerfiles: Dockerfile_develop_1: #For Stackoverflow error reproduction FROM php:7.2-fpm-alpine ARG USERID=1000 ARG GROUPID=1000 ENV DOCKER_UID=${USERID} \ DOCKER_GID=${...
0
votes
1answer
17 views

ISPConfig | FastCGI not responding [closed]

I've got a website running as vhost in ispconfig and it doesn't respond. Link: royalmerch.sk I am receiving this error in error.log: [Tue Jun 18 09:49:24.557751 2019] [fcgid:warn] [pid xxxxxx] [...
0
votes
0answers
21 views

How Can I Drop Repeated Long-Running Requests with NGINX and AWS ELB?

In our environment, we have: AWS Application Load Balancer shunting HTTPS to EC2 Instances EC2 Instances running NGINX that shunt requests to either PHP-FPM or Passenger (Ruby Server) The PHP and ...
1
vote
1answer
21 views

Nginx - rewrite fastcgi_param for one specific route

I want to change fastcgi_param only for specific routes as described below: server { # (...) # PHP entry point for main application location ~ ^/(index|get|static|errors/report|errors/...
1
vote
1answer
39 views

Configure Nginx to run PhalconPHP on a subfolder

I want to run a PhalconPHP application on a subfolder like this http://stg.example.org/simon/apps/phalconapp/ A snippet of my Nginx configuration is as below... location ^~ /simon/apps/phalconapp { ...
0
votes
0answers
19 views

For some reason php7.0-fpm send data to nginx with huge delay, how find reason

I have some problems with application perfomance. Admins infiltrated between php-fpm and nginx and said that nginx get data with delay (dozens of seconds). I use PHP 7.0.23, nginx/1.12.1, FreeBSD 10....
0
votes
1answer
57 views

php-fpm: why do I have a process memory usage higher than memory_limit

I know that there are a lot of related subjects, but I did not found my answer. I have a dedicated server with 32Go of RAM (but I want php-fpm to use only 12Go max), and I have a php-fpm (7.2.13) ...
0
votes
0answers
23 views

Why is PHP continuously writing sessions to redis with empty values?

PHP(php-fpm) is continuously writing sessions to redis. It creates 1 session on each 5 min and suddenly what were 4 or 5 entries, turns into 500 redis entries. I've been reading some threads of 2014 ...
0
votes
0answers
27 views

Issues with my nginx config / aliases / errors

I have a VPS running CentOS 7, and I'm having some trouble with a few pieces of software that I'm trying to run. My miniflux instance is working, but all the other software I'm trying to setup with ...
0
votes
0answers
30 views

Web file permissions NGINX/PHP-FPM - $USER:$USER per website, have global SSH/SFTP account?

I'm not sure why, but people seem to be sold on the idea of using www-data as the group for all websites on a server. I would like to separate all websites by different users. For example, jaap.nl has ...
0
votes
0answers
13 views

php and tpl files in Nginx showing 404

We are moving our php website from Apache to Nginx. One problem that we have not been able to fix is with passing functions in url via php or tpl files. For eg. if a url is something like this www....
0
votes
0answers
21 views

Passing PHP headers to NGinx Proxy

I have nginx setup as a proxy in front of APACHE, which in turn talks to PHP-FPM. It turns out, nginx is cutting out (or better to say not passing through) headers that are set directly in PHP via ...
0
votes
1answer
28 views

How I can use variables in nginx config to provide some paths for NGINX?

I want make dynamic subdomains with logs in separate directories, but have a problem with it: If I provide a path to logs like /var/www/demo/subdomains/$sub/logs/access.log and same with error, NGINX ...
1
vote
1answer
43 views

how to know how many children and servers set on PHP-FPM

I realised a big problem today, too much traffic made my website totally down but i have a big server to host it. Here's what i got : [20-May-2019 14:23:02] WARNING: [pool www] seems busy (you may ...
0
votes
0answers
34 views

apt-get install package for different distro

My dev environment at work runs ubuntu 14.04 and I need to install php7.2 on it. We use a vagrant machine with a setup script that used to do this automatically. First thing it added the repo with ...
0
votes
0answers
36 views

SAFARI error white page with symfony and htaccess with php-fpm all work on chrome,IE, firefox

I have a problem i just finish and upload my site but he not work with safari got white page i check log [Thu May 16 07:56:17.534196 2019] [authz_core:debug] [pid 5671] mod_authz_core.c(820): [client ...
1
vote
0answers
66 views

PHP7.3-FPM with Apache: Unknown script request execution timed out

I configured Apache 2.4 MPM Event with PHP7.3-FPM on a pretty busy web server as follows: Timeout 90 <Proxy "unix:/run/php/php7.3-fpm.sock|fcgi://php-fpm"> ProxySet disablereuse=on timeout=...
2
votes
1answer
17 views

If you are running php-from does tuning the apache mpm still do anything?

So I switched to php 5.6 with fpm. I see there are now only 4 apache processes but about 400 php-fpm56 processes. I've been tuning the php-fpm process (to little effect) by playing with the pm.xxxxx ...
1
vote
0answers
18 views

Is it possible to use Opcache to specific website only?

I run few wordpress websites on single Vps server. (Ubuntu 18.04 + Nginx + php7.3 + mariadb) I was changed code like below to use opcache in php.ini. opcache.enable=1 opcache.enable_cli=1 opcache....
0
votes
3answers
91 views

PHP is stopping a web-based script after 60 seconds

I'm working in a Bitnami installation of Apache2 and PHP (5.6) and we have trouble with a script that's taking longer than 60 seconds to complete. This script in question is failing after 60 seconds, ...
0
votes
0answers
20 views

css & js being seen as text with nginx sub location

I have a websiteA which is working juste fine. When going to websiteA/backend, a sub location is used within nginx to serve another website. With my config, a blank page is returned when going to ...
0
votes
1answer
67 views

504 Timeout Using to Many cUrl From Website That is Down

I have a dedicated server with 32 gb ram / 8 processors. I use on all my sites cUrl php displaying some code. The website from where I make the cUrl is a VPS where I use another cUrl with multiple ...
1
vote
0answers
152 views

What is causing my php-fpm child workers to hang?

A low-traffic website on a web server I manage is periodically down with a 503 error until php-fpm is restarted. The setup is: DigitalOcean droplet CentOS 7.6 Apache 2.4 (Event) PHP 5.6.40 (FPM) (...
0
votes
1answer
23 views

Server with Froxlor UI; Permission error with PHP FPM and nginx

I'm running a vhost that provides a Froxlor web UI for configuration. Froxlor generates the config files for everything in its scope automatically. The problem I'm currently facing is that Froxlor ...
0
votes
2answers
86 views

Line breaks in PHP's stack trace in nginx error logs disturbing logstash analysis

I am using nginx with PHP-FPM and ELK as log file analysis. When a PHP script causes an error the interpreter the error will be send back to nginx and nginx puts the error into the error.log file. ...
1
vote
1answer
63 views

PHP Not working through Symlinks (CentOS, Nginx, PHP-FPM, PHP7)

When I use this config, PHP files work in the base folder (/var/www/dmcblue.com/www). But I added a symlink there as data from /usr/share/phpMyAdmin. Files are accessible (like http://[IP_ADDRESS]/...
0
votes
1answer
36 views

403 Forbidden on JS/CSS files after switching Apache to use Event MPM and php-fpm

(I see there are several existing questions about 403 errors and one or two of the rest of the parts of my configuration, but nothing that seems to match up to my exact situation that I've seen so far,...
2
votes
1answer
110 views

How do I get Nginx to work with subdirectories? [Nginx, Let's Encrypt, basic auth]

What I want: I want to install Mautic in a subfolder of my web root. I have a domain https://example.com and I want Mautic to be accessible from https://example.com/mautic. What I have: I have a ...
0
votes
1answer
62 views

Kerberos authentication not working with Apache and PHP-FPM

I have configured kerberos authentication in apache with a php-fpm drupal backend. Checking the apache logs it looks fine at first glance but somehow it seems that the authenticated user gets lost ...
1
vote
0answers
64 views

nginx pfp-fpm - “No input file specified.” when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like ...
0
votes
0answers
104 views

PHP-FPM doesn't create the socket when run as non root user

I am creating a Docker image that run NginX and PHP-FPM (with Supervisor). The container is run as www-data, but the PHP-FPM socket is not created. Here are my config files : www.conf [www] listen =...
0
votes
1answer
217 views

How to Remove php-fpm for mod-php

We have a site that's performing very slowly. I have a suspicion that it's php-fpm configs, but rather than play with it if it's not the issue, I want to do performance tests first. So I cloned one ...
0
votes
2answers
254 views

Browser not rendering css and JS

I'm using: CentOS 7 Apache 2.4 php56-php-fpm php72-php-fpm on my dev server. I managed to get it so I can specify a handler and it will put that vhost on the correct PHP version, however CSS and JS ...
0
votes
2answers
522 views

php72-php-fpm failed to start

I have two versions of PHP on my CentOS 7 Apache server: 5.6 7.2 It was working but now I'm getting some weird errors that I can't decipher or use to debug. Doing: $ sudo service php72-php-fpm ...
0
votes
0answers
60 views

Add custom variables to Apache access log from PHP-FPM

In mod_php you can use the apache_note() function to log variables in the Apache Access Log: <?php apache_note('SCRIPT_TIME', '1234'); ?> With the Apache config: LogFormat "%h %l %u %t [%D/%{...
0
votes
1answer
255 views

Unable to send php7.3 fpm-alpine error logs to std within docker containers

I cannot get the php-fpm error logs appear in docker std. So far I've tried many suggestions but for some reason no progress at all. I am posting my whole setup so that someone could kindly help me to ...
-1
votes
1answer
66 views

PHP move_uploaded_file fail

This is a common question but I double checked suggested solutions without success. These are the errors from PHP: Warning: move_uploaded_file(images/img01.jpg): failed to open stream: Permission ...
0
votes
0answers
21 views

Why does cache usage change abruptly on Apache PHP-FPM server

I have a server that is dedicated to running a web site based on Joomla. It is being monitored using munin. The slab cache and the cache change abruptly. There are no notable changes in the Apache ...
0
votes
0answers
40 views

First time setting up PHP-FPM User Pool… is this config a security risk?

After some fooling around with PHP-FPM user pools, I got a configuration that works... but is right? I'm self hosting a PrivateBin. Obviously, I'm trying to get this install as secure as possible but ...
0
votes
0answers
21 views

php fpm log executed script

when taking a look at my /var/log/php-fpm.log I notice a lot of [02-Apr-2019 18:01:16] WARNING: [pool wordpress] child 26356 exited on signal 11 (SIGSEGV - core dumped) after 492.828741 seconds from ...
1
vote
0answers
97 views

Periodically 504 timeout with nginx and php-fpm

I have php-fpm 7.0 and nginx 1.11.6 in FreeBSD 10.3. Sometimes I get 504 timeout even when the server has a lot of free resources. Nginx waiting answer from php-fpm 30 seconds. I write application ...
2
votes
0answers
54 views

mod_rewrite on Debian Stretch breaks php7.0-fpm with AH01071: Got error 'Primary script unknown\n'

We've just built a new Debian 9.8 server to replace our 8.11 server in order to test and upgrade to php7. We've installed apache2, php7.0-fpm and brought over out existing virtual host config, which ...
0
votes
0answers
27 views

PHP-FPM stops seeing classes / functions at random

I am experiencing a strange issue with php-fpm (7.0.33). At random times it starts throwing errors like: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function untrailingslashit() ...
0
votes
0answers
117 views

PHP-FPM (>=7.1) + Debian9 + SystemD: don't reload (graceful) with kill -USR2

I'm trying to configure a php-fpm server with Debian9 and SystemD as good as I can, but I have found a problem that drives me crazy. I have searched and researched all as I can, and nothing, I have no ...
0
votes
0answers
20 views

NGINX Apache Setup Won't Run Apache Functions

I've set up NGINX in front of Apache to pass requests to. For one of my subdomains, I've made it so the traffic goes through NGINX and then through Apache, as the PHP system on this subdomain requires ...
0
votes
1answer
89 views

php-fpm generated a lot of load when resetting opcache, rendering server unresponsive

In recent weeks we experienced a negative phenomenon when deploying code: the server becomes unresponsive sometimes for a few minutes. Here's an example of the load on the server when this happened: ...