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

Cant build php7.0-fpm dockerfile The repository Release file

docker build -t php7-fpm-custom . build on ubuntu 22.04 minimal Reading package lists... W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release ...
dr.ipkins's user avatar
0 votes
0 answers
35 views

Apache & PHP-FPM: AH01144: No protocol handler was valid for the URL /index.php (scheme 'unix')

This error occurs despite all the fixes that I Googled. Apache was loaded next modules: # /usr/local/apache/bin/apachectl -M | grep proxy [Thu Mar 14 22:37:35.825542 2024] [core:trace3] [pid 9087:tid ...
YpaHeL1's user avatar
  • 131
1 vote
0 answers
20 views

What causes "Partial results are valid but processing is incomplete" for mod_fcgi in Apache WITHOUT mod_reqtimeout

I am running Apache 2.4 to serve Nextcloud and I occasionally get the error [proxy_fcgi:error] cloud.my-domain.tld: (70008)Partial results are valid but processing is incomplete: AH01075: Error ...
user2690527's user avatar
0 votes
1 answer
43 views

Run PHP-FPM as other user

I have been using a setup that I created for several years on various machines and I am now trying to run it on a Debian 12 server. The setup is similar to a forge and can be found on this URL https://...
Matz's user avatar
  • 101
1 vote
1 answer
23 views

Apache: Meaning, purpose and semantics of the URI after the pipe symbol within the SetHandler directive?

What is the meaning, purpose and semantics of the fcgi:// URI after the pipe symbol within the SetHandler directive? From my understanding of the docs, everything after the scheme part fcgi:// of the ...
user2690527's user avatar
0 votes
0 answers
17 views

PHP sock linked to update-alternatives choice?

In my nginx configs, I point to PHP as /var/run/php8.3-fpm.sock. Because there is a specific version in that path, using update-alternatives does not change the PHP version my websites use. How do I ...
ᴍᴇʜᴏᴠ's user avatar
1 vote
0 answers
21 views

Server forbids access to any URL ending in .php (even nonexistent ones) with "client denied by server configuration", but identical html files are OK

I'm trying to enable some php files on an Apache 2.4 machine that has no other php content. I'm finding that any php URL (even made-up URLs for nonexistent things) results in the error "client ...
Bryan Wright's user avatar
0 votes
1 answer
44 views

imagick extension php loaded in command line but not load in httpd

I have installed imagick extension for php by command: pecl install imagick After that, I restart httpd and restart php-fpm. I checked imagick loaded in php command line but when use phpinfo() for ...
RyanLe's user avatar
  • 1
0 votes
0 answers
54 views

PHP post data lost with Transfer-Encoding: chunked; Apache regression?

I am moving a PHP application from an older CentOS 7 server with Apache 2.4.6 and PHP 7.3.33 (mod_php) to a newer Alma Linux 9 server with Apache 2.4.57 and PHP 8.0.30 (PHP-FPM). This is a back-end ...
arlomedia's user avatar
  • 131
0 votes
0 answers
57 views

FROM php:7.4-fpm-alpine app.dockerfile results in fastcgi error when adding sh file to run as an entrypoint

I am using AWS ECS Faragate to generate and deploy docker containers into tasks. I'm using the docker image FROM php:7.4-fpm-alpine for my app container. I have been working on a workaround for cron ...
cwiggo's user avatar
  • 121
1 vote
1 answer
91 views

Apache: 500 error, PHP fails on just one specific path

I need another pair of eyes to help debug an issue. This will be a long message. I'm going to provide a lot of context because I'm not sure which details might be important. We have two servers: dev, ...
Will Martin's user avatar
  • 2,513
0 votes
0 answers
42 views

Correct way for creating apparmor hats in separate file

I'm trying to re-enforce the security of my LAMP config In my configuration, each website consists in : One Unix account One MySQL database accessible only from one MySQL account One VirtualHost ...
Thibault Richard's user avatar
0 votes
1 answer
79 views

Internal Server Error on Nextcloud instance migration from Debian 12 to Rocky Linux 9 server

I've done everything by the book, according to the official guide, available here https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating.html It is not a SELinux issue. I've tried ...
nitro64's user avatar
0 votes
0 answers
20 views

Make permanent changes in PHP-FPM's settings

I'm using php-fpm (php 8.2 and 8.3) under Ubuntu 22.4. I want to permanently increase the allowed max size of uploads. I therefore didn't want to edit the php.ini, which will be reinitialized when ...
JCV's user avatar
  • 1
0 votes
2 answers
138 views

How do I configure SE Linux so PHP can connect to Postgres by socket

I have a PHP application that connects to a Postgresql Database. This works when I connect via network but I get an SELinux violation when trying to connect using the socket. I believe the contexts ...
Chronocide's user avatar
0 votes
1 answer
76 views

Why Memcached is empty

I've added memcached to LAMP stackand Wordpress and everything seems fine except the memcached memory is empty. When I check with memcdump --servers=127.0.0.1 it returns nothing. Also when I connect ...
Łukasz Korona's user avatar
0 votes
2 answers
86 views

How to Tune Virtualmin Website for High Traffic? (Alt: How to defend against DoS?)

I have a website running on PHP-FPM/Nginx/MariaDB, hosted through Virtualmin on an 8GB RAM, 4 core Xeon 3.1ghz CPU, hidden behind Cloudflare. Recently, we've had a number of simple DoS attacks, a ...
Ali's user avatar
  • 1
0 votes
0 answers
73 views

Two Virtual Hosts with to disntinct PHP configurations via PHP-FPM on Ubuntu and Apache

I have to Virtual Hosts on Ubuntu 20.04. One host is test instance and one is production (I know it would be better to have it separate). Now I need to run different php config for test vhost than for ...
Łukasz Korona's user avatar
0 votes
0 answers
78 views

What would cause virtual hosts to use the same version of php-fpm after adding distinct fpm handlers?

As soon as I enable php8.1-fpm.conf, all my sites switch from using php7.4-fpm to php8.1-fpm. All my vhost files have fpm handlers added to the <VirtualHost *:80> blocks like <VirtualHost *:...
Steve's user avatar
  • 101
0 votes
0 answers
26 views

How to config NGINX with php so as to not be "root" location

I have Nginx configured to work with AgenDAV and baikal. As long as I use the '/' location, it all works fine. Here is the config for that server { server_name _; root /agendav/agendav-2.6.0/web/...
Rob Collins's user avatar
1 vote
3 answers
521 views

Permission denied for unix socket mounted in docker container as volume

I try to containerize my nginx running currently on my server. For this I created the following docker compose file: version: "3.8" services: nginx: image: nginx:stable-alpine ...
TiMESPLiNTER's user avatar
0 votes
1 answer
359 views

Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first

We've configured a Dockerfile containing the following code snippet: ############################################# #### Image containing compiled libraries #### ####################################...
IT-Girl's user avatar
  • 143
0 votes
0 answers
99 views

Rational behind separating nginx and PHP-FPM in two docker containers

I see here and there that separating Nginx and PHP-FPM in two Docker containers is a common approach. In my environment (basic 'not so big' Symfony application) i setup both inside the same container ...
sgt-hartman's user avatar
0 votes
1 answer
192 views

PHP curl_init(), curl_exec() work from the command line but fail when browsed/accessed from a webserver

The following PHP script (when not anonymized) runs successfully at the commandline. It uses curl_init() and curl_exec() to retrieve JSON-formatted data, converts the result into an associative array, ...
Clovis_Sangrail's user avatar
0 votes
1 answer
148 views

Synology NAS, Nginx, php-fpm, file not found

Hello and a happy new year! I also get the very common but annoying error: "File not found". Now, i am trying to be as precise as possible and hope somebody knows what the problem is. Short ...
Bertl's user avatar
  • 11
0 votes
0 answers
65 views

Digital Ocean Droplet Crash after Resize. I am unable to figure out the issue

I am currently running an Apache2 web server with FastCGI Process Manager (PHP-FPM) on Ubuntu 22.04 at Digital Ocean. Recently, I wanted to add an additional website to the server. To do this, I ...
Dev Guy's user avatar
  • 127
0 votes
0 answers
91 views

MariaDB not starting after a server restart

I'm running a LEMP stack for my websites and they were running fine. Monitoring showed that the server wasn't responding to the pings, I restarted it. Now MariaDB service isn't running, my websites ...
Ali's user avatar
  • 1
0 votes
0 answers
111 views

update-alternatives appears to have killed php-fpm

I'm running php7.4-fpm on a Raspberry Pi as a server (equivalent to a fully updated Debian 11.8; Apache 2.4 web server). It's been running smoothly for many months. Last night, something stopped the ...
user1247280's user avatar
0 votes
0 answers
49 views

Routing requests to cgi with nginx

I'm having trouble translating an application controller routing setup from Apache to nginx without using if , which is strongly discouraged. What I want: serve requests for static files as-is if they ...
Martok's user avatar
  • 43
0 votes
2 answers
740 views

High PHP-FPM CPU load (Laravel, Nginx, PHP 8.2)

The server I am running has 4 vCPU's, 14GB of RAM, 250GB Storage. I get on a 1 minute interval average over a working day (7 hours) around 400-500 requests per minute. I have increased the php-fpm ...
Jaquarh's user avatar
  • 191
1 vote
3 answers
801 views

Enabling gd extension in PHP for wordpress deployment

My Wordpress site was warning me that: Error The required module, gd, is not installed, or has been disabled. I started looking into this and found that it is disabled by default in php.ini: ;...
ingh.am's user avatar
  • 283
0 votes
1 answer
16 views

Slow transactions in sub-domain

Wonder if you can help solve this little problem. I administer a system that has Wordpress in the parent domain and an api being served from a sub-domain. Normally, the api returns results to its ...
Wilko_UK's user avatar
0 votes
0 answers
39 views

PHP-FPM process is taking too much CPU

I'm trying to understand the top command, php-fpm is taking too much %cpu but the CPU on top is always very low why is that happening, and where to start to maybe tune it?
Emad Ha's user avatar
  • 101
0 votes
1 answer
117 views

How to tell sqlsrv extension (php8.1-fpm) to accept self signed certificate?

I am currently encountering a problem on a Moodle server which uses an external MS SQL DB for its authentication and enrollments. During connection, an error occurs related to a self-signed ...
Gbl's user avatar
  • 5
0 votes
0 answers
119 views

Limit php-fpm to a specific sub directory generally handled by apache

I am facing the following legacy setup with php-7.4 and libapache2-mod-php7.4 installed and enabled: <VirtualHost *:80> ServerName example.com DocumentRoot /var/www/html <...
Cologne_Muc's user avatar
0 votes
1 answer
197 views

Partial Results Error during File Upload – Seeking Assistance (CentOS 8.8, PHP 8.2, WordPress)

I hope you're doing well. I'm reaching out because I've hit a roadblock with my WordPress website and file uploads. Here's the error message that has been causing me headaches: [Thu Nov 02 16:55:53....
LKX's user avatar
  • 1
0 votes
0 answers
80 views

opcache_reset() keeps returning false

I have a web server running WordPress on Nginx and PHP-FPM (PHP 8.0). When a PHP file is changed, it will be detected by a separate program and opcache_reset() is called repeatedly until it succeeds. ...
Akihiro HARAI's user avatar
0 votes
1 answer
136 views

php-fpm creats only one socket file

I have multiple virtual hosts with unique domain names, users, and root directories for each on Nginx and php8.1-fpm. In the /etc/php/8.1/fpm/pool.d/domain.com.conf contains user = domainuser group = ...
Dev Guy's user avatar
  • 127
0 votes
2 answers
248 views

Why cannot Nginx access files in the `wp-includes` directory?

I have a WordPress website that I installed on an Ubuntu server. I setup Nginx to listen for requests and to push them to php-fpm. I am using the pool feature so that the WordPress site can have all ...
SunSparc's user avatar
  • 1,038
0 votes
1 answer
123 views

installed homebrew openssl library not found when building MongoDb PHP driver on Mac

Similar to this questioner, due to a 502 Bad Gateway error, following the PHP docs I am attempting to build the PHP Mongo driver from scratch, using a modified ./config step ./configure --with-mongodb-...
wonder95's user avatar
  • 123
0 votes
1 answer
74 views

Track down PHP crash running in lighttpd - no logs

0 Just recently I've started to see seemingly random crashes on a web server that has been stable for quite some time. I think PHP is crashing, but there are no crash logs so I'm only assuming that's ...
QldRobbo's user avatar
0 votes
0 answers
174 views

SELinux silently blocking PHP process listing

I have a system where we use PHP to run some rudimentary health checks on the server. When hitting a status page, it verifies that certain processes are running, and returns an error message if ...
Jared's user avatar
  • 383
2 votes
1 answer
675 views

How can I permanently change the ownership of /run/php?

On my Ubuntu server, I run Apache 2 with a php8.2-fpm pool, and I have changed the PHP user, which is not www-data anymore. I've changed the php-fpm.conf (/etc/php/8.2/fpm/pool.d/www.conf), so that ...
Henning Haugen's user avatar
0 votes
0 answers
216 views

php-fpm - How to log `NOTICE`s to stdout, everything else (`E_ALL`) to stderr?

As far as I understood the configuration docs, it is only possible to enable/disable specific log levels: # ini, E_NOTICE disabled entirely. error_reporting=E_ALL & ~E_NOTICE display_errors=stderr ...
goulashsoup's user avatar
0 votes
0 answers
99 views

Need php-cgi process to show site URL too?

I have a CentOS 7 server. When I use "top" to view processes I can hit "c" to get the full command. I then see something like this: 17890 do1803 20 0 R 100.0 0.6 0:02.39 /...
Ken Williams's user avatar
0 votes
0 answers
192 views

PHP-FPM triggers "pm.max_children" but does never recover

I have a scenario where I use some JQuery (yes a very old project) that does 10~100 HTTP GET requests async. I just fire them and let the browser handle how many are being done in parallel. I don't ...
Matthijs's user avatar
  • 127
2 votes
1 answer
48 views

Setting up monit to keep track of .sock files for php-fmp sites

I'm trying to setup Monit so that it keeps track of domains in case PHP crashes. Example: check file php7.3-fpm-pidfile with path /var/run/php/php7.3-fpm.pid start program = "/usr/sbin/...
Andrew Newby's user avatar
  • 1,154
0 votes
1 answer
301 views

502 Bad Gateway nginx 1.20.1

I know why is this coming. But I don't know how to fix it. I was installing osticket following this article. https://www.vultr.com/docs/how-to-install-osticket-on-centos-7/ Turns out current osticket ...
achhainsan's user avatar
2 votes
0 answers
298 views

Docker nginx + php performance

I am using docker-compose to run an nginx container and a PHP container. I have a performance issue, where each 4th or 5th request to a simple PHP script takes several seconds (normally <<1s). I ...
Joaquim d'Souza's user avatar
0 votes
1 answer
364 views

PHP Fatal Error: Cannot open /dev/urandom: No such file or directory when calling session_start() with manually built PHP

Problem I built PHP8.4 manually in Ubuntu 14.04 since the OS is out of support with no ppa package available. I tested for phpinfo() web page showed correct information while adding session_start() at ...
NeNe's user avatar
  • 3

1
2 3 4 5
44