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
0answers
17 views

Disable mount namespaces in Apache/PHP-FPM

For a web GUI to manage NFS mount points, we've run into a problem after migrating to Centos 8. JS Billings noted that: CentOS8 runs httpd in a private namespace (with its own private /tmp). Since it'...
0
votes
1answer
15 views

Ubuntu: Apache2 not loading PHP-FPM php.ini

I need some help on Apache2 not loading the php-fpm php.ini. I have installed php-fpm successfully, created the pool and other configurations but Apache2 doesn't change the Server API from Apache 2.0 ...
0
votes
1answer
39 views

How to disable PHP-FPM request logging?

I keep seeing logs like these in my Kubernetes cluster: [php] - - 05/Jul/2020:20:15:55 +0000 "POST /api/bookings" 200 How can I disable them? If PHP wants to write an error or something, I ...
0
votes
1answer
38 views

Why aren't my PHP-FPM children transitioning back to idle as soon as the request is complete?

I'm trying to debug server lockups when running a Laravel application on K8s. I've got 2 pods each with 100 static children and I'm running a load test. As expected, as the load is applied the ...
1
vote
0answers
55 views

Avoid dnf update modification of /etc/php-fpm.d/www.conf

Yesterday I ran dnf update, which updated various php packages. I discovered some values that I had customized in /etc/php-fpm.d/www.conf were reset after the update. Specifically, I had these 3 ...
0
votes
0answers
36 views

NGINX serving by IP only, not by server name [closed]

A Raspbery Pi running (arm-)Arch sits behind my router NAT. The RasPi has a static IP 192.168.1.6 and an nginx serving on port 8093. (The nginx is listening on port 80 for another webpage.) The ...
1
vote
0answers
14 views

Apache with PHP-FPM intercepting errors and not displaying my friendly PHP error page output in dev environment

There is so much static around this it's hard to find an answer that actually applies, so my apologies if there is an answer for this, I just haven't been able to find it. My situation is that I want ...
1
vote
0answers
147 views

PHP-FPM Children Exit with Code 70

Server Info CentOS 7.8 4 cores 32gb Ram Apache 2.4.41 Server PHP 7.3.19 (Multiple versions running from Remis Repo) PHP-FPM Nodeworx/Interworx Panel Dedicated Server hosting roughly ~100 Wordpress ...
0
votes
0answers
25 views

autoscaling php-fpm in AWS ECS

I have a t3.medium instance managed by ASG and used by ECS. My application requires approximately 25% of the capacity of this instance to operate at a minimum. will work in the standard nginx + ...
0
votes
0answers
32 views

Nginx Location Directive - Sending Query Parameters to index.php

I'm trying to setup a location directive in nginx with an exact URI match of the form: http://host/authenticate/?username=test&password=test. I have a script called, index.php located in the ...
0
votes
0answers
18 views

Why Apache Busy Workers never go back to Idle mode?

I have a CentOS 8 server, Apache 2.4, PHP 7.2, 4GB RAM and 2 Core CPUs that is not live yet. I'm using Apache MPM event and PHP-FPM static and my apache benchmark test shows server can handle 300 ...
0
votes
2answers
50 views

Nginx Location Directive - File gets downloaded

I currently have setup an Nginx location block that matches a uri if and only if it starts and ends with /auth/test.php. The only match would be http://host/auth/test.php. location ~ ^/auth/test\....
0
votes
0answers
17 views

Wildcard subdomain and a specific subdomain configuration in same server Nginx

I had set up a wildcard subdomain server for my PHP app1 domain like *.domain.com in Nginx default configuration. My app1 was serving if someone type x.domain.com or y.domain.com everything was fine. ...
0
votes
0answers
22 views

PHP-FPM, Apache and mod_alias

So, there seems to be really poor documentation for this, and I haven't found exactly how to do this. I am in the process of figuring out how to move my CMS to HTTP/2 and that requires PHP-FPM with ...
0
votes
0answers
38 views

PHP-FPM: pm.process_idle_timeout for PM = static or dynamic

I'm working with CentOS 8 and PHP-FPM setting for PM = static or dynamic does not allow an option for pm.process_idle_timeout. ; The number of seconds after which an idle process will be killed. ; ...
0
votes
1answer
858 views

How can i use two different php-fpm pools depending on url

I would also like to use 2 php-fpm pools. My directory structure looks like this: /home/test/index.php /home/test/contact.php /home/test/stats.php document root is: root /home/test; When I call the ...
0
votes
1answer
36 views

How can I fix the error Undefined variable: _ENV in /home/nginx/domains/mydomain.com/system/Config/BaseConfig.php?

I am trying to install a Codeigniter application in pure NGINX + PHP-FPM environment but it was previously developed in apache . After adding all the proper rules to Nginx in order to work with ...
0
votes
0answers
10 views

PHP FastCGI Process Manager (FPM) on IIS

Is there a way to enable fpm-fcgi sapi on IIS? I'm aware that the default SAPI for PHP on IIS is cgi-fcgi.
1
vote
0answers
22 views

Access denied trying for PHP fpm status page

I'm running PHP 7.3 FPM and nginx. In my pool config I have pm.status_path = /fpmstatus I have nginx config in place to call out to php for that URL. But when I access that path I get an Access ...
2
votes
2answers
243 views

LAMP Stack and VPS Performance

I have a VPS (Intel Xeon CPU E5-2630 v4 @ 2.20GHz, 4 cores - 8 GB RAM - 200 GB SSD) and I am using it to host a Wordpress blog. I am using Virtualmin as a control panel, The operating system is Centos ...
0
votes
0answers
27 views

nginx cant connect to docker php-fpm

I am running nginx on the server and not within a docker container because of troubles with getting a working SSL. I have a docker container set up separately running my-sql and php-fpm. When I have ...
1
vote
0answers
14 views

Apache / php7.4-fpm: “malformed URL”. Your Browser sent a request that this server could not understand

I'm configuring an apache vhost to use php7.4-fpm. Any requests to the host yield a '400 Bad Request' response. The vhost definition is as follows: DocumentRoot /var/www/test.localdev ...
0
votes
0answers
29 views

VPS - WARNING: [pool www] server reached pm.max_children setting (50), consider raising it

I am am running on a VPS with 1GB ram nginx with php 7.2.27. Until a week ago I was on php 7.1, using socks and everything was working fine for years, never had problems even when I had a lot of ...
1
vote
1answer
65 views

PHP-FPM: “NOTICE: the log buffer is full (1024). The access log request has been truncated.”

Running the official php:7.3-fpm-alpine Docker image. I'm getting the following output on the console: NOTICE: the log buffer is full (1024). The access log request has been truncated. A custom ...
0
votes
0answers
15 views

How to best handle apt upgrade and php-fpm default pool www.conf

I currently have an Ubuntu 18.04 server with php-fpm installed. In the spirit of maintainability, instead of editing /etc/php/{version}/fpm/pool.d/www.conf I copied it and renamed it as {domain}.conf ...
0
votes
0answers
19 views

Increasing the amount of active websocket connections on Apache 2.4 (Task limits)

Currently, I am using mpm_event and I have increased the allowed amount of open files. It doesn't matter how high I set MaxRequestWorkers because of what appears to be a limit on the Apache2 process. ...
0
votes
1answer
34 views

nginx config causes “Primary script unknown”

I am having a really puzzling issue with my nginx config. I keep seeing this error: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream client: 76.14.172.29, ...
0
votes
0answers
37 views

Wordpress website hosted on nginx ubuntu isn't loading anymore

I just found out the Wordpress website isn't running anymore. When opening example.in, it simply shows the text Error establishing a database connection. The wp website is the folder /var/www/...
0
votes
1answer
40 views

Blocking phpmyadmin from internet, allow only from lan in nginx

I'm running 2 websites on a LEMP stack with nginx configured as a reverse proxy server. I have successfully installed phpmyadmin in the root folder of one of my sites root directories. When I go to ...
0
votes
1answer
28 views

Make nginx wait x seconds before returning a 502

I think fastcgi_read_timeout is what I need here, but would like to get expert confirmation on my use-case! Thanks. -- I have nginx doing fastcgi relay to a php-fpm instance. The fpm instance, ...
0
votes
0answers
45 views

How to improve performance of Nginx for high PHP processing load?

I wonder how I could improve the performance of my server? It is configured with Ubuntu 18.04 (LTS), 4 GB RAM, 100 GB SSD, 2 CPU, with Nginx 1.14.0 and PHP 7.2-fpm to handle running and serving a site ...
0
votes
1answer
22 views

Apache php fpm scaling

I have about 30k to 40k sessions per day on wordpress website, I have caching enabled, wp-optimize plugin I have php-fpm enabled my pool options is below: max-request = 200 process idle timout = 30 ...
0
votes
0answers
28 views

replace characters in URL/query string with Nginx

I've built a simple caching system for a PHP application I'm running, but wondering if it's possible to make Nginx do the cache checks to cut down on the memory overhead from PHP. And first, no I can'...
1
vote
1answer
41 views

PHP struggling under heavy load - “failed to prepare the stderr pipe: Too many open files (24)”

We're running a server with this software: - Plesk 12.5 - Apache 2.4.6 - nginx 1.11.1 - PHP 5.6 - Centos 6 - MySQL (MariaDB) 5.5.60 We've noticed that PHP repeatedly gives this error when our server ...
0
votes
1answer
26 views

Nginx magically set PHP_ADMIN_VALUE; Can't get rid of it

i'm trying to configure my 3rd webapp on my raspberry. I accidently pulled a nginx conf for this third site containing following lines: [...] server { [...] location ~.php$ { [...] ...
0
votes
0answers
30 views

Debian9, apache2.4.25, php7.3-fpm can't enable in google cloud

I am using the Google default wordpress instance. Then install php7.3-fpm. Added following to wordpress.conf. Checked php7.3-fpm service running normal. But the SAPI keep showing Apache 2.0 Handler ...
0
votes
2answers
51 views

Why does Load Average of my Linux hosting server keeps swinging from 6 to 33?

Lately, I've noticed a weird behaviour on my production server of a moderately high traffic WordPress website. (concurrent realtime traffic around ~1500) The server is capable: DigitalOcean 48GB ...
0
votes
1answer
45 views

PHP-FPM chroot - one pool for all nginx virtualhosts

Now we have multiple virtualhots (nginx) under one php-fpm pool. We would like to use it same way with chroot. Chroot directive is absolute path /var/www, but chdir should be /[domain]/httpdocs Is it ...
0
votes
0answers
35 views

PHP FPM Very slow after some 20-30 minutes works after reload/restart (on high traffic website)

PHP is running very slow like loads forever. Below is the www.conf file values ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes ...
0
votes
1answer
117 views

Display true filesize upload limit in PHP applications when setting it via nginx

As discussed in many threads, I have set client_max_body_size 2M; in my /etc/nginx/nginx.conf and client_max_body_size 100M; in one of my virtual hosts config. And it works, as in the upload of ...
1
vote
0answers
23 views

How do I use another version of Php for an app served under a certain path with Apache?

I am on Debian Testing so Php 7.4 seems to be the current one. This is fine with me since most of my Apache served apps are fine however two of them are broken. One is Wallabag and the other one is ...
0
votes
1answer
44 views

Nginx Apache reverse proxy with php-fpm

trying to install nginx with apache revers proxy, apache itself does sent to php-fpm to port 9000 on localhost so apache http on port 8081, apache https 444 nginx 80 and nginx ssl 443 php-fpm port ...
0
votes
2answers
103 views

Where to Unset or change $_SERVER['LD_LIBRARY_PATH']?

I have an Apache 2.4 proxying to PHP7.4.4 php-fpm and I am trying to hide or unset the $_SERVER['LD_LIBRARY_PATH'] variable. How do I change or get rid of this variable $_SERVER['LD_LIBRARY_PATH'] in ...
0
votes
0answers
14 views

nginx rewrite rule for php for this /article?id=2 to get this /article/2

I have php7.4 with nginx on ubuntu 18.04 server. I want to rewrite https://example.com/article?id=2 to https://example.com/article/2 using the nginx rewrite rule. Can anyone guide me on how do I ...
0
votes
1answer
199 views

(proxy_fcgi:error) AH01071: Got error 'Unable to open primary script:' (No such file or directory)

X-post from StackOverflow I've read countless forum posts about this but none of the answers seem to help my situation. Here's the log excerpt: [proxy_fcgi:error] [pid XXXX] [client redacted] ...
2
votes
1answer
137 views

Pages load only when you restart php-fpm

So here's more context in a GIF Notice how pages do not load on link clicks, but as soon as you run service php7.2-fpm restart it instantly loads the page and like that with every page. What is ...
0
votes
0answers
37 views

Sending TLS encrypted email from website Fails

I have an e-commerce just migrated to a new hosting. Since then the email sending is not working as it should. I made a simple PHP script with PHP mailer to better debug it. I found that the problem ...
0
votes
1answer
65 views

Nginx running and enabled but not serving

I currently have lighttpd web server working on my main website, and I want to change it to nginx. So I decided to run the nginx on another port to configure it with my website and see if it works. ...
0
votes
0answers
18 views

Signal dockerized php-fpm to reopen its logs

When using logrotate with php-fpm, we can signal it to reload its logs: postrotate kill -USR1 "$pid" endscript But when php-fpm is inside a docker container, which has a number of processes, how ...
0
votes
1answer
83 views

nginx mask or convert query string to different url

I want to convert or mask a url with query string to another url. From: https://www.example.com/world/web/?q=hello To: https://www.example.com/world/web/search/hello I have tried everything on ...

1
2 3 4 5
38