<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.fsci.in/index.php?action=history&amp;feed=atom&amp;title=PHP-FPM</id>
	<title>PHP-FPM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fsci.in/index.php?action=history&amp;feed=atom&amp;title=PHP-FPM"/>
	<link rel="alternate" type="text/html" href="https://wiki.fsci.in/index.php?title=PHP-FPM&amp;action=history"/>
	<updated>2026-05-05T06:49:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.fsci.in/index.php?title=PHP-FPM&amp;diff=11159&amp;oldid=prev</id>
		<title>Akshay: create with common configurations</title>
		<link rel="alternate" type="text/html" href="https://wiki.fsci.in/index.php?title=PHP-FPM&amp;diff=11159&amp;oldid=prev"/>
		<updated>2025-10-29T07:32:44Z</updated>

		<summary type="html">&lt;p&gt;create with common configurations&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;PHP-FPM is a gateway that allows running php processes in parallel and processing multiple requests through them. A server (like [[Caddy]] and [[Nginx]]) typically communicates with the php-fpm socket (or port) to render dynamic pages in PHP software (like [[MediaWiki]]).&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Configuration folder of php (for version 8.4) is &amp;lt;code&amp;gt;/etc/php/8.4/&amp;lt;/code&amp;gt; (notice the last subfolder changes according to version). Within that folder there are different configurations for different ways php is invoked (apache, cli, fpm). When using PHP-FPM, the configuration in the &amp;lt;code&amp;gt;fpm&amp;lt;/code&amp;gt; folder is what matters.&lt;br /&gt;
&lt;br /&gt;
Within &amp;lt;code&amp;gt;fpm/pool.d&amp;lt;/code&amp;gt; you find the configurations for different process pools. By default only &amp;lt;code&amp;gt;www.conf&amp;lt;/code&amp;gt; might be present. Within that you can find the path to unix socket (listen), configure number of child processes, etc.&lt;br /&gt;
&lt;br /&gt;
=== Increasing max upload ===&lt;br /&gt;
In &amp;lt;code&amp;gt;/etc/php/8.4/fpm/php.ini&amp;lt;/code&amp;gt; set &amp;lt;code&amp;gt;post_max_size&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;upload_max_filesize&amp;lt;/code&amp;gt; variables.&lt;br /&gt;
&lt;br /&gt;
=== Increasing workers for www pool ===&lt;br /&gt;
In &amp;lt;code&amp;gt;/etc/php/8.4/fpm/pool.d/www.conf&amp;lt;/code&amp;gt; set &amp;lt;code&amp;gt;pm = dynamic&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pm.max_children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pm.start_servers&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pm.min_spare_servers&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pm.max_spare_servers&amp;lt;/code&amp;gt; as appropriate.&lt;/div&gt;</summary>
		<author><name>Akshay</name></author>
	</entry>
</feed>