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.

-1
votes
0answers
8 views

Need to know where the location of PHP-extensions and others

I need to know where I can find the location of the list below : include_path = /path/PHP-pear/ extension_dir = /path/PHP-extensions/ mime_magic.magicfile = /path/PHP-magic....
0
votes
1answer
27 views

Apache 2.4 + PHP-FPM + Dynamic ProxyPassMatch

Expect result: If I go to http://foo.local/index.php, file /var/www/html/foo/index.php will be executed. It will be similar if I go to http://bar.local/index.php, /var/www/html/bar/index.php will be ...
0
votes
0answers
44 views

Apache? ERR_INCOMPLETE_CHUNKED_ENCODING 200

I've been trying for several days to find out why the following error is happening to me: GET https://www.******.com/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) I have also looked at some ...
0
votes
1answer
47 views

Upgrading simply from php 5.6.x to 7.x on CentOS 7 with Nginx and php-fpm

I am trying to upgrade the PHP version on a Digital Ocean server from 5.6.19 to the latest PHP 7.2. A lot of instructions found online point to "php72", which makes me wonder if 5.6.19 will be ...
0
votes
1answer
19 views

Apache-PHP slow page in one virtual host causes performance degradation or timeout on other

I have multiple PHP applications running under different virtual host on an Apache server. Each application uses MySQL as backend. Each application uses different MySQL servers in the same data center....
0
votes
1answer
17 views

PHP-FPM open_basedir not working with Apache 2.4

Is there any way to define open_basedir to virtualhost file in my Apache Event MPM? I tried everything and it just does not want to work. Tried fastcgi_param PHP_VALUE open_basedir="/home/user/web/:/...
0
votes
1answer
20 views

Migrate legacy PHP to PHP-FPM

I wonder if I could have some feedback from some people that did the migration from php to PHP-FPM. The issue I have is that I have lots of scripts on the service. Some written by customers and I cant ...
1
vote
0answers
16 views

Nginx / PHP-FPM drop ajax requests intermittently, how could one pinpoint the cause?

I have an issue I cannot get to grips with. We have an app server that has mysteriously started "dropping requests". These are ajax requests. I restart php5-fpm, all runs fine for a few minutes then ...
0
votes
0answers
31 views

only way to clear nginx cache seems to be restarting the entire server

Running into this problem.. nginx seems to persist files that are no longer on disk, its not a browser cache issue as I can test it with curl.. eg.. curl https://staging.xxxx.co/ <!DOCTYPE html>...
0
votes
0answers
22 views

'File not found.' after switching to php fpm (apache, ubuntu server 18.04 LTS)

I know this question has already been answered mutiple times, but the answers are almost all diffrent and are sorta confusing. I have tried alot of answers but none of them work. I follow the answer ...
0
votes
1answer
41 views

Suexec/Apache user is not php-fpm 'user'

Suexec/Apache user is not php-fpm 'user'. in my php-fpm pool: [cdnmin] user = cdnmin group = cdnmin listen = /run/php/php7.0-fpm.cdnmin.sock listen.owner = cdnmin listen.group = cdnmin listen.mode = ...
0
votes
1answer
47 views

nginx and php-fpm: “Primary script unknown” while reading response header from upstream

I want pass any api/* route to php-fpm. Specifically to index.php as I use Symfony. This is the only route that should use php. Anything else will be loaded from /usr/share/nginx/html/public (just ...
1
vote
2answers
30 views

php-fpm service disabled by default - why?

Background: The other day our webhost (AWS to be specific) did a reboot due to hardware maintenance and one of our sites went down. It returned a 503 and after some time we figured out that the php71-...
0
votes
0answers
19 views

PHP-FPM is slow only for the sub domain

We have a project running in nginx/php-fpm which is basically a multi-site setup build on Symfony 2.7 and we're working on the next version of the site which is basically adding an another site to the ...
0
votes
0answers
22 views

should I rewrite my htacces when migrating to php-fpm?

I'm trying to migrate an application written in PHP and running over Apache 2.0 with mpm_prefork and mod_php to Apache 2.4 with mpm_event and php-fpm via mod_proxy_fcgi. It is an application that ...
0
votes
1answer
56 views

How to resolve Fatal error: Call to undefined function hash()?

I have this error message on my website: Call to undefined function hash() on line 738 in .../public_html/dbtech/dbseo/includes/class_db.php #0 .../public_html/dbtech/dbseo/includes/rewrite/...
0
votes
0answers
22 views

css and js files are being served by php-fpm

i have nginx and php-fpm installed and i have problem with css ans js files are being served by php-fpm this is strace for php-fpm process open("/home/user/public_html/he-2018-cache-v27.js", ...
0
votes
0answers
13 views

php-fpm status shows listen queue 0 when it is delaying requests

I have a php-fpm server running on a high-traffic website (behind nginx). It is frequently reaching a point where the active processes are equal to the maximum number of processes, which is the most ...
0
votes
0answers
13 views

Change source file still leads to crash even with cache

Setup: Wordpress with WordFence on Nginx with FastCGI enabled + PHP7.0 with opcache enabled (validate timestamps is false) Story: With the above setup and confirmed that both FastCGI has HTML cached ...
0
votes
0answers
62 views

Nginx only serves an empty response with 200 status code after i started to use CORS configuration

I'm trying to use wide-open CORS configuration for Nginx. Since i started to use this configuration Nginx only serves an empty response with 200 status code. I'm using Nginx with PHP-FPM. I have ...
1
vote
1answer
57 views

Unable to verify fpm seeing pm.* configuration settings

I'm trying to enable dynamic process management for php-fpm v7.3. Here's my php-pm.ini [www] pm = dynamic pm.max_children = 25 pm.start_servers = 10 pm.min_spare_servers = 5 pm.max_spare_servers = ...
0
votes
1answer
75 views

Unable to enable mpm-event in httpd | centos 7

I am kind of new to mpm and all so please don't mind. I have a web server running 8 websites (php based) on it. And my RAM usage goes over 90 % and the swap usage goes over 80 %. And when i check ...
0
votes
1answer
68 views

Nginx: rewrite for subdomain to folder AND files inside it

I have nginx rewrite rule - it redirects all subdomain requests from sub to folder: server { listen 77.77.77.77:80; server_name domaincom *.domaincom; root /home/admin/web/domaincom/public_html/...
0
votes
0answers
30 views

110 Connection time out when trying to run a PHP script

I cannot run any PHP script on my nginx server. I set up the usual nginx+PHP infrastructure, following this tutorial How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04 . The usual ...
1
vote
2answers
41 views

Where is the redirection configured?

I have a redirection but I don't know where it is activated? I have installed a PHP application called GARRADIN. There is an .htaccess containing this line: RewriteRule admin/plugin/(.*?)/(.*) /...
-1
votes
1answer
53 views

[alert]: fastcgi request record is too big -Fastcgi receives an error message that the get request is too long

Recently, the program encounter ed a problem, LNMP environment, because PHP in the program spliced GET request uri parameter is too long, resulting in an error, nginx processing uri is too long ...
0
votes
0answers
25 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
190 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
1answer
151 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
126 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
232 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
140 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
351 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
150 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
221 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
140 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
344 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
58 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
196 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
63 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
22 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
57 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
111 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
90 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
122 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
24 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
168 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
90 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
376 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: [...