All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
46 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
45 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
1 answer
145 views

503 Service Unavailable or Empty Response on specific pages over PHP (PHP-FPM) on MacOS

I've got a strange problem here involving some versions of PHP installed in my local machine (MacOS Ventura 13.5). Certain pages (two at this moment) doesn't load in some versions of PHP. It's loads ...
Luiz Otávio's user avatar
0 votes
1 answer
172 views

How does Php-fpm access filesystem, or does it?

Background: My server has become too old to upgrade. Some software will only work on PHP 5.6 and is incompatible with newer versions of PHP. New server hosting packages do not support PHP 5.6 as it ...
David Newcomb's user avatar
0 votes
1 answer
86 views

installation of apache2 + php82-fpm under macOS Ventura seems to keep php files in cache

A macports' installation of apache2 + php82-fpm under macOS Ventura seems to keep php files in cache, even before installing php82-opcache. I don't know if this is coming from apache2 or php82-fpm, ...
Fabien Auréjac's user avatar
0 votes
0 answers
135 views

php.ini file setting being ignored - tring to change upload_max_filesize

Running php8.2 with fpm - I have rebooted server, I have restarted both php8.2-fpm and apache2. I am 100% certain I've changed the correct php.ini file - infact I have changed all 3, apache2, cli and ...
Michael T's user avatar
  • 121
0 votes
0 answers
238 views

PHP-FPM + Apache2 security

I have configured my server (an Ubuntu 22.04 machine) so that it is managed by Apache (v2.4.55) and php7.4-fpm. The current configuration allows every vhosts to be divided into specific php-fpm pools, ...
MrL's user avatar
  • 1
0 votes
0 answers
23 views

Different senders for different VHosts

I have Ubuntu 20.04 LTS server, with Apache2 (mpm_event), PHP 7.4 FPM, postfix (as a relay) installed. This server hosts several sites (WordPress). The problem is that the sites are sending by default ...
NukDokPlex's user avatar
1 vote
2 answers
7k views

Configuring PHP-FPM in Apache

I installed Apache/2.4.54, PHP72-FPM, PHP74-FPM and some other versions of PHP-FPM on Arch Linux. Apparently there is some misconfiguration in httpd.conf, PHP can`t interpret anything and browser ...
Phree's user avatar
  • 11
0 votes
1 answer
138 views

How to install memcashed on a LAMP stack with PHP FPM?

I have a LAMP stack with PHP FPM and multiple virtual hosts with Wordpress sites on. I have tried to install memcashed using this tutorial. In Wordpress sitehealth I get: "You should use a ...
newcat1000's user avatar
0 votes
1 answer
331 views

Apache 2.4: ProxyPassMatch prevents mod_rewrite?

I try to setup a new development-environment in docker, with: Bitnami Apache 2.4 - bitnami/apache:2.4 Bitnami PHP 8.0 - bitnami/php-fpm:8.0 Bitnami Mysql 5.7 - bitnami/mysql:5.7 The whole thing is ...
Mojo78's user avatar
  • 1
1 vote
0 answers
76 views

Reached pm.max_children, High sockets allocated, No CPU usage

The issue I have a server that reaches pm.max_children (200) without spike in CPU usage. No network traffic (MB out / MB in) but extremely high number of socket allocated that do not get closed. CPU: ...
Aidvi's user avatar
  • 46
1 vote
1 answer
279 views

Apache2 stuck after 8-12 days uptime. No errors. Stuck in null loop and Recv-Q

I have some fresh web servers with ubuntu 22 LTS runnings apache2 and php-fpm with mpm_event. All of them behave the same. After 8-12 days of apache uptime. It suddenly stops recieving requests untill ...
Aidvi's user avatar
  • 46
1 vote
1 answer
907 views

Running different PHP CLI version depending on working path

I set up PHP-FPM to have different versions of PHP for different folders. This was necessary due to legacy code and was achieved using the apache's .htaccess. My question is: does anyone have a simple ...
bilogic's user avatar
  • 154
1 vote
0 answers
354 views

Why are my 2 sites on the same server (randomly?) switching PHP versions with PHP-FPM

My issue is as follows: 1 server running Debian 11 in a virtual machine (though I've tested with 9 and 10 and they both show the same behaviour) with 2 websites both configured to run with php-fpm &...
Oceanic_Panda's user avatar
0 votes
0 answers
217 views

New server Apache 2.4 + PHP responds very slowly

a customer asked to migrate their current server with plesk to a HA infrastructure. I've created the structure with haproxy and apache 2.4, but i can see many requests take a looooong time (some of ...
Nando's user avatar
  • 1
1 vote
0 answers
787 views

PHP-FPM - Debian <> Apache - 504 Gateway Timeout Error

After switching to PHP-FPM with MPM Event, there are always 504 Gateway Timeout Errors. Apache no longer answers requests. Instead there is a connection timeout. In some cases, requests are answered ...
Martin's user avatar
  • 11
0 votes
0 answers
214 views

brotli on apache with proxy_fcgi for PHP-FPM is not used

I'm running an apache 2.4.54 with broti enabled. brotli configuration as seen below and loaded before default deflate configuration. $ cat /etc/apache2/mods-available/brotli.conf <IfModule ...
M Klein's user avatar
  • 101
2 votes
1 answer
27k views

proxy_fcgi:error: The timeout specified has expired: Error dispatching request to : (polling)

my web server reaches the state of being unreachable every 1-2 days until I completely restart the server. The server is Debian Bullseye with the newest Apache + PHP 7.4. I'm using FPM, because I want ...
kanka.dev's user avatar
0 votes
2 answers
8k views

Getting 503 with apache proxy_fcgi_module [SOLVED]

I'm using CentOS 9 Stream on a VM, trying to setup my apache server to be able to show php content on the web. The server works fine when its just html, but I'm getting these errors (503 in the ...
bejgli's user avatar
  • 3
0 votes
1 answer
1k views

Apache not sending headers to PHP over FCGI/PHP-FPM

I have a virtual host configured to process PHP files over Proxy:FCGI, and it works fine, except that PHP is not receiving custom headers and others, like "Origin". Here my Apache 2.4 ...
Diogo Braga's user avatar
5 votes
4 answers
12k views

PHP scripts suddenly load very slow on Apache

I am testing why sometimes my PHP scripts takes long to load over network (>30sec) on my Apache 2.4 Ubuntu server with PHP-FPM 7.4 using mpm_event. The server was working normally in the past few ...
c0dehunter's user avatar
1 vote
0 answers
380 views

configuring apache to not serve php files statically unless php-fpm is configured

I have a an apache 2.4 configuration section that I use to handle the rare situation where a misconfigured apache box could serve php files as static plain text, and potentially give up credentials ...
Tom's user avatar
  • 11.2k
0 votes
1 answer
820 views

Why does apache work only with mpm-prefork?

I have 2 websites of wordpress on LAMP (Linux, Apache2, MariaDB and PHP-FPM). If I disable mpm-prefork and enable either mpm-worker or mpm-event, apache shows only a blank page (I have a few wordpress ...
sebelk's user avatar
  • 692
1 vote
0 answers
551 views

Apache setting "SetEnv PHP_ADMIN_VALUE open_basedir=path" is not restricted to its virtual host config

I have an Apache web server installed on my Ubuntu server 18.04 with many virtual hosts configured, I use different open_basedir for each vhost, recently I had to change normal php7.2 to php-fpm to be ...
Ahmed Hamad's user avatar
1 vote
1 answer
3k views

php7.4-fpm / Apache2: Getting PHP FPM Status Page To Load?

I'm trying to get my php7.4-fpm status page to show up on an URL. I'm running an Apache 2.4.41 server. Instead, I am getting a "File Not Found." error. Here is what I've done. First I edited:...
peppy's user avatar
  • 73
0 votes
0 answers
2k views

Large tmp file transfer hangs in nginx php-fpm proxy

We have a server that's running a WordPress site with a serverpilot-installed nginx stack on Ubuntu 20 LTS. Very large uploads appear to get stuck in the handoff between the nginx proxy and PHP, and I ...
Chris Ostmo's user avatar
0 votes
0 answers
1k views

How to correctly enable Imagick in PHP-FPM on Ubuntu 20.04 and Apache

I have PHP-FPM setup on my Ubuntu 20.04 server and have installed Imagick, but I cannot get it to be recognized by PHP 7.4. I tried following these steps, but step one returns the following error in ...
Mike Hermary's user avatar
0 votes
1 answer
4k views

PHP can't write to /tmp folder anymore after Apache update

Linux dist: Ubuntu 18.04.5 LTS Server version: Apache/2.4.29 PHP Version: 7.4.20 with PHP-FPM Recently this server did an automatic upgrade of Apache and ever since PHP can't write to /tmp breaking ...
PHP Guru's user avatar
  • 111
1 vote
0 answers
987 views

slow php (php-fpm) (long apache php waiting)

I have an apache with PHP-FPM module, 8 CPU cores. Average CPU all together load is around 75% CPU mainly due MySQL see the screen. It is actually little bit smaller load now than usually. But ...
luky's user avatar
  • 219
0 votes
1 answer
451 views

Should I change the default folder for uploads?

PHP 7 uses the default system folder (/tmp) to store uploaded files. PHP allows you to change the settings and change the upload destination directory. Some sites indicate to change this folder to ...
Tom's user avatar
  • 289
0 votes
1 answer
894 views

Apache: phpmyadmin on sub-domain "503 Service Unavailable": php7.4-fpm

I'm having a tough time trying to fix a major problem getting phpmyadmin working again (it used to work on ubuntu 16.04). I upgraded Ubuntu 16.04 to 20.04 yesterday and got the following versions of ...
peppy's user avatar
  • 73
1 vote
0 answers
540 views

PHP on VirtualHost not working but works on default site

I have a apache Server version: Apache/2.4.46 on Amazon Linux 2. PHP is working well on port 443. I added another virtualhost on port 81. PHP does not work on this port. Config: Listen 80 <...
Lakshmi Anand K's user avatar
0 votes
1 answer
1k views

Use multiple PHP-FPM versions using FastCGI on same Debian/Apache server

I would like to use multiple PHP-FPM versions using FastCGI on same Debian/Apache server. Using: Debian v9.12, Apache v2.4.25, php5.6-fpm, php7.4-fpm, libapache2-mod-fcgid v1:2.3.9-1+b1, libapache2-...
klor's user avatar
  • 344
2 votes
1 answer
683 views

Is it possible to limit the number of concurrent requests to Apache and buffer the excess requests (instead of returning 503)?

I have a website served by Apache 2.4 with PHP-FPM. Some pages take a few seconds to be generated. From time to time, some bot or crawler tries to download lots of these pages at once, PHP processes ...
Lars's user avatar
  • 21
0 votes
1 answer
311 views

PHP SERVER SSL_CLIENT_CERT disappears for when navigating pages

I am containerizing a legacy webservice that use SSL Client certificate validation. I have an apache 2.4 container and a PHP 7.4 FPM container. My apache virtual host conf looks like ... <...
Wanderer's user avatar
  • 121
0 votes
1 answer
4k views

Apache PHP-FPM setup results in File not found

I have Googled a lot and there certainly are a lot of results (even on serverfault.com) about this issue. However, I have not been able to solve my issues with it. My setup I have been setting up ...
vrijdenker's user avatar
7 votes
1 answer
6k views

Syntax of Apache SetHandler directive when configuring PHP FPM

I've followed a couple of tutorials and configured Apache to use PHP FPM. However, I do not understand what part of the SetHandler line is doing and based on some of my experiments appears to be ...
Dom's user avatar
  • 488
0 votes
0 answers
183 views

Webserver Unresponsive

I need some assistance on a new Apache2.4 and PHP-FPM server we have running. Intermittently the website becomes unresponsive We have only just moved over to PHP-FPM and didn't have this issue with ...
James's user avatar
  • 21
2 votes
0 answers
93 views

PHP-FPM Upgrade Problems

We've recently upgraded to PHP-FPM from CGI. We're having issues on a Ubuntu server which just runs Apache and PHP-FPM controlling 5 or so sites. We've built a new server with a fresh install of ...
James's user avatar
  • 21
2 votes
0 answers
122 views

Override error_log from /etc/php-fpm.conf in /etc/php-fpm.d/www.conf

I need to configure the file for PHP's error_log in /etc/php-fpm.d/www.conf. Everything works perfectly fine when using: /etc/php-fpm.conf: ;error_log = /var/log/wrong-file.log /etc/php-fpm.d/www....
Michael Käfer's user avatar
3 votes
1 answer
11k views

Apache hangs on "child process X still did not exit, sending a SIGKILL"

I did update on server to php7.3-fpm to get http2 working. Setup everything needed, h2 works great, all websites is up. But like every 5 minutes server get stuck on these errors until I restart apache....
Michal Černý's user avatar
1 vote
1 answer
2k views

Apache PHP-FPM "Software caused connection abort"

Just as a note to self, and might be helpful to others... My Apache error_log contained the error: Software caused connection abort Error dispatching request to : (reading input brigade) For example:...
Craig Francis's user avatar
0 votes
0 answers
175 views

js files occasionally failing to load

We have a newly configured php7 16cpu 32gb RAM Linux server. Plenty of power for what we need. We have a basic form on a page that requires a login. However, sometimes when a user lands on the page, ...
mcs's user avatar
  • 1
5 votes
1 answer
3k views

PHP status page not working in Apache

Using PHP7.3 FPM along with Apache 2.4.25 I have a problem when enabling PHP FPM status page. What is working: # /etc/php/7.3/fpm/pool.d/www.conf listen = /run/php/php7.3-fpm.sock pm.status_path = /...
rabudde's user avatar
  • 304
1 vote
0 answers
311 views

Passing REQUEST_URI php-fm after a rewrite in Apache

We are trying to migrate an installation to Apache event engine replacing mod_php for PHP-FPM. We have a large an complex list of rewrites performed by apache from old urls and also to produce SEO ...
luison's user avatar
  • 282
0 votes
0 answers
324 views

Apache won’t run some PHP scripts

I am very new to this php-fpm thing, but I decided I need to get into it. I recently migrated to Centos 8, and with it to Apache 2.4. I have a number of virtual hosts using PHP which worked well until ...
Manngo's user avatar
  • 115
1 vote
1 answer
919 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'...
Danny's user avatar
  • 245
2 votes
0 answers
1k 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 ...
oucil's user avatar
  • 587
0 votes
0 answers
242 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 ...
Bernard K.'s user avatar

1
2 3 4 5