<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kk6mrp</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kk6mrp"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Kk6mrp"/>
	<updated>2026-04-26T13:20:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=21735</id>
		<title>Apache with php-fpm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=21735"/>
		<updated>2022-04-19T04:50:24Z</updated>

		<summary type="html">&lt;p&gt;Kk6mrp: minor edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Apache and PHP===&lt;br /&gt;
PHP-FPM is the Fast Process Manager for PHP which runs as a service that spawns PHP processes as needed when files files are requested through the FastCGI interface. Passing this off to the PHP-FPM results in interpreting the PHP files much faster than having Apache spawn new processes each time a page is requested. You can read more about it [https://php-fpm.org/ here].&lt;br /&gt;
&lt;br /&gt;
===Step by Step Instructions===&lt;br /&gt;
&#039;&#039;&#039;Install packages&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|apk add apache2-proxy php8-fpm}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run and Add Services to Startup&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|rc-service php-fpm8 start&lt;br /&gt;
rc-update add php-fpm8&lt;br /&gt;
rc-service apache2 start&lt;br /&gt;
rc-update add apache2}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure Apache&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Uncomment the mpm_event module and comment the mpm_prefork module like so:&lt;br /&gt;
&lt;br /&gt;
  LoadModule mpm_event_module modules/mod_mpm_event.so&lt;br /&gt;
  #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so&lt;br /&gt;
&lt;br /&gt;
Add the following lines to /etc/apache2/httpd.conf:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
     SetHandler &amp;quot;proxy:fcgi://127.0.0.1:9000&amp;quot;&lt;br /&gt;
 &amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comment out the following lines in /etc/apache2/conf.d/php8-module.conf:&lt;br /&gt;
&lt;br /&gt;
  #LoadModule php_module modules/mod_php8.so&lt;br /&gt;
  &lt;br /&gt;
  #DirectoryIndex index.php index.html&lt;br /&gt;
  &lt;br /&gt;
  #&amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
  #    SetHandler application/x-httpd-php&lt;br /&gt;
  #&amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can edit the file /etc/php8/php-fpm.conf to suit you needs.&lt;br /&gt;
&lt;br /&gt;
In the configuration you may need to change the default user and group from nobody to another user such as apache:&lt;br /&gt;
 user = apache&lt;br /&gt;
 group = apache&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restart apache2 and PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After editing the configuration you must reload related services.&lt;br /&gt;
{{Cmd|rc-service php-fpm8 reload &amp;amp;&amp;amp; rc-service apache2 reload}}&lt;br /&gt;
&lt;br /&gt;
===More info===&lt;br /&gt;
[https://wiki.apache.org/httpd/PHP-FPM apache wiki]&lt;br /&gt;
[http://php.net/manual/en/install.fpm.configuration.php php-fpm manual]&lt;br /&gt;
[[Category:Web Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kk6mrp</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=21734</id>
		<title>Apache with php-fpm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=21734"/>
		<updated>2022-04-19T04:49:38Z</updated>

		<summary type="html">&lt;p&gt;Kk6mrp: Stop using the prefork module with the PHP DSO.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Apache and PHP===&lt;br /&gt;
PHP-FPM is the Fast Process Manager for PHP which runs as a service that spawns PHP processes as needed when files files are requested through the FastCGI interface. Passing this off to the PHP-FPM results in interpreting the PHP files much faster than having Apache spawn new processes each time a page is requested. You can read more about it [https://php-fpm.org/ here].&lt;br /&gt;
&lt;br /&gt;
===Step by Step Instructions===&lt;br /&gt;
&#039;&#039;&#039;Install packages&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|apk add apache2-proxy php8-fpm}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run and Add Services to Startup&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|rc-service php-fpm8 start&lt;br /&gt;
rc-update add php-fpm8&lt;br /&gt;
rc-service apache2 start&lt;br /&gt;
rc-update add apache2}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure Apache&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Uncomment the mpm_event module and comment the mpm_prefork module like so:&lt;br /&gt;
&lt;br /&gt;
  LoadModule mpm_event_module modules/mod_mpm_event.so&lt;br /&gt;
  #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so&lt;br /&gt;
&lt;br /&gt;
Add the following lines to /etc/apache2/httpd.conf:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
     SetHandler &amp;quot;proxy:fcgi://127.0.0.1:9000&amp;quot;&lt;br /&gt;
 &amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comment out the following lines in /etc/apache2/conf.d/php8-module.conf:&lt;br /&gt;
&lt;br /&gt;
  #LoadModule php_module modules/mod_php8.so&lt;br /&gt;
&lt;br /&gt;
  #DirectoryIndex index.php index.html&lt;br /&gt;
&lt;br /&gt;
  #&amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
  #    SetHandler application/x-httpd-php&lt;br /&gt;
  #&amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can edit the file /etc/php8/php-fpm.conf to suit you needs.&lt;br /&gt;
&lt;br /&gt;
In the configuration you may need to change the default user and group from nobody to another user such as apache:&lt;br /&gt;
 user = apache&lt;br /&gt;
 group = apache&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restart apache2 and PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After editing the configuration you must reload related services.&lt;br /&gt;
{{Cmd|rc-service php-fpm8 reload &amp;amp;&amp;amp; rc-service apache2 reload}}&lt;br /&gt;
&lt;br /&gt;
===More info===&lt;br /&gt;
[https://wiki.apache.org/httpd/PHP-FPM apache wiki]&lt;br /&gt;
[http://php.net/manual/en/install.fpm.configuration.php php-fpm manual]&lt;br /&gt;
[[Category:Web Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kk6mrp</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=20401</id>
		<title>Apache with php-fpm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=20401"/>
		<updated>2021-12-02T20:19:11Z</updated>

		<summary type="html">&lt;p&gt;Kk6mrp: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Apache and PHP===&lt;br /&gt;
PHP-FPM is the Fast Process Manager for PHP which runs as a service that spawns PHP processes as needed when files files are requested through the FastCGI interface. Passing this off to the PHP-FPM results in interpreting the PHP files much faster than having Apache spawn new processes each time a page is requested. You can read more about it [https://php-fpm.org/ here].&lt;br /&gt;
&lt;br /&gt;
===Step by Step Instructions===&lt;br /&gt;
&#039;&#039;&#039;Install packages &#039;&#039;&#039;&lt;br /&gt;
{{Cmd|apk add apache2-proxy php8-fpm}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run and Add Services to Startup&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|rc-service php-fpm8 start&lt;br /&gt;
rc-update add php-fpm8&lt;br /&gt;
rc-service apache2 start&lt;br /&gt;
rc-update add apache2}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure Apache&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add the following lines to /etc/apache2/httpd.conf&lt;br /&gt;
 &amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
    SetHandler &amp;quot;proxy:fcgi://127.0.0.1:9000&amp;quot;&lt;br /&gt;
 &amp;lt;/FilesMatch&amp;gt;```&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can edit the file /etc/php8/php-fpm.conf to suit you needs.&lt;br /&gt;
&lt;br /&gt;
In the configuration you may need to change the default user and group from nobody to another user such as apache:&lt;br /&gt;
 user = apache&lt;br /&gt;
 group = apache&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restart apache2 and PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After editing the configuration you must reload related services.&lt;br /&gt;
{{Cmd|rc-service php-fpm8 reload &amp;amp;&amp;amp; rc-service apache2 reload}}&lt;br /&gt;
&lt;br /&gt;
===More info===&lt;br /&gt;
[https://wiki.apache.org/httpd/PHP-FPM apache wiki]&lt;br /&gt;
[http://php.net/manual/en/install.fpm.configuration.php php-fpm manual]&lt;br /&gt;
[[Category:Web Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kk6mrp</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=20399</id>
		<title>Apache with php-fpm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=20399"/>
		<updated>2021-12-02T19:04:46Z</updated>

		<summary type="html">&lt;p&gt;Kk6mrp: formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Apache and PHP===&lt;br /&gt;
PHP-FPM is the Fast Process Manager for PHP which runs as a service that spawns PHP processes as needed when files files are requested through the FastCGI interface. Passing this off to the PHP-FPM results in interpreting the PHP files much faster than having Apache spawn new processes each time a page is requested. You can read more about it [https://php-fpm.org/ here].&lt;br /&gt;
&lt;br /&gt;
===Step by Step Instructions===&lt;br /&gt;
&#039;&#039;&#039;Install packages &#039;&#039;&#039;&lt;br /&gt;
{{Cmd|apk add apache2-proxy php8-fpm}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run and Add Services to Startup&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|rc-service php-fpm8 start&lt;br /&gt;
rc-update add php-fpm8&lt;br /&gt;
rc-service apache2 start&lt;br /&gt;
rc-update add apache2}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure Apache&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add the following lines to /etc/apache2/httpd.conf&lt;br /&gt;
 &amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
    SetHandler &amp;quot;proxy:fcgi://127.0.0.1:9000&amp;quot;&lt;br /&gt;
 &amp;lt;/FilesMatch&amp;gt;```&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can edit the file /etc/php8/php-fpm.conf to suit you needs.&lt;br /&gt;
&lt;br /&gt;
In the configuration you may need to change the default user and group from nobody to another user such as apache:&lt;br /&gt;
 user = apache&lt;br /&gt;
 group = apache&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restart apache2 and PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After editing the configuration you must reload related services.&lt;br /&gt;
{{Cmd|rc-service php-fpm8 reload &amp;amp;&amp;amp; rc-service php-fpm8 reload}}&lt;br /&gt;
&lt;br /&gt;
===More info===&lt;br /&gt;
[https://wiki.apache.org/httpd/PHP-FPM apache wiki]&lt;br /&gt;
[http://php.net/manual/en/install.fpm.configuration.php php-fpm manual]&lt;br /&gt;
[[Category:Web Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kk6mrp</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=20397</id>
		<title>Apache with php-fpm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Apache_with_php-fpm&amp;diff=20397"/>
		<updated>2021-12-02T18:40:04Z</updated>

		<summary type="html">&lt;p&gt;Kk6mrp: Previous wiki was not accurate nor current&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Apache and PHP===&lt;br /&gt;
PHP-FPM is the Fast Process Manager for PHP which runs as a service that spawns PHP processes as needed when files files are requested through the FastCGI interface. Passing this off to the PHP-FPM results in interpreting the PHP files much faster than having Apache spawn new processes each time a page is requested. You can read more about it here [https://php-fpm.org/] .&lt;br /&gt;
&lt;br /&gt;
===Step by Step Instructions===&lt;br /&gt;
&#039;&#039;&#039;Install packages &#039;&#039;&#039;&lt;br /&gt;
{{Cmd|apk add apache2-proxy php8-fpm}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Run and Add Services to Startup&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|rc-service php-fpm8 start&lt;br /&gt;
rc-update add php-fpm8&lt;br /&gt;
rc-service apache2 start&lt;br /&gt;
rc-update add apache2}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure Apache&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add the following lines to /etc/apache2/httpd.conf&lt;br /&gt;
 &amp;lt;FilesMatch \.php$&amp;gt;&lt;br /&gt;
    SetHandler &amp;quot;proxy:fcgi://127.0.0.1:9000&amp;quot;&lt;br /&gt;
 &amp;lt;/FilesMatch&amp;gt;```&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can edit the file /etc/php8/php-fpm.conf to suit you needs.&lt;br /&gt;
&lt;br /&gt;
In the configuration you may need to change the default user and group from nobody to another user such as apache:&lt;br /&gt;
 user = apache&lt;br /&gt;
 group = apache&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restart apache2 and PHP-FPM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After editing the configuration you must reload related services.&lt;br /&gt;
{{Cmd|rc-service php-fpm8 reload &amp;amp;&amp;amp; rc-service php-fpm8 reload}}&lt;br /&gt;
&lt;br /&gt;
===More info===&lt;br /&gt;
[https://wiki.apache.org/httpd/PHP-FPM apache wiki]&lt;br /&gt;
[http://php.net/manual/en/install.fpm.configuration.php php-fpm manual]&lt;br /&gt;
[[Category:Web Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kk6mrp</name></author>
	</entry>
</feed>