<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	댓글: [Apache] prefork에서 event 기반 mpm으로 변경하기(HTTP/2)	</title>
	<atom:link href="https://korduck.duckdns.org/178/feed/" rel="self" type="application/rss+xml" />
	<link>https://korduck.duckdns.org/178/</link>
	<description>Raspberry Pi, Knowledge, Journey</description>
	<lastBuildDate>Tue, 15 Apr 2025 07:02:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>
		글쓴이: Joinsoo		</title>
		<link>https://korduck.duckdns.org/178/#comment-13</link>

		<dc:creator><![CDATA[Joinsoo]]></dc:creator>
		<pubDate>Fri, 28 Feb 2025 00:03:15 +0000</pubDate>
		<guid isPermaLink="false">https://korduck.duckdns.org/?p=178#comment-13</guid>

					<description><![CDATA[https://satisfactoryplace.tistory.com/375]]></description>
			<content:encoded><![CDATA[<p><a href="https://satisfactoryplace.tistory.com/375" rel="nofollow ugc">https://satisfactoryplace.tistory.com/375</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		글쓴이: Joinsoo		</title>
		<link>https://korduck.duckdns.org/178/#comment-12</link>

		<dc:creator><![CDATA[Joinsoo]]></dc:creator>
		<pubDate>Fri, 28 Feb 2025 00:02:15 +0000</pubDate>
		<guid isPermaLink="false">https://korduck.duckdns.org/?p=178#comment-12</guid>

					<description><![CDATA[pi@pi5:~ $ sudo systemctl stop apache2

pi@pi5:~ $ sudo a2dismod php8.2
Module php8.2 disabled.
To activate the new configuration, you need to run:
  systemctl restart apache2

pi@pi5:~ $ sudo a2dismod mpm_prefork
Module mpm_prefork disabled.
To activate the new configuration, you need to run:
  systemctl restart apache2

pi@pi5:~ $ sudo a2enmod mpm_event
Considering conflict mpm_worker for mpm_event:
Considering conflict mpm_prefork for mpm_event:
Enabling module mpm_event.
To activate the new configuration, you need to run:
  systemctl restart apache2

sudo apt install php-fpm
sudo apt install libapache2-mod-fcgid

# php 버전 변경
sudo a2enconf php8.2-fpm
sudo a2enmod proxy
sudo a2enmod proxy_fcgi

pi@pi5:~ $ sudo a2enconf php8.2-fpm
Enabling conf php8.2-fpm.
To activate the new configuration, you need to run:
  systemctl reload apache2

pi@pi5:~ $ sudo a2enmod proxy
Module proxy already enabled

pi@pi5:~ $ sudo a2enmod proxy_fcgi
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Module proxy_fcgi already enabled

pi@pi5:~ $ sudo apachectl configtest
AH00558: apache2: Could not reliably determine the server&#039;s fully qualified domain name, using 127.0.1.1. Set the &#039;ServerName&#039; directive globally to suppress this message
Syntax OK

pi@pi5:~ $ sudo systemctl restart apache2

pi@pi5:~ $ curl -I --http2 https://domain
HTTP/2 200 
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
x-ua-compatible: IE=edge
link: ; rel=&quot;https://api.w.org/&quot;
set-cookie: PHPSESSID=gdmup8i25hhe3gp8u0mb55thrt; path=/
referrer-policy: no-referrer-when-downgrade
content-type: text/html; charset=UTF-8
date: Thu, 27 Feb 2025 23:50:21 GMT
server: Apache/2.4.62 (Debian)]]></description>
			<content:encoded><![CDATA[<p>pi@pi5:~ $ sudo systemctl stop apache2</p>
<p>pi@pi5:~ $ sudo a2dismod php8.2<br />
Module php8.2 disabled.<br />
To activate the new configuration, you need to run:<br />
  systemctl restart apache2</p>
<p>pi@pi5:~ $ sudo a2dismod mpm_prefork<br />
Module mpm_prefork disabled.<br />
To activate the new configuration, you need to run:<br />
  systemctl restart apache2</p>
<p>pi@pi5:~ $ sudo a2enmod mpm_event<br />
Considering conflict mpm_worker for mpm_event:<br />
Considering conflict mpm_prefork for mpm_event:<br />
Enabling module mpm_event.<br />
To activate the new configuration, you need to run:<br />
  systemctl restart apache2</p>
<p>sudo apt install php-fpm<br />
sudo apt install libapache2-mod-fcgid</p>
<p># php 버전 변경<br />
sudo a2enconf php8.2-fpm<br />
sudo a2enmod proxy<br />
sudo a2enmod proxy_fcgi</p>
<p>pi@pi5:~ $ sudo a2enconf php8.2-fpm<br />
Enabling conf php8.2-fpm.<br />
To activate the new configuration, you need to run:<br />
  systemctl reload apache2</p>
<p>pi@pi5:~ $ sudo a2enmod proxy<br />
Module proxy already enabled</p>
<p>pi@pi5:~ $ sudo a2enmod proxy_fcgi<br />
Considering dependency proxy for proxy_fcgi:<br />
Module proxy already enabled<br />
Module proxy_fcgi already enabled</p>
<p>pi@pi5:~ $ sudo apachectl configtest<br />
AH00558: apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1. Set the &#8216;ServerName&#8217; directive globally to suppress this message<br />
Syntax OK</p>
<p>pi@pi5:~ $ sudo systemctl restart apache2</p>
<p>pi@pi5:~ $ curl -I &#8211;http2 <a href="https://domain" rel="nofollow ugc">https://domain</a><br />
HTTP/2 200<br />
expires: Thu, 19 Nov 1981 08:52:00 GMT<br />
cache-control: no-store, no-cache, must-revalidate<br />
pragma: no-cache<br />
x-ua-compatible: IE=edge<br />
link: ; rel=&#8221;https://api.w.org/&#8221;<br />
set-cookie: PHPSESSID=gdmup8i25hhe3gp8u0mb55thrt; path=/<br />
referrer-policy: no-referrer-when-downgrade<br />
content-type: text/html; charset=UTF-8<br />
date: Thu, 27 Feb 2025 23:50:21 GMT<br />
server: Apache/2.4.62 (Debian)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
