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
12 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 ...
0
votes
1answer
27 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
10 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
14 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
27 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
35 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
31 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
22 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
43 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
16 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
19 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
26 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
15 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
29 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
50 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
32 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 ...
0
votes
0answers
20 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
106 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
18 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
31 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
97 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
13 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
101 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
118 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
34 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
33 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
17 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
69 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 ...
0
votes
0answers
21 views

PHP-FPM pool user not able to send mail, permission denied

One of my website maintenance scripts is having trouble sending mail... I'm running a few web applications on a CentOS8 server, with Apache 2.4, PHP 7.3, PHP-FPM, etc., and SELinux IS enforcing. To ...
0
votes
1answer
26 views

limit_except VS $request_method !~ ^(GET|HEAD|POST)$

I have been reading quite a bit about nginx lately and found 2 approaches online. The first appears to work at the server context level and the second is recommended for the location context level. ...
0
votes
0answers
58 views

Multiple domains and multiple php-fpm pools conflicting

For some reason when running multiple domains/vhosts it is conflicting and it does not pass the relevant PHP pool? Now I have created two maps.conf as each domain will have multiple domains/stores. ...
0
votes
0answers
12 views

Ignored htaccess passing from mod_php to php_fpm

I'm using a server with virtualmin... Used mod_php before now, but want to use php-fpm, but when this is enabled, .htaccess is ignored... Is htacess compatible with php-fpm? I have different website ...
0
votes
1answer
138 views

Why does php-fpm status sometimes return 'Server busy' (503)?

Prometheus metrics are periodically retrieved using a tool by accessing the /fpm-status page. Sometimes the tool was not able to access the /fpm-status page because php-fpm responded with 'Server busy....
0
votes
2answers
37 views

How to serve second application from subdirectory with nginx?

I've been fighting with this the last couple days and I am hoping someone with a deeper nginx understanding can point me in the right direction. I have need to serve a secondary PHP application from ...
0
votes
1answer
29 views

Nginx - Redirect to remove index.php from path

I'm trying to deploy a web application for building REST services. The application is built using PHP and you BYO web server and database software. I'm using Nginx and MySQL (MariaDB). I've managed to ...
0
votes
0answers
44 views

Apache + PHP-FPM + Global x Custom 404

I have server with many virtual hosts. Now I want migrate to PHP-FPM (from mod_php). Now I have ErrorDocument 404 /error-httpd/404.php in Apache server config. But problem is with PHP-FPM, because ...
0
votes
0answers
19 views

Php-fpm configuation fo multi-site and Apache2 error log

I have php-fpm 7.3 on a Debian 10 and apache 2.4.38. I create 2 conf /etc/php/7.3/fpm/pool.d/mysite1.conf /etc/php/7.3/fpm/pool.d/mysite2.conf In each i modify this ; pool name ('mysite1' here) [...
0
votes
1answer
39 views

nginx + php-fpm extremely high amounts of data written to disk

We are facing a problem with extremely high data writes to disk and huge amounts of traffic over loopback interface. Environment: Debian 10.3 (4.19.0.8) - virtualized in hyper-v nginx/1.14.2 php-fpm ...
0
votes
0answers
32 views

Php-fpm installed but php info still show CGI

I have a centos 7 server with a cwp installation on it (I have installed on it apache/nginx/varnish). i installed php-fpm and the status confirm it's running php-fpm.service - The PHP FastCGI ...
0
votes
1answer
117 views

Constant problems with php-fpm, CPU usage 100% non-stop (No visitors even)

We are running two servers one for the application and one for the DB and some other software to keep the load off from the application's server, we are running CentOS and the latest version of PHP (7....
0
votes
0answers
25 views

php-fpm status page show listen queue length as 0

I have configured php-fpm to use a listen.backlog = 128 but when I view the FPM status page, I see listen queue len: 0 It's an AWS EC2 server running Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-1058-aws ...
0
votes
1answer
38 views

Adjust pm.start_servers, or pm.min/max_spare_servers

Due to an upcoming event, we're expecting high traffic (about 2000 simultaneous users) for several weeks on our Magento2 powered e-commerce website running on Ubuntu, NGINX and PHP7.1-fpm. Since our ...
0
votes
1answer
62 views

I have a lot of traffic and only 1 server best config for nginx/varnish/apache configuration

I have a lot of traffic and only 1 server can I get some help with configuration Nginx.conf config: # For more information on configuration, see: # * Official English Documentation: http://nginx....
0
votes
0answers
16 views

PHP FPM sometimes idle

I have a server with NGINX 1.17.9 and PHP 7.3.15. Sometimes it's impossible to complete a request. Last 3 months, there was no problem, but last 2 days I had to restart FPM to be able to connect again....
0
votes
0answers
34 views

Fix duplicate Set-Cookie header when using PHP-FPM

I have created my error page using php: The error page has the following, it is located at the document root, to avoid showing the error document page, in the error page, using php I use 404 response (...
0
votes
0answers
35 views

STDERR is undefined in php-fpm 7.3

Just caught an error trying to log into STDERR: Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) I'm running PHP 7.3.11 under Ubuntu 19.04 ...
0
votes
1answer
94 views

Issue with configuring php-fpm mod proxy on centos 6

I'm configuring PHP_FPM on a Centos 6 distribution. I'm using php 5.4.45 and apache 2.2.15 and the "mod_proxy.so" to call the socket. But with the following Vhost and php-fpm configuration I still get ...
0
votes
1answer
434 views

Unable to enable PHP-FPM on my server

I just created a server with Ubuntu 18.04 and PHP 7.3 But when I check if my server is using PHP-FPM, I realize that not. However, it is well activated. ubuntu@www-example-com:~$ sudo systemctl ...
0
votes
1answer
108 views

Command line with php-fpm

How to run command line with a php-fpm? I can run : php /home/some_script.php But it runs the last version of php. I have several versions installed and configured for each virtualhost, I need to ...
0
votes
0answers
35 views

Moodle Webserver running 2 CPU cores at 100% constantly ever since switching to PHP-FPM. Is this normal?

We recently migrated our Moodle Server to a new VM environment, also upgrading PHP from 7.0 to 7.3 and switching from PHP as an apache module to PHP-FPM, while still using apache as a webserver. The ...

1
2 3 4 5
38