<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>우분투서버 만들기 &#8211; 준우블로그</title>
	<atom:link href="https://junewoo.com/category/engineering/ubuntu-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://junewoo.com</link>
	<description>또 하나의 준우블로그 사이트</description>
	<lastBuildDate>Mon, 05 Jan 2026 03:30:10 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
<site xmlns="com-wordpress:feed-additions:1">199246569</site>	<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Fri, 15 Mar 2024 11:34:08 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[FTP 연결 정보 입력]]></category>
		<category><![CDATA[nginx.conf 수정]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[WordPress 환경 설정]]></category>
		<category><![CDATA[wp-config.php에 임시디렉토리 설정]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1922</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB 생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #e6da07;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시 디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>WordPress는 설치가 완료되었습니다. 운영을 하다보면 설정을 해야 하는 부분들이 있습니다. 필요한 워드프레스 환경 설정을 해 보겠습니다.</p>
<h2>15-1. wp-config.php에 임시 디렉토리 설정하기</h2>
<p>Editplus로 서버에 접속하여 /var/www/html/ 에서 wp-config.php 파일을 엽니다.</p>
<p><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="alignnone wp-image-1923" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-4.png?resize=860%2C872&#038;ssl=1" alt="" width="860" height="872" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-4.png?resize=296%2C300&amp;ssl=1 296w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-4.png?resize=1010%2C1024&amp;ssl=1 1010w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-4.png?resize=768%2C779&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-4.png?w=1068&amp;ssl=1 1068w" sizes="(max-width: 860px) 100vw, 860px" /></p>
<p>해당 화면 맨 아래 항목 바로 위에 define(&#8216;WP_TEMP_DIR&#8217;, dirname(__FILE__) . &#8216;/wp-content/temp&#8217;); 라고 입력합니다.</p>
<p>주석과 함께 입력합니다. /* wordpress theme &amp; plugin download temp folder */</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">/* wordpress theme &amp; plugin download temp folder */
<span style="color: #ff0000;">define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp');</span></code></pre>
<h2>15-2. FTP 연결 정보를 입력합니다.</h2>
<p>아래 FTP 연결정보를 FTP 서버를 받는 것이 아닌 direct로 연결하도록 설정합니다.</p>
<p>아래 부분에 define(&#8216;FS_METHOD&#8217;, &#8216;direct&#8217;); 라고 입력합니다.</p>
<p>주석은 /* FTP Direct access */ 라고 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">/* FTP Direct access */
<span style="color: #ff0000;">define('FS_METHOD', 'direct');</span></code></pre>
<p>수정 후 화면은 아래와 같습니다.</p>
<p><img data-recalc-dims="1" decoding="async" class="alignnone wp-image-1928" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-5.png?resize=860%2C872&#038;ssl=1" alt="" width="860" height="872" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-5.png?resize=296%2C300&amp;ssl=1 296w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-5.png?resize=1010%2C1024&amp;ssl=1 1010w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-5.png?resize=768%2C779&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-5.png?w=1068&amp;ssl=1 1068w" sizes="(max-width: 860px) 100vw, 860px" /></p>
<p>다음으로 워드프레스 파일 upload 크기나 메모리 관리 및 버퍼용량 등 서버를 운영하며 필요한 정보들을 수정하여 보겠습니다</p>
<h2>15-3. PuTTY로 접속해서 php.ini를 수정합니다.</h2>
<p>Putty 명령창에 sudo nano /etc/php/8.3/fpm/php.ini 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><span style="color: #ff0000;"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nano /etc/php/8.3/fpm/php.ini</span></code></span></pre>
<p><img data-recalc-dims="1" decoding="async" class="alignnone wp-image-1930" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-2.png?resize=859%2C541&#038;ssl=1" alt="" width="859" height="541" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-2.png?resize=300%2C189&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-2.png?resize=768%2C483&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-2.png?w=825&amp;ssl=1 825w" sizes="(max-width: 859px) 100vw, 859px" /></p>
<p>그런 후 CTRL + W키를 눌러 아래 내용을 검색합니다. (해당 내용이 388, 409, 697, 846 줄에 있어 검색하셔야 찾을 수 있습니다.)</p>
<p>upload_max_filesize = 2M<br />
post_max_size = 8M<br />
memory_limit = 128M<br />
max_execution_time = 30</p>
<p>• 해당 내용을 드래그 하신 후 PuTTY에서 마우스 오른쪽을 누르시면 붙습니다.</p>
<p>그리고 해당 내용을 아래의 내용으로 수정합니다.</p>
<p>upload_max_filesize = 512M<br />
post_max_size = 512M<br />
memory_limit = 512M<br />
max_execution_time = 1000</p>
<p>수정 후 CTRL+X 누르면 수정한 파일을 확인시킵니다.</p>
<p>Y를 누르면 수정한 내용이 저장되고 nano 에디터가 종료됩니다.</p>
<h2>15-4. 이번에는 cli에 있는 php.ini를 수정합니다.</h2>
<p>Putty 명령창에 sudo nano /etc/php/8.3/fpm/php.ini 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nano /etc/php/8.3/fpm/php.ini</span></code></pre>
<p>다음의 수정 내용은 위와 거의 유사합니다.</p>
<p>upload_max_filesize = 512M<br />
post_max_size = 512M<br />
max_execution_time = 1000</p>
<p>여기서 memory_limit = -1로 되어 있는데 이 부분은 수정 안하셔도 됩니다.</p>
<h2>15-5. nginx.conf도 수정합니다.</h2>
<p>Nginx에서 client_max_body_size를 설정하여 줍니다.</p>
<p>fastcgi buffer를 설정하여 Bad Gateway가 발생하는 것을 줄여주도록 합니다.</p>
<p>Putty 명령창에 sudo nano /etc/nginx/nginx.conf 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nano /etc/nginx/nginx.conf</span></code></pre>
<p>niginx.conf 파일에 아래의 내용을 추가해 줍니다.</p>
<p>client_max_body_size 64m;<br />
fastcgi_buffers 8 16k;<br />
fastcgi_buffer_size 32k;<br />
fastcgi_connect_timeout 300;<br />
fastcgi_send_timeout 300;<br />
fastcgi_read_timeout 300;</p>
<p>해당 내용의 위치는 types_hash_max_size 2048; 아래 넣어주시면 됩니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1936" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1-1.png?resize=860%2C545&#038;ssl=1" alt="" width="860" height="545" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1-1.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1-1.png?resize=768%2C486&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1-1.png?w=824&amp;ssl=1 824w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        worker_connections 768;
        # multi_accept on;
}

http {

        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;

       <span style="color: #ff0000;"> client_max_body_size 64m;
        fastcgi_buffers 8 16k;
        fastcgi_buffer_size 32k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;</span>
        # server_tokens off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;</code></pre>
<h2>15-6. 이제 설정이 완료되었으니 php 및 nginx를 재가동하겠습니다.</h2>
<p>명령창에<br />
sudo service php8.3-fpm restart<br />
sudo nginx -t<br />
sudo service nginx restart<b><br />
</b>를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service php8.3-fpm restart</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nginx -t</span>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service nginx restart</span></code></pre>
<p>&nbsp;</p>
<p>이상으로 우분투 서버를 직접 만들고 워드프레스를 설치하기 까지의 총 15편의 글을 마칩니다.</p>
<p>워드프레스의 추가 설정, 테마 선택, 플러그인 설치, 과정은 여러분이 쉽게 하실 수 있습니다.</p>
<p>지금까지 함께해 주셔서 감사드립니다.</p>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+15+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-15%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1922</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Thu, 14 Mar 2024 13:04:19 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[upload 폴더 편집권한을 변경]]></category>
		<category><![CDATA[wordpress 관련 필요 폴더들을 생성]]></category>
		<category><![CDATA[개인 서버에 WordPress 다운로드 설치]]></category>
		<category><![CDATA[워드프레스 폴더 소유자 권한 및 사용자 그룹을 변경]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1876</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #e8e407;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f7f7f2;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>WordPress는 가장 널리 사용되는 콘텐츠 관리 시스템(CMS) 중 하나로, 사용자 친화적인 인터페이스와 확장성 덕분에 많은 웹사이트에서 선호됩니다.</p>
<p>설치과정은 워드프레스 파일을 개인 서버에 다운로드하고 그 다음 압축을 푼 다음 설치하는 방법입니다.</p>
<h2>14-1. 개인 서버에 WordPress 설치하기</h2>
<p>워드프레스 사이트에 접속하여 설치파일 다운로드 페이지에 접속합니다.</p>
<p>워드프레스 다운로드 사이트 URL : <b><a href="https://ko.wordpress.org/download/" target="_blank" rel="noopener">https://ko.wordpress.org/download/</a></b></p>
<p>ko.wordpress.org/latest-ko_KR.zip 해당 파일은 이런 형태로 되어있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1882" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9-1.png?resize=859%2C1043&#038;ssl=1" alt="" width="859" height="1043" /></p>
<h2>14-2. 개인 서버에 다운로드 합니다.</h2>
<p>Putty 명령창에 wget -O ~/wordpress.zip https://ko.wordpress.org/latest-ko_KR.zip 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">wget -O ~/wordpress.zip https://ko.wordpress.org/latest-ko_KR.zip</span>
--2024-03-15 00:33:27--  https://ko.wordpress.org/latest-ko_KR.zip
Resolving ko.wordpress.org (ko.wordpress.org)... 198.143.164.252
Connecting to ko.wordpress.org (ko.wordpress.org)|198.143.164.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26823656 (26M) [application/zip]
Saving to: ‘/home/junewoo/wordpress.zip’

/home/junewoo/wordp 100%[===================&gt;]  25.58M  3.99MB/s    in 7.0s

2024-03-15 00:33:35 (3.64 MB/s) - <span style="color: #ff0000;">‘/home/junewoo/wordpress.zip’ saved</span> [26823656/26823656]

junewoo@cvilla:~$</code></pre>
<p>그러면 wordpress.zip이 /home/junewoo/ 폴더에 저장되었다고 합니다.</p>
<h2>14-3. 저장한 워드프레스 압축파일을 풀어보겠습니다.</h2>
<p>명령창에 unzip /home/junewoo/wordpress.zip -d ~ 를 입력합니다.</p>
<p>~는 임시 디렉토리에 풀라는 의미입니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">ubuntu@wordpress:~$ <span style="color: #ff0000;">unzip /home/junewoo/wordpress.zip -d ~</span>
Archive:  /home/ubuntu/wordpress.zip
   creating: /home/ubuntu/wordpress/
  inflating: /home/ubuntu/wordpress/wp-login.php
  inflating: /home/ubuntu/wordpress/wp-cron.php
  inflating: /home/ubuntu/wordpress/xmlrpc.php
  inflating: /home/ubuntu/wordpress/wp-load.php
   creating: /home/ubuntu/wordpress/wp-admin/
  inflating: /home/ubuntu/wordpress/wp-admin/credits.php
  inflating: /home/ubuntu/wordpress/wp-admin/admin-functions.php
  
  			--- 중략 ---
                            
  inflating: /home/ubuntu/wordpress/wp-includes/nav-menu.php
  inflating: /home/ubuntu/wordpress/wp-includes/class-wp-paused-extensions-storage.php
  inflating: /home/ubuntu/wordpress/wp-includes/class.wp-dependencies.php
  inflating: /home/ubuntu/wordpress/wp-signup.php
  inflating: /home/ubuntu/wordpress/wp-links-opml.php</code></pre>
<h2>14-4. 압축이 풀렸는지 확인합니다.</h2>
<p>명령창에 ls /home/junewoo 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ls /home/junewoo</span>
snap  wordpress  wordpress.zip
junewoo@cvilla:~$</code></pre>
<h2>14-5. 에러 없이 정상적으로 압축이 풀렸으면 서비스 폴더로 복사합니다.</h2>
<p>명령창에 cp -a /home/junewoo/wordpress/. /var/www/html 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$</code><span style="color: #ff0000;"><code class="hljs">cp -a /home/junewoo/wordpress/. /var/www/html</code></span></pre>
<h2>14-6. Editplus에서 정상적으로 복사가 되었는지 확인해 보겠습니다.</h2>
<p>/var/www/html 아래 wordpress 내용이 잘 복사된 것을 확인할 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1889" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6-1.png?resize=859%2C973&#038;ssl=1" alt="" width="859" height="973" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6-1.png?resize=265%2C300&amp;ssl=1 265w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6-1.png?resize=903%2C1024&amp;ssl=1 903w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6-1.png?resize=768%2C871&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6-1.png?w=1062&amp;ssl=1 1062w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<h2>14-7. 다음으로 wordpress 관련 필요 폴더들을 생성합니다.</h2>
<p>WordPress 플러그인 적용 시 해당 폴더가 없거나 권한 문제로 오류가 나는 경우가 있습니다.</p>
<p>오류가 나기 전에 해당 폴더를 생성하시는 것을 추천합니다.</p>
<p>명령창에<br />
mkdir /var/www/html/wp-content/uploads<br />
mkdir /var/www/html/wp-content/upgrade<br />
mkdir /var/www/html/wp-content/temp<br />
와 같이 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$</code><code class="hljs"><span style="color: #ff0000;">mkdir /var/www/html/wp-content/uploads </span>
junewoo@cvilla:~$ <span style="color: #ff0000;">mkdir /var/www/html/wp-content/upgrade</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">mkdir /var/www/html/wp-content/temp</span></code></pre>
<p>다음으로 폴더들이 정상적으로 생성되었는지 확인해 보겠습니다.</p>
<p>명령창에 ls -l ~ /var/www/html 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ls -l ~ /var/www/html</span>
/home/junewoo:
total 26204
drwx------ 3 junewoo junewoo     4096 Dec 23 14:33 snap
drwxr-xr-x 5 junewoo junewoo     4096 Dec  7 03:00 wordpress
-rw-rw-r-- 1 junewoo junewoo 26823656 Jan 31 07:05 wordpress.zip

/var/www/html:
total 252
drwxr-sr-x  2 www-data junewoo  4096 Dec 23 10:37 account_live_cvilla@hanmail.net
-rw-r--r--  1 www-data junewoo  1241 Dec 23 10:37 DirectoryResponse
-rwxrwxr-x  1 www-data junewoo   614 Dec 22 18:28 index.nginx-debian.html
-rwxrwxr-x  1 www-data junewoo   405 Feb  6  2020 index.php
-rwxrwxr-x  1 www-data junewoo 19915 Jan 31 23:23 license.txt
-rw-rw-r--  1 junewoo  junewoo    67 Jan  5 09:44 naverdded6de77ad5c096673b3312b387a541.html
-rwxrwxr-x  1 www-data junewoo  7399 Jan 31 23:23 readme.html
-rw-rw-r--  1 junewoo  junewoo    23 Jan  5 09:58 robots.txt
lrwxrwxrwx  1 www-data junewoo    39 Dec 22 19:36 testpagedb -&gt; /var/www/phpMyAdmin-5.2.1-all-languages
-rwxrwxr-x  1 www-data junewoo  7211 May 13  2023 wp-activate.php
drwxrwsr-x  9 www-data junewoo  4096 Dec  7 03:00 wp-admin
-rwxrwxr-x  1 www-data junewoo   351 Feb  6  2020 wp-blog-header.php
-rwxrwxr-x  1 www-data junewoo  2323 Jun 14  2023 wp-comments-post.php
-rw-rw-rw-  1 www-data junewoo  3787 Dec 23 21:14 wp-config.php
-rwxrwxr-x  1 www-data junewoo  3013 Nov 16 02:47 wp-config-sample.php
drwxrwsr-x 11 www-data junewoo  4096 Mar  5 23:44 wp-content
-rwxrwxr-x  1 www-data junewoo  5638 May 31  2023 wp-cron.php
drwxrwsr-x 27 www-data junewoo 12288 Dec  7 03:05 wp-includes
-rwxrwxr-x  1 www-data junewoo  2502 Nov 27  2022 wp-links-opml.php
-rwxrwxr-x  1 www-data junewoo  3927 Jul 16  2023 wp-load.php
-rwxrwxr-x  1 www-data junewoo 50927 Jan 31 23:23 wp-login.php
-rwxrwxr-x  1 www-data junewoo  8525 Sep 16 15:50 wp-mail.php
-rwxrwxr-x  1 www-data junewoo 26409 Oct 10 23:05 wp-settings.php
-rwxrwxr-x  1 www-data junewoo 34385 Jun 20  2023 wp-signup.php
-rwxrwxr-x  1 www-data junewoo  4885 Jun 22  2023 wp-trackback.php
-rwxrwxr-x  1 www-data junewoo  3154 Sep 30 16:39 xmlrpc.php
junewoo@cvilla:~$</code></pre>
<p>여기서는 파일 권한들이 대부분 775로 되어 있습니다.</p>
<p>만일 755로 되어 있다면 테마 및 플러그인 추가 시 에러가 날 수 있습니다.</p>
<h2>14-8. 워드프레스 폴더 소유자 권한 및 사용자 그룹을 변경합니다.</h2>
<p>Putty 명령창에<br />
sudo chown -R www-data:junewoo /var/www/html<br />
sudo find /var/www/html -type d -exec chmod g+s {} \;<br />
sudo chmod -R 775 /var/www/html<br />
를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chown -R www-data:junewoo /var/www/html</span>
[sudo] password for junewoo:
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo find /var/www/html -type d -exec chmod g+s {} \;</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chmod -R 775 /var/www/html</span>
junewoo@cvilla:~$</code></pre>
<p>그러면 하위 폴더가 모두 775 권한으로 변경되었습니다.</p>
<p>그러나 이러면 upload된 파일이 덮어씌워진다거나 삭제될 수 있습니다.</p>
<p>명령 창에서 ls -l /var/www/html 를 해 보시면 폴더 소유자 권한이 변경된 것을 확인할 수 있습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ls -l /var/www/html</span>
total 252
drwxrwsr-x  2 www-data junewoo  4096 Dec 23 10:37 account_live_cvilla@hanmail.net
-rwxrwxr-x  1 www-data junewoo  1241 Dec 23 10:37 DirectoryResponse
-rwxrwxr-x  1 www-data junewoo   614 Dec 22 18:28 index.nginx-debian.html
-rwxrwxr-x  1 www-data junewoo   405 Feb  6  2020 index.php
-rwxrwxr-x  1 www-data junewoo 19915 Jan 31 23:23 license.txt
-rwxrwxr-x  1 www-data junewoo    67 Jan  5 09:44 naverdded6de77ad5c096673b3312b387a541.html
-rwxrwxr-x  1 www-data junewoo  7399 Jan 31 23:23 readme.html
-rwxrwxr-x  1 www-data junewoo    23 Jan  5 09:58 robots.txt
lrwxrwxrwx  1 www-data junewoo    39 Dec 22 19:36 testpagedb -&gt; /var/www/phpMyAdmin-5.2.1-all-languages
-rwxrwxr-x  1 www-data junewoo  7211 May 13  2023 wp-activate.php
drwxrwsr-x  9 www-data junewoo  4096 Dec  7 03:00 wp-admin
-rwxrwxr-x  1 www-data junewoo   351 Feb  6  2020 wp-blog-header.php
-rwxrwxr-x  1 www-data junewoo  2323 Jun 14  2023 wp-comments-post.php
-rwxrwxr-x  1 www-data junewoo  3787 Dec 23 21:14 wp-config.php
-rwxrwxr-x  1 www-data junewoo  3013 Nov 16 02:47 wp-config-sample.php
drwxrwsr-x 11 www-data junewoo  4096 Mar  5 23:44 wp-content
-rwxrwxr-x  1 www-data junewoo  5638 May 31  2023 wp-cron.php
drwxrwsr-x 27 www-data junewoo 12288 Dec  7 03:05 wp-includes
-rwxrwxr-x  1 www-data junewoo  2502 Nov 27  2022 wp-links-opml.php
-rwxrwxr-x  1 www-data junewoo  3927 Jul 16  2023 wp-load.php
-rwxrwxr-x  1 www-data junewoo 50927 Jan 31 23:23 wp-login.php
-rwxrwxr-x  1 www-data junewoo  8525 Sep 16 15:50 wp-mail.php
-rwxrwxr-x  1 www-data junewoo 26409 Oct 10 23:05 wp-settings.php
-rwxrwxr-x  1 www-data junewoo 34385 Jun 20  2023 wp-signup.php
-rwxrwxr-x  1 www-data junewoo  4885 Jun 22  2023 wp-trackback.php
-rwxrwxr-x  1 www-data junewoo  3154 Sep 30 16:39 xmlrpc.php
junewoo@cvilla:~$</code></pre>
<h2>14-9. 이런 경우를 방지하기 위하여 upload 폴더에 한해서 폴더 하위 편집권한을 변경합니다.</h2>
<p>Putty 명령창에<br />
sudo chown -R www-data:www-data /var/www/html/wp-content/uploads<br />
sudo chmod -R 755 /var/www/html/wp-content/uploads<br />
를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$</code><code class="hljs"><span style="color: #ff0000;">sudo chown -R www-data:www-data /var/www/html/wp-content/uploads</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chmod -R 755 /var/www/html/wp-content/uploads</span></code></pre>
<p>이제 uploads 폴더는 junewoo 사용자에게 권한이 없으며 www-data로 웹에서만 소유자가 쓰기 권한이 있게 됩니다.</p>
<p>명령창에 <b>ls -l /var/www/html/wp-content/</b> 를 입력하면 uploads 폴더만 소유자 권한까지 변경된 것을 확인할 수 있습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ls -l /var/www/html/wp-content/</span>
total 60
-rwxrwxr-x  1 www-data junewoo  1128 Dec 23 21:14 advanced-cache.php
drwxrwsr-x  4 www-data junewoo  4096 Mar 15 10:00 cache
-rwxrwxr-x  1 www-data junewoo    28 Jan  9  2012 index.php
drwxrwsr-x  4 www-data junewoo  4096 Dec 22 23:16 languages
drwxrwsr-x 19 www-data junewoo  4096 Mar 14 12:45 plugins
drwxrwsr-x  2 www-data junewoo  4096 Mar 14 12:45 temp
drwxrwsr-x  4 www-data junewoo  4096 Mar 13 17:36 themes
drwxrwsr-x  3 www-data junewoo 16384 Mar  5 11:52 updraft
drwxrwsr-x  2 www-data junewoo  4096 Mar 14 12:45 upgrade
drwxrwsr-x  3 www-data junewoo  4096 Mar 12 11:16 upgrade-temp-backup
drwxrwsr-x 12 www-data www-data  4096 Mar 13 17:41 uploads
junewoo@cvilla:~$</code></pre>
<p>이상으로 WordPress 설치전 준비가 되었습니다.</p>
<h2>14-10. 이제 본인의 사이트에 접속해 봅니다.</h2>
<p>사이트에 접속하면 wp-config.php 파일을 생성한다고 합니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1900" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-8.jpg?resize=859%2C550&#038;ssl=1" alt="" width="859" height="550" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-8.jpg?resize=300%2C192&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-8.jpg?resize=1024%2C655&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-8.jpg?resize=768%2C491&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-8.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>위에서 &#8220;Let&#8217;s go!&#8221; 버튼을 누릅니다.</p>
<h2>14-11. 데이터베이스 이름, 사용자명, 암호, 데이터베이스 호스트, 테이블 접두어를 입력합니다.</h2>
<ul data-ke-list-type="disc">
<li>데이터베이스 이름    junewoo ( DB 생성하기에서 생성한 데이터베이스)</li>
<li>사용자명                 root</li>
<li>암호                       password (8. MariaDB 설치하기에서 생성한 암호)</li>
<li>데이터베이스 호스트  localhost (기존 그대로)</li>
<li>테이블 접두어           wp_ (기존 그대로)</li>
</ul>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1902" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1-1.jpg?resize=859%2C507&#038;ssl=1" alt="" width="859" height="507" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1-1.jpg?resize=300%2C177&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1-1.jpg?resize=1024%2C605&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1-1.jpg?resize=768%2C454&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1-1.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>정상적으로 입력되셨으면 아래와 같이 설치 과정을 마쳤다고 나타납니다. 이제 &#8220;설치 실행하기&#8221;를 누릅니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1904" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2-1.jpg?resize=859%2C441&#038;ssl=1" alt="" width="859" height="441" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2-1.jpg?resize=300%2C154&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2-1.jpg?resize=1024%2C525&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2-1.jpg?resize=768%2C394&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2-1.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<h2>14-12. 다음으로 계정 정보를 입력하고 워드프레스를 설치합니다.</h2>
<ul data-ke-list-type="disc">
<li>사이트 제목</li>
<li>사용자명 (관리자 ID)</li>
<li>사용자 암호 (관리자 암호)</li>
<li>이메일 주소 (관리자 Email 주소)</li>
<li>검색 엔진 접근 여부 (사이트 설정이 완료 된 후에 검색엔진 차단하기를 푸시는 것을 추천합니다.)</li>
</ul>
<p>위 정보를 모두 입력하셨으면 &#8220;워드프레스 설치하기&#8221; 버튼을 누릅니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1906" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3-1.jpg?resize=860%2C740&#038;ssl=1" alt="" width="860" height="740" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3-1.jpg?resize=300%2C258&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3-1.jpg?resize=1024%2C881&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3-1.jpg?resize=768%2C661&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3-1.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>설치하기 버튼을 누르시면 아래와 같이 성공!이라고 나타납니다.</p>
<h2><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1908" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4-1.jpg?resize=860%2C510&#038;ssl=1" alt="" width="860" height="510" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4-1.jpg?resize=300%2C178&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4-1.jpg?resize=1024%2C606&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4-1.jpg?resize=768%2C454&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4-1.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 860px) 100vw, 860px" /></h2>
<h2>14-13. 로그인 버튼을 누르면 로그인 화면이 나타납니다.</h2>
<p>4-12. 에서 입력하였던 관리자 ID와 암호를 입력합니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1910" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-5.png?resize=859%2C756&#038;ssl=1" alt="" width="859" height="756" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-5.png?resize=300%2C264&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-5.png?resize=1024%2C900&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-5.png?resize=768%2C675&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-5.png?w=1144&amp;ssl=1 1144w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<h2>14-14. 드디어 관리자 화면에 접속하셨습니다.</h2>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1912" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-3.png?resize=860%2C866&#038;ssl=1" alt="" width="860" height="866" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-3.png?resize=298%2C300&amp;ssl=1 298w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-3.png?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-3.png?resize=768%2C772&amp;ssl=1 768w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>위 화면은 준우블로그 워드프레스 관리자 화면입니다.</p>
<p>처음으로 접속한 관리자 화면은 여러 메뉴가 빠져 있습니다.</p>
<p>여기까지 워드프레스 설치를 완료하셨습니다.</p>
<p>다음에는 워드프레스 환경설정을 해 보겠습니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 15</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+14+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-14%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1876</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Thu, 14 Mar 2024 11:37:47 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[MariaDB에서 데이터베이스(DB) 만들기]]></category>
		<category><![CDATA[phpMyAdmin에서 DB 만들기]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1856</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #ebd405;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f7f7f2;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>이번에는 MariaDB와 Phpmyadmin을 사용하여 DB를 생성하고, WordPress에 적용하는 방법에 대해 알아보겠습니다.</p>
<p>이 과정은 WordPress 사이트를 구축하기 위한 데이터베이스의 생성입니다.</p>
<p>WordPress 파일을 서버에 설치한 후, 해당 데이터베이스를 WordPress 설치 과정에서 연결하기 위한 사전 작업입니다.</p>
<h2>13-1. MariaDB에서 데이터베이스(DB) 만들기</h2>
<p>PuTTY에서 SSH로 접속한 상황에서 DB를 만들어 보겠습니다.</p>
<p>Putty 명령창에 mysql &#8211;user=root mysql -p 를 입력합니다.</p>
<p>MariaDB 설치하기 에서 만들었던 DB 암호를 입력하여 로그인 합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">mysql --user=root mysql -p</span>
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 66370
Server version: 10.6.16-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [mysql]&gt;</code></pre>
<p>MariaDB가 실행된 화면입니다.</p>
<p>현재 생성되어 있는 DB 상황을 확인해 보겠습니다.</p>
<p>명령창에 SHOW DATABASES; 를 넣어보겠습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">MariaDB [mysql]&gt; <span style="color: #ff0000;">SHOW DATABASES;</span>
+--------------------+
| Database           |
+--------------------+
| blog               |
| information_schema |
| mysql              |
| performance_schema |
| phpmyadmin         |
| sys                |
+--------------------+
7 rows in set (0.001 sec)

MariaDB [mysql]&gt;</code></pre>
<p>신규 DB를 생성해 보겠습니다.</p>
<p>명령창에 CREATE DATABASE DB명; 를 입력합니다. 여기서 DB명은 junewoo로 하겠습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">MariaDB [mysql]&gt; CREATE DATABASE junewoo;
Query OK, 1 row affected (0.001 sec)</code></pre>
<p>DB가 제대로 생성되었는지 확인해 보겠습니다.</p>
<p>명령창에 SHOW DATABASES; 를 넣어보겠습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">
MariaDB [mysql]&gt; <span style="color: #ff0000;">SHOW DATABASES;</span>
+--------------------+
| Database           |
+--------------------+
| blog               |
| information_schema |
| <span style="color: #ff0000;">junewoo</span>            |
| mysql              |
| performance_schema |
| phpmyadmin         |
| sys                |
+--------------------+
7 rows in set (0.000 sec)

MariaDB [mysql]&gt;</code></pre>
<p>이렇게 junewoo가 생성된 것을 확인 할 수 있습니다.</p>
<p>나중에 WordPress 생성 시 DB 명은 방금 만든 DB 명(여기서는 junewoo)을 넣으시면 됩니다.</p>
<h2>13-2. 이번에는 phpMyAdmin에서 DB 생성을 해 보겠습니다.</h2>
<p>우선 phpMyAdmin에 접속합니다.</p>
<p>웹브라우저에서 http://도메인 또는 IP/testpagedb 로 접속합니다.</p>
<p>사용자명에 root / 암호는 전에 MariaDB 설치하기 에서 만든 암호입니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1862" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-2.png?resize=860%2C596&#038;ssl=1" alt="" width="860" height="596" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-2.png?resize=300%2C208&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-2.png?resize=1024%2C710&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-2.png?resize=768%2C532&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-2.png?w=1412&amp;ssl=1 1412w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>phpMyAdmin에 접속하였으면 데이터베이스를 눌러봅니다.</p>
<p>phpMyAdmin 화면에서 오른쪽 데이터베이스를 누르시거나 또는 왼쪽 메뉴에서 &#8216;새로운&#8217;이라고 되어 있는 테이블을 누릅니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1864" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4-1.png?resize=859%2C682&#038;ssl=1" alt="" width="859" height="682" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4-1.png?resize=300%2C238&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4-1.png?resize=1024%2C812&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4-1.png?resize=768%2C609&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4-1.png?resize=1536%2C1218&amp;ssl=1 1536w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4-1.png?w=1658&amp;ssl=1 1658w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>현재 생성되어 있는 DB 상활을 확인해 보겠습니다.</p>
<p>조금 전 PuTTY에서 생성하였던 junewoo가 생성되어 있는 것을 확인할 수 있습니다.</p>
<p>데이터 정렬 방식은 utf8mb4_unicode_ci라고  8. MariaDB 설치하기에서 만들 때 환경 설정했던 형태로 utf8mb4로 적용된 것을 확인할 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1866" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8-1.png?resize=859%2C883&#038;ssl=1" alt="" width="859" height="883" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8-1.png?resize=292%2C300&amp;ssl=1 292w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8-1.png?resize=996%2C1024&amp;ssl=1 996w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8-1.png?resize=768%2C790&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8-1.png?w=1300&amp;ssl=1 1300w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>phpMyAdmin에서도 데이터베이스 생성을 해 보겠습니다.</p>
<p>화면에서 데이터베이스명이라고 되어 있는 부분에 원하는 DB 명을 넣고 오른쪽 만들기 버튼을 누릅니다.</p>
<p>여기서는 junewoo라고 생성이 되어있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1868" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7-1.png?resize=859%2C553&#038;ssl=1" alt="" width="859" height="553" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7-1.png?resize=300%2C193&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7-1.png?resize=1024%2C660&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7-1.png?resize=768%2C495&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7-1.png?w=1305&amp;ssl=1 1305w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>이상으로 데이터베이스 생성을 해 보았습니다.</p>
<p>다음에는 WordPress를 설치해 보겠습니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 14</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+13+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-13%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1856</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Sun, 10 Mar 2024 11:48:38 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[HTTPS 적용을 위한 SSL 인증서 발급 받기]]></category>
		<category><![CDATA[letsencrypt.conf 파일 만들기]]></category>
		<category><![CDATA[Nginx 라우팅 설정을 위해 letsencrypt.conf의 내용을 붙임]]></category>
		<category><![CDATA[Nginx에 acme-challenge 폴더 위치]]></category>
		<category><![CDATA[snap 명령어로 classic certbot를 설치]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1742</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #ebdf09;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f7f7f2;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>개인 서버에 SSL 인증서를 무료로 발급받는 가장 대표적인 방법은 Let&#8217;s Encrypt를 사용하는 것입니다. Let&#8217;s Encrypt는 무료, 자동화된, 개방된 인증 기관(CA)으로, HTTPS를 통해 웹사이트의 보안을 강화하기 위해 무료 SSL/TLS 인증서를 제공합니다. 여기서는 Let&#8217;s Encrypt를 이용해 SSL 인증서를 발급받고 설치하는 기본적인 과정을 소개하겠습니다.</p>
<h2>12-1. HTTPS 적용을 위한 SSL 인증서 발급 받기</h2>
<p>먼저 Let&#8217;s Encrypt SSL 인증서를 발급받기 전 환경을 구성해 보겠습니다.</p>
<p>Let&#8217;s Encrypt SSL 발급을 위한 /.well-known/acme-challenge 를 구성하는데 여기서는 /var/www/ 아래 letsencrypt 라는 폴더를 만들어 그 아래 만들겠습니다/</p>
<p>명령창에 mkdir -p /var/www/letsencrypt/.well-known/acme-challenge 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">mkdir -p /var/www/letsencrypt/.well-known/acme-challenge</span></code></pre>
<h2>12-2. Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기</h2>
<p>Nginx 라우팅 설정파일은 /etc/snippets/ 폴더에서 관리하는데 그 아래 letsencrypt.conf 파일을 만들고 여기서 로그인한 계정인 junewoo가 해당 폴더 권한이 없으므로 해당 권한 및 파일수정권한을 가져오도록 하겠습니다.</p>
<p>a. 명령창에 sudo touch /etc/nginx/snippets/letsencrypt.conf 를 입력합니다.<br />
b. 명령창에 sudo chown root:junewoo /etc/nginx/snippets/letsencrypt.conf 를 입력합니다.<br />
c. 명령창에sudo chmod 775 /etc/nginx/snippets/letsencrypt.conf 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo touch /etc/nginx/snippets/letsencrypt.conf</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chown root:junewoo /etc/nginx/snippets/letsencrypt.conf</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chmod 775 /etc/nginx/snippets/letsencrypt.conf</span></code></pre>
<p>nano 에디터로 letsencrypt.conf 파일을 수정합니다.</p>
<p>Putty 명령창에 sudo nano /etc/nginx/snippets/letsencrypt.conf를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nano /etc/nginx/snippets/letsencrypt.conf</span></code></pre>
<p>화면이 나오면 아래 내용을 붙여줍니다. (드래그하여 CTRL + C 한후 PuTTY 화면에서 마우스 오른쪽 버튼 클릭)</p>
<p>location ^~ /.well-known/acme-challenge/ {<br />
default_type &#8220;text/plain&#8221;;<br />
root /var/www/letsencrypt;<br />
}</p>
<p>그 다음 CTRL + X 한 후 Y를 누르고 파일명이 나오면 Enter키를 눌러줍니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1753" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-1.png?resize=859%2C544&#038;ssl=1" alt="" width="859" height="544" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-1.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-1.png?resize=768%2C487&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5-1.png?w=827&amp;ssl=1 827w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><span style="color: #ff0000;"><code class="hljs">ocation ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /var/www/letsencrypt;
}</code></span></pre>
<p>&nbsp;</p>
<h2>12-3. Nginx 라우팅 설정을 위해 letsencrypt.conf의 내용을 붙여줍니다.</h2>
<p>Editplus 에서 /etc/nginx/sites-available/default 를 수정합니다.</p>
<p>server_name 도메인명; 아래 include /etc/nginx/snippets/letsencrypt.conf; 를 붙여줍니다.</p>
<p>그러면 nginx 라우팅 설정은 다음과 같이 됩니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs"># Default server configuration
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /var/www/html;
	index index.php index.html index.htm index.nginx-debian.html;

	server_name junewoo.com;
    
    <span style="color: #ff0000;">include /etc/nginx/snippets/letsencrypt.conf;</span>   ### .well-know/acme-challenge 알림

	location / {
		try_files $uri $uri/ =404;
       if (!-e $request_filename) { 
         rewrite ^.*$ /index.php last;         
		}
	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php8.3-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
		include fastcgi_params;
		fastcgi_read_timeout 300;
	}

	location ~ /\.ht {
	    deny all;
	}
}

### HTTP (CNAME 연결 www.junewoo.com to junewoo.com) ###
 server {
    listen 80;
    listen [::]:80; 
    server_name www.junewoo.com;

	include /etc/nginx/snippets/letsencrypt.conf;   # .well-know/acme-challenge 알림

    location / { 
        return 301 http://junewoo.com$request_uri;     ### http://junewoo.com 로 리다이렉팅 
    }
}</code></pre>
<p>위 내용을 적용해 주기 위하여 nginx를 재가동 합니다.</p>
<p>명령창에 sudo nginx -t 와 sudo service nginx restart 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nginx -t</span>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service nginx restart</span></code></pre>
<p>이제 Let&#8217;s Encrypt SSL 발급을 위한 환경이 모두 갖추어졌습니다.</p>
<h2>12-4.  Let&#8217;s Encrypt SSL를 발급 받아 보겠습니다.</h2>
<p>certbot-auto 로는 설치 시 에러가 발생합니다. snap 명령어로 classic certbot를 설치합니다.</p>
<p>a. Putty 명령창에 sudo snap install core; sudo snap refresh core 를 입력합니다.</p>
<p>b. 명령창에 sudo snap install &#8211;classic certbot 를 입력합니다.</p>
<p>c. 명령창에 sudo ln -s /snap/bin/certbot /usr/bin/certbot 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ </code><code class="hljs"><span style="color: #ff0000;">sudo snap install core; sudo snap refresh core</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo snap install --classic certbot</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo ln -s /snap/bin/certbot /usr/bin/certbot</span></code></pre>
<h2>12-5. Certbot을 이용하여 HTTPS SSL 인증서를 발급받습니다.</h2>
<p>명령창에 sudo certbot certonly &#8211;webroot &#8211;agree-tos &#8211;no-eff-email &#8211;email 이메일주소 -w /var/www/letsencrypt -d 도메인명 -d 도메인명(www포함) 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo certbot certonly --webroot --agree-tos --no-eff-email --email cvilla@hanmail.net -w /var/www/letsencrypt  -d junewoo.com  -d www.junewoo.com</span></code></pre>
<p>이어서 설치하겠냐는 질문이 나오면 Y를 누릅니다.</p>
<p>After this operation, 194 MB of additional disk space will be used.<br />
Do you want to continue? [Y/n]  y 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">Requesting to rerun /home/ubuntu/certbot-auto with root privileges...
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Get:4 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 2s (125 kB/s)
Reading package lists... Done
Reading package lists... Done

............................................................

IMPORTANT NOTES:
 - <span style="color: #ff0000;">Congratulations! Your certificate and chain have been saved at</span>:
   /etc/letsencrypt/live/itreport.tk/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/itreport.tk/privkey.pem
   Your cert will expire on 2024-05-21. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot-auto
   again. To non-interactively renew *all* of your certificates, run
   "certbot-auto renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>&nbsp;</p>
<p>설치가 되면 마지막부분에 IMPORTANT NOTES: 에 Congratulations!이라고 시작하면서 HTTPS 인증서 파일 및 개인암호키가 저장되었다고 나옵니다. 또, expire on 2024-05-21 이라고 표시된 인증서 만료일도 나타납니다.</p>
<h2>12-6. 잘 설치 저장이 되었는지 확인해 보겠습니다.</h2>
<p>명령창에 sudo ls -al /etc/letsencrypt/live/도메인명 을 입력합니다.</p>
<p>아래처럼 나오면 정상적으로 SSL키가 발급되어 저장된 것입니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo ls -al /etc/letsencrypt/live/junewoo.com</span>
total 12
drwxr-xr-x 2 root root 4096 Feb 21 20:57 .
drwx------ 4 root root 4096 Dec 23 18:43 ..
lrwxrwxrwx 1 root root   35 Feb 21 20:57 cert.pem -&gt; ../../archive/junewoo.com/cert2.pem
lrwxrwxrwx 1 root root   36 Feb 21 20:57 chain.pem -&gt; ../../archive/junewoo.com/chain2.pem
lrwxrwxrwx 1 root root   40 Feb 21 20:57 fullchain.pem -&gt; ../../archive/junewoo.com/fullchain2.pem
lrwxrwxrwx 1 root root   38 Feb 21 20:57 privkey.pem -&gt; ../../archive/junewoo.com/privkey2.pem
-rw-r--r-- 1 root root  692 Dec 23 09:27 README
junewoo@cvilla:~$</code></pre>
<h2>12-7. 인증서 만료 시일을 확인해 보게습니다.</h2>
<p>명령창에 sudo certbot certificates -d 도메인명을 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo certbot certificates -d junewoo.com</span>
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following matching certs:
  Certificate Name: junewoo.com-0001
    Serial Number: 48543f944489b38b1c1db9898849009ae56
    Key Type: ECDSA
    Domains: junewoo.com
    Expiry Date: 2024-05-21 10:56:50+00:00 (VALID: 69 days)
    Certificate Path: /etc/letsencrypt/live/junewoo.com-0001/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/junewoo.com-0001/privkey.pem
  Certificate Name: junewoo.com
    Serial Number: 41c8011902b7b99fc364919f4c551da18ed
    Key Type: ECDSA
    Domains: junewoo.com www.junewoo.com
    Expiry Date: 2024-05-21 10:57:01+00:00 (VALID: 69 days)
    Certificate Path: /etc/letsencrypt/live/junewoo.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/junewoo.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
junewoo@cvilla:~$</code></pre>
<p>만료일 시 가 Expiry Date: 2024-05-21 10:57:01+00:00 (VALID: 69 days)로 나타납니다.</p>
<p>인증서 갱신은 나중에 워드프레스에 정말 간단한 SSL 플러그인을 설치하시면 자동으로 갱신이 됩니다.</p>
<p>이번에는 SSL 인증서를 웹서버인 Nginx에 적용해 보겠습니다.</p>
<h2>12-8. 인증서를 적용하기 위해 openssl을 사용하여 dhparam을 암호화 합니다.</h2>
<p>명령창에 sudo openssl dhparam -out /etc/nginx/dhparam.pem 4096 를 입력합니다.</p>
<p>진행 시간이 20~30분 정도 걸립니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo openssl dhparam -out /etc/nginx/dhparam.pem 4096</span>
Generating DH parameters, 4096 bit long safe prime, generator 2
This is going to take a long time
..............................+...................................................
............................+.....................................................
..................................................................................
....+..+............................+.............................................
..................................................................................
..................................................................................
.........................+........................................................
...........................................................+......................
.............................................+....................................
..................................................................................
..................................................................+...............
..................................................................................
.........................................+......................................+.
..................................................................................
..................................................................................
..............................................................................+...
.....+............................................................................
..................................................................................
.............................+............................+.......................
..................................................................................
........+.........................................................................
..........................................................+.......................
................................................................+...+.............
................+.....................+...........................................
........................................................++*++*++*</code></pre>
<p>드디어 dhparam.pem이 생성되었다면 이제 ssl.conf를 생성해 보겠습니다.</p>
<p>명령창에 sudo touch /etc/nginx/snippets/ssl.conf 와 sudo chmod 777 /etc/nginx/snippets/ssl.conf 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo touch /etc/nginx/snippets/ssl.conf</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chmod 777 /etc/nginx/snippets/ssl.conf</span></code></pre>
<h2>12-9. 생성된 ssl.conf에 보안설정문을 입력합니다.</h2>
<p>ssl.conf 보안설정문 입력을 위하여 Editplus로 접속하여 /etc/nginx/snippets/에 접속 ssl.conf 파일을 열어 아래 내용을 입력합니다.</p>
<p>또는 Putty 명령창에 sudo nano /etc/nginx/snippets/ssl.conf 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nano /etc/nginx/snippets/ssl.conf
</span></code></pre>
<p>아래 내용을 드래그 하신 후 CTRL + C 하시고 PuTTY화면에서 마우스 오른쪽을 눌러 붙이신 후 CTRL + X하시고 Yes을 누르신 다음 파일명이 나오면 Enter키를 누르시면 됩니다.</p>
<p>ssl_session_timeout 1d;<br />
ssl_session_cache shared:SSL:50m;<br />
ssl_session_tickets off;<br />
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br />
ssl_dhparam /etc/nginx/dhparam.pem;<br />
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;<br />
ssl_ecdh_curve secp384r1;<br />
ssl_prefer_server_ciphers on;<br />
ssl_stapling on;<br />
ssl_stapling_verify on;<br />
resolver 8.8.8.8 8.8.4.4;<br />
add_header Strict-Transport-Security &#8220;max-age=15768000; includeSubdomains; preload&#8221;;<br />
add_header X-Content-Type-Options nosniff;<br />
add_header X-Frame-Options &#8220;SAMEORIGIN&#8221;;</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><span style="color: #ff0000;"><code class="hljs">ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_dhparam /etc/nginx/dhparam.pem;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
ssl_ecdh_curve secp384r1;
ssl_prefer_server_ciphers on;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4;
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";</code></span></pre>
<h2>12-10. ssl.conf가 작성이 완료되면 수정할 수 없도록 권한을 변경합니다.</h2>
<p>명령창에 sudo chmod 644 /etc/nginx/snippets/ssl.conf 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chmod 644 /etc/nginx/snippets/ssl.conf</span></code></pre>
<p>&nbsp;</p>
<h2>12-11. 이제 nginx에 라우팅을 적용해 보겠습니다.</h2>
<p>전체적으로 HTTPS가 적용된 도메인으로 운영하기 위하여 /etc/nginx/sites-available/default 파일을 수정합니다.</p>
<p>내용이 복잡하기에 에디터로 수정하시는 것을 추천합니다.</p>
<p>아래 내용을 자신의 도메인 이름으로 변경하여 전체 내용을 복사(Ctrl+C) 붙여넣기(Ctrl+V)를 합니다.</p>
<p>제가 작성한 도메인은 junewoo.com 입니다. 해당 내용을 본인이 등록한 도메인 이름으로 변경해 주시면 됩니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs"># Default server configuration
#
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	# SSL configuration
	#
	 listen 443 ssl default_server;
	 listen [::]:443 ssl default_server;
	 ssl_certificate /etc/letsencrypt/live/junewoo.com/fullchain.pem;
         ssl_certificate_key /etc/letsencrypt/live/junewoo.com/privkey.pem;
	#
	# Note: You should disable gzip for SSL traffic.
	# See: https://bugs.debian.org/773332
	#
	# Read up on ssl_ciphers to ensure a secure configuration.
	# See: https://bugs.debian.org/765782
	#
	# Self signed certs generated by the ssl-cert package
	# Don't use them in a production server!
	#
	# include snippets/snakeoil.conf;

	root /var/www/html;

	# Add index.php to the list if you are using PHP
	index index.php index.html index.htm index.nginx-debian.html;

	server_name junewoo.com;

        include /etc/nginx/snippets/letsencrypt.conf;   ### .well-know/acme-challenge 알림

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri $uri/ =404;
	       if (!-e $request_filename) { 
                rewrite ^.*$ /index.php last;
                }	
	}

	# pass PHP scripts to FastCGI server

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php8.2-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
		include fastcgi_params;
		fastcgi_read_timeout 300;
	}

	location ~ /\.ht {
	    deny all;
	}
}

### HTTP (CNAME 연결 www.junewoo.com to junewoo.com ) ###
server {
    listen 80;
    listen [::]:80; 
    server_name www.junewoo.com;

    location / { 
        return 301 http://junewoo.com$request_uri;     ### http://junewoo.com 로 리다이렉팅 
    }
}

# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
#server {
#	listen 80;
#	listen [::]:80;
#
#	server_name example.com;
#
#	root /var/www/example.com;
#	index index.html;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}</code></pre>
<p>다음은 에디터 갭쳐 화면입니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1773" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-4.png?resize=860%2C1062&#038;ssl=1" alt="" width="860" height="1062" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-4.png?resize=243%2C300&amp;ssl=1 243w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-4.png?resize=829%2C1024&amp;ssl=1 829w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-4.png?resize=768%2C948&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-4.png?w=1099&amp;ssl=1 1099w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<h2>12-12. Nginx를 다시 재가동하고 사이트에서 확인해 봅니다.</h2>
<p>명령창에 sudo nginx -t 를 입력합니다.</p>
<p>명령창에 sudo service nginx restart 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nginx -t</span>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service nginx restart</span>
junewoo@cvilla:~$</code></pre>
<p>웹브라우저에서 확인해보면 HTTPS가 적용된 것을 확인할 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1778" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-2.png?resize=860%2C829&#038;ssl=1" alt="" width="860" height="829" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-2.png?resize=300%2C289&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-2.png?resize=1024%2C986&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-2.png?resize=768%2C739&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-2.png?w=1443&amp;ssl=1 1443w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>이상으로 길고도 힘든 SSL 설치 과정이었습니다.</p>
<p>마지막에서 홈 페이지에 적용이 잘 안되시면 나중에 워드프레스설치 후 &#8220;정말 간단한 SSL&#8221; 플러그인을 설치하시기를 추천합니다.</p>
<p>다음글은 MariaDB와 phpMyAdmin 의 설정입니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 13</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+12+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-12%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 12</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1742</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Fri, 08 Mar 2024 13:44:47 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[Nginx에 도메인 연결]]></category>
		<category><![CDATA[아사달에서 도메인 연결]]></category>
		<category><![CDATA[카페24에서 도메인 연결]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1679</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f5db16;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f5f5f0;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>Nginx에 도메인을 연결하는 과정은 여러 단계로 이루어집니다. 이 과정을 통해 사용자가 도메인 이름을 입력했을 때, Nginx 서버가 해당 요청을 처리하도록 설정할 수 있습니다. 아래에는 기본적인 도메인 연결 과정을 설명합니다.</p>
<p>도메인 등록 기관에서 도메인을 구매 후, 도메인의 DNS 설정에서 A 레코드를 서버의 외부접속 IP 주소로 설정하여 도메인이 해당 서버를 가리키도록 합니다.</p>
<p>Nginx에서는 가상 호스트를 서버 블록(server block)이라고 합니다. 도메인에 대한 요청을 처리하기 위해 새로운 서버 블록을 설정합니다.</p>
<p>a. Nginx의 설정 파일이 위치한 디렉토리(<code>/etc/nginx/sites-available/</code>)에 새로운 설정 파일을 생성합니다. 파일 이름은 도메인 이름으로 하는 것이 관리에 편리합니다.</p>
<p>b. 생성한 설정 파일에 서버 블록을 구성합니다. 다음은 기본적인 서버 블록 설정의 예시입니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">server {
    listen 80;
    server_name example.com www.example.com;

    root /var/www/example.com/html;
    index index.php index.html index.htm index.nginx-debian.html;

    location / {
        try_files $uri $uri/ =404;
    }
}
</code></pre>
<p>&nbsp;</p>
<h2>11-1. 아사달에서 도메인 연결하기</h2>
<p>아사달에서 도메인을 구매 시 ip 포워딩 서비스 신청(junewoo.com 도메인 과 개인 서버 접속 ip&lt;-개인 서버 외부 접속ip(iptime 공유기 외부 접속ip) ) 하시면 도메인 연결 서비스를 제공합니다.</p>
<p>아사달 접속 주소입니다. https://myinfo.asadal.com/domain/</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1707" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7.png?resize=860%2C806&#038;ssl=1" alt="" width="860" height="806" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7.png?resize=300%2C281&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7.png?resize=1024%2C959&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7.png?resize=768%2C719&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname7.png?w=1425&amp;ssl=1 1425w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>아래에 아사달 도메인 서비스의 내서비스 &gt; 호스팅 연장 클릭 하시면 IP 포워딩 신청이(필자의 경우) 되어있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1708" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?resize=859%2C418&#038;ssl=1" alt="" width="859" height="418" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?resize=300%2C146&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?resize=1024%2C500&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?resize=768%2C375&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?resize=1536%2C750&amp;ssl=1 1536w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?w=1887&amp;ssl=1 1887w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname8.png?w=1720&amp;ssl=1 1720w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>IP 포워딩 신청은 고객지원 &gt; 호스팅 문의 게시판에 직접 신청 하셔야 합니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1709" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?resize=859%2C553&#038;ssl=1" alt="" width="859" height="553" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?resize=300%2C193&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?resize=1024%2C660&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?resize=768%2C495&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?resize=1536%2C989&amp;ssl=1 1536w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?w=1916&amp;ssl=1 1916w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname9.png?w=1720&amp;ssl=1 1720w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>서비스 신청 후 서너 시간 뒤에 신청한 게시판에 &#8216;신청하신 *** 설정을 완료하였습니다&#8217; 댓글이 달리게 되면 되신겁니다.</p>
<p>설정이 잘 안되시면 고객센터에  문의 전화를 하시면, 전문 직원이 개인 서버 IP 포워딩에 대해 알려줍니다.</p>
<h2>11-2. 카페24에서 도메인 연결하기</h2>
<p>카페 24에서 구매한 도메인의 경우, 개인 서버로 ip 포워딩은 카페 24홈페이지에 접속해서 직접 설정할 수 있습니다.</p>
<p><a href="https://hosting.cafe24.com/?controller=myservice_domain_vservice&amp;method=dns" target="_blank" rel="noopener">https://hosting.cafe24.com/?controller=myservice_domain_vservice&amp;method=dns</a></p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1720" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?resize=860%2C605&#038;ssl=1" alt="" width="860" height="605" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?resize=300%2C211&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?resize=1024%2C721&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?resize=768%2C541&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?resize=1536%2C1082&amp;ssl=1 1536w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?w=1991&amp;ssl=1 1991w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname-3.png?w=1720&amp;ssl=1 1720w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>&nbsp;</p>
<p>카페 24 &gt; DNS 관리 &gt; 구매 도메인 체크 &gt; <span style="color: #ff0000;">서버 호스팅 DNS관리 &gt; -&gt; <span style="color: #0000ff;">DNS 관리</span> <span style="color: #000000;">로 들어갑니다.</span></span></p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1722" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?resize=860%2C516&#038;ssl=1" alt="" width="860" height="516" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?resize=300%2C180&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?resize=1024%2C615&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?resize=768%2C461&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?resize=1536%2C923&amp;ssl=1 1536w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?w=2014&amp;ssl=1 2014w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2-1.png?w=1720&amp;ssl=1 1720w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>호스트IP(A 레코드) 관리 체크&gt; + <span style="color: #339966;">A 레코드 추가</span> 버튼을 클릭하면 새 창이 뜹니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1717" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?resize=859%2C595&#038;ssl=1" alt="" width="859" height="595" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?resize=300%2C208&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?resize=1024%2C711&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?resize=768%2C533&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?resize=1536%2C1066&amp;ssl=1 1536w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?w=2011&amp;ssl=1 2011w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3-1.png?w=1720&amp;ssl=1 1720w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>aiutech.co.kr 는 구메한 도메인 이름이며, IP 포워딩 주소(개인 서버 외부 접속 ip &lt;- PC에서 my ip로 검색)를 입력합니다.</p>
<ul class="list_03 pl10 fs11 dot">
<li>설정하신 DNS정보는 약30분~1시간 후 반영됩니다.</li>
</ul>
<p>이 외에 도메인 관련 구매는 도메인 서비스 회사를 통해서 하며, 그 외 다른 DNS 설정은 본인이 등록하는 도메인 구매 회사의 도움말을 참조하시기 바랍니다.</p>
<h2>11-3. Nginx에 도메인 연결하기</h2>
<p>웹서버인 Nginx에 도메인에 대한 정보를 연결하여 서버의 어떤 위치로 연결하라는 라우팅 설정을 합니다.</p>
<p>Nginx의 라우팅 설정은 이전에 index.php 수정을 하였던 /etc/nginx/sites-available/default 에 위치해 있습니다.</p>
<p>#으로 되어 있는 주석을 제외하고 내용을 보면 현재 이렇게 되어 있습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /var/www/html;
	index index.php index.html index.htm index.nginx-debian.html;

	server_name _;

	location / {
		try_files $uri $uri/ =404;
	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php7.4-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
		include fastcgi_params;
		fastcgi_read_timeout 300;
	}

	location ~ /\.ht {
	    deny all;
	}
}</code></pre>
<p>여기서 본인이 구매한 도메인으로 적용하여 보겠습니다.</p>
<p>먼저 server_name _;에 도메인 주소를 적습니다. server_name junewoo.com;</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /var/www/html;
	index index.php index.html index.htm index.nginx-debian.html;

	<span style="color: #ff0000;">server_name junwqoo.com;</span></code></pre>
<p>EditPlus 에서  /etc/nginx/sites-available/default 수정이 안되시는 분은 파일 사용자 권한을 ubuntu가 가져올 수 있도록 하시기 바랍니다.</p>
<p>명령창에 sudo chgrp ubuntu /etc/nginx/sites-available/default 를 입력합니다.</p>
<p>명령창에 sudo chmod 775 /etc/nginx/sites-available/default 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ sudo chgrp ubuntu /etc/nginx/sites-available/default
junewoo@cvilla:~$ sudo chmod 775 /etc/nginx/sites-available/default</code></pre>
<p>작성을 완성하셨으면 Nginx 서버를 재 시작 합니다.</p>
<p>명령창에 sudo nginx -t 과 sudo service nginx restart 를 입력합니다.</p>
<p>sudo nginx -t를 입력했을 때, <b>~ </b>syntax is ok 와 <b>~ </b>test is successful 이 나오면 잘 수정이 된 것입니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
junewoo@cvilla:~$ </code></pre>
<p>이번에는 www를 연결해 보겠습니다.</p>
<h2>11-4. CNAME이라 불리는 서브 도메인이나, 도메인 앞의 www를 연결하는 방법입니다.</h2>
<p>http://junewoo.com 주소와 http://www.junewoo.com 주소가 반드시 일치한다는 법은 없습니다.</p>
<p>어느 사이트에서는 www는 영어로 kor은 한국어로 cn은 중국어로 앞에 붙여서 사용하기도 합니다.</p>
<p>이건 서브 도메인이라고 도메인 DNS 관리시에 Type A에 붙여서 사용하는 경우입니다.</p>
<p>여기서는 www를 CNAME으로 해서 target을 itreport.tk 로 잡았습니다.</p>
<p>이번에는 www.junewoo.com로 접속된 도메인은 junewoo.com으로 연결되도록 설정해 봅니다.</p>
<p>location ~ / location ~ /\.ht {<br />
deny all;<br />
}<br />
}<br />
하단 부에<br />
server {<br />
listen 80;<br />
listen [::]:80;<br />
server_name www.itreport.tk;</p>
<p>location / {<br />
return 301 http://junewoo.com$request_uri;     ### http://junewoo.com  로 리다이렉트<br />
}<br />
}</p>
<p>위 명령어를 EditPlus에서 defaul파일에 복사 붙여 넣기를 합니다.</p>
<p>명령어 구분을 하기 위하여 주석(###)을 먼저 붙이고 시작합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">     location ~ / location ~ /\.ht {
          deny all;
    }
}
### HTTP (CNAME 연결 www.junewoo.com to junewoo.com ) ###
server {
    listen 80;
    listen [::]:80; 
    server_name www.itreport.tk;       

    location / {  
        return 301 http://junewoo.com$request_uri;     ### http://junewoo.com  로 리다이렉트 
     }
}</code></pre>
<p>그러면 default 파일의 내용이 아래와 같이 됩니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs"># Default s그럼 default 파일의 내용이 아래와 같이 됩니다.erver configuration
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /var/www/html;
	index index.php index.html index.htm index.nginx-debian.html;

	server_name junewoo.com;

	location / {
		try_files $uri $uri/ =404;
		}
	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php8.3-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
		include fastcgi_params;
		fastcgi_read_timeout 300;
	}

	location ~ /\.ht {
	    deny all;
	}
}

### HTTP (CNAME 연결 www.junewoo.com to junewoo.com ) ###
 server {
    listen 80;
    listen [::]:80; 
    server_name www.junewoo.com;

    location / { 
        return 301 http://junewoo.com$request_uri;     ### http://junewoo.com 로 리다이렉팅 
    }
}</code></pre>
<p>작성을 완성한 뒤 Nginx 서버를 재 시작해 줍니다.</p>
<p>명령창에 sudo nginx -t 과 sudo service nginx restart 를 입력합니다.</p>
<p>다음으로 현재 없는 도메인 주소를 웹 브라우저에서 찾을 때 에러 표시 방법입니다.</p>
<h2>11-5. 도메인 주소가 변경되어 해당 내용이 없는 경우 보통 404 Error를 표시합니다 만, 여기 서는 특정 주소로 이동하도록 합니다.</h2>
<p>해당 인터넷 URL과 관련된 파일이 없을 경우에 무조건 나타내주는 Page를 이동시킬 수 있습니다.</p>
<p>아래 404 페이지 부분가 나타는데 이렇게 하지 않고 메인 페이지로 이동하도록 하는 경우입니다.</p>
<p>try_files $uri $uri/ =404; 하단에 아래와 같이 작성해 줍니다.</p>
<p>if (!-e $request_filename) {<br />
rewrite ^.*$ /index.php last;<br />
}</p>
<p>그러면 index.php로 이동하게 됩니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">	server_name junewoo.com;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri $uri/ =404;
	       <span style="color: #ff0000;">if (!-e $request_filename) { 
                rewrite ^.*$ /index.php last;
                }</span>	
	}</code></pre>
<p>작성을 완성하셨으면 Nginx 서버를 재 시작합니다.</p>
<p>명령창에 sudo nginx -t 과 sudo service nginx restart 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nginx -t</span>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service nginx restart</span></code></pre>
<p>다음에는 HTTPS 적용을 위한 SSL 인증서 발급 받기입니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. 개인 서버에 Ubuntu LEMP WORDPRESS 설치하기</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+11+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-11%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 11</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1679</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Thu, 07 Mar 2024 16:55:41 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[MariaDB 관리 도구 phpMyAdmin 설치]]></category>
		<category><![CDATA[phpMyAdmin 5.2.zip 압축을 풀기]]></category>
		<category><![CDATA[Putty 명령어 창에서 phpMyAdmin을 다운]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1636</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #e6e607;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f5f5f2;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>phpMyAdmin은 MySQL 및 MariaDB 데이터베이스를 관리하기 위한 무료 소프트웨어 도구입니다. 웹 기반 인터페이스를 통해 사용자는 데이터베이스를 손쉽게 관리할 수 있습니다. 이 도구는 데이터베이스의 생성, 수정, 삭제, 백업 등 다양한 작업을 지원합니다. 또한, SQL 문을 직접 실행하거나 사용자 권한을 관리하는 기능도 제공합니다.</p>
<p>phpMyAdmin은 PHP로 작성되었으며, 많은 호스팅 제공 업체가 데이터베이스 관리를 위해 이 도구를 제공합니다. 그 사용의 용이성으로 인해 개발자, 시스템 관리자 및 웹 사이트 제작자 사이에서 널리 사용됩니다.</p>
<h2>10-1. MariaDB 관리 도구 phpMyAdmin 설치하기</h2>
<p>phpMyAdmin 공식 페이지에 들어가 최신버전을 확인합니다.</p>
<p>phpMyAdmin Download 페이지에 접속합니다. : <a href="https://www.phpmyadmin.net/downloads/" target="_blank" rel="noopener">https://www.phpmyadmin.net/downloads/</a></p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1651" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3.png?resize=860%2C1000&#038;ssl=1" alt="" width="860" height="1000" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3.png?resize=258%2C300&amp;ssl=1 258w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3.png?resize=881%2C1024&amp;ssl=1 881w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3.png?resize=768%2C892&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname3.png?w=1197&amp;ssl=1 1197w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>phpMyAdmin 최신 버전의 zip파일을 찾습니다.</p>
<p>현재 최신 버전은 phpMyAdmin 5.2.1 버전으로 나옵니다.</p>
<h2>10-2. Putty 명령어 창에서  phpMyAdmin을 다운로드 합니다.</h2>
<p>명령창에 wget -O /var/www/phpmyadmin5.2.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ wget -O /var/www/phpmyadmin5.2.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip
--2024-03-08 10:13:23--  https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip
Resolving files.phpmyadmin.net (files.phpmyadmin.net)... 212.102.50.27, 212.102.50.8, 212.102.50.24, ...
Connecting to files.phpmyadmin.net (files.phpmyadmin.net)|212.102.50.27|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15096155 (14M) [application/zip]
Saving to: ‘/var/www/phpmyadmin5.2.zip’

/var/www/phpmyadmin 100%[===================&gt;]  14.40M  8.13MB/s    in 1.8s

2024-03-08 10:13:27 (8.13 MB/s) - ‘/var/www/phpmyadmin5.2.zip’ saved [15096155/15096155]

junewoo@cvilla:~$</code></pre>
<p>명령창에서 ls /var/www 를 입력하시면 파일이 다운로드 된 것을 보실 수 있습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ls /var/www</span>
html  letsencrypt  phpMyAdmin-5.2.1-all-languages  <span style="color: #ff0000;">phpmyadmin5.2.zip</span>
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>10-3. 다운받은 phpMyAdmin 5.2.zip 압축을 풀어 봅니다.</h2>
<p>명령창에 unzip /var/www/phpmyadmin5.2.zip -d /var/www 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ unzip /var/www/phpmyadmin5.2.zip -d /var/www</code></pre>
<p>/var/www 폴더에 phpMyAdmin4.9파일이 압축이 풀어집니다.</p>
<h2>10-4. 압축이 잘 풀어졌는지 확인합니다.</h2>
<p>명령창에 ls /var/www 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ls /var/www</span>
html  letsencrypt  phpMyAdmin-5.2.1-all-languages  phpmyadmin5.2.zip
junewoo@cvilla:~$</code></pre>
<p>압축해제가 잘 된 것을 확인할 수 있습니다.</p>
<h2>10-5. 웹 브라우저에서 phpMyAdmin 접속을 위한 설정</h2>
<p>/var/www가 아니고 /var/www/html 에 설치하면 홈페이지에서 보이도록 됩니다.<br />
http://도메인주소(또는 IP주소)/phpMyAdmin 의 경우 이런 형태로 설치되는데&#8230; 그럼 보안에 문제가 생길 수 있습니다.<br />
해당 부분의 해결을 위하여 폴더를 다른 곳으로 지정해주고 임의 주소를 연결해주는 방식을 만들겠습니다.</p>
<p>접속주소는  보안상 안전한 symbolic link로 만들어 줍니다.</p>
<p>명령창에 ln -s /var/www/phpMyAdmin-5.2.1-all-languages /var/www/html/testpagedb 를 입력합니다.</p>
<p>여기서 ln -s 원본 폴더가 있는 절대 경로, 접속이 가능한 가상 경로 로 만들어집니다.</p>
<p>원본 폴더가 있는 절대 경로 : /var/www/phpMyAdmin-5.2.1-all-languages</p>
<p>접속이 가능한 가상 경로 : /var/www/html/testpagedb</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">ln -s /var/www/phpMyAdmin-5.2.1-all-languages /var/www/html/testpagedb</span></code></pre>
<p>웹에서 접속해보면, http://도메인 또는 IP/testpagedb 로 접속 할 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1659" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4.png?resize=859%2C722&#038;ssl=1" alt="" width="859" height="722" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4.png?resize=300%2C252&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4.png?resize=1024%2C859&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname4.png?w=1433&amp;ssl=1 1433w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>이제 phpMyAdmin이 접속 되었으므로 로그 인을 해 보겠습니다.</p>
<p>id는 root이며, pass는 MariaDB 설치 시 정한 비번입니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1661" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5.png?resize=859%2C827&#038;ssl=1" alt="" width="859" height="827" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5.png?resize=300%2C289&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5.png?resize=1024%2C986&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5.png?resize=768%2C740&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname5.png?w=1415&amp;ssl=1 1415w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p id="OCI-9-2" data-ke-size="size20">phpMyAdmin에 접속 했을 때 몇 가지 문제가 나타날 수 있습니다.</p>
<p data-ke-size="size20">노란색 주의 표시는 무시해도 되지만, 빨간색 주의 표시는 해결을 해야 표시가 사라집니다.</p>
<p data-ke-size="size20">필자의 경우 빨간색 주의 표시가 없는 상태입니다.</p>
<h2 data-ke-size="size20">10-6. 몇 가지 주의 표시를 제거해 보겠습니다.</h2>
<h3>10-6-1. phpMyAdmin 비활성화 부분 제거하기</h3>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1662" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2.jpg?resize=857%2C60&#038;ssl=1" alt="" width="857" height="60" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2.jpg?resize=300%2C21&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2.jpg?resize=1024%2C71&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2.jpg?resize=768%2C54&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-2.jpg?w=1032&amp;ssl=1 1032w" sizes="auto, (max-width: 857px) 100vw, 857px" /></p>
<p>phpMyAdmin 접속 시 위 문구가 보이고 <u>여기</u> 라는 부분을 클릭하실 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1664" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3.jpg?resize=859%2C126&#038;ssl=1" alt="" width="859" height="126" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3.jpg?resize=300%2C44&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3.jpg?resize=1024%2C149&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3.jpg?resize=768%2C112&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-3.jpg?w=1031&amp;ssl=1 1031w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>위 화면이 나타나면 여기서 <u>Create</u> 를 클릭합니다.</p>
<p>그리고 화면이 전환되며 phpMyAdmin의 왼쪽 메뉴에 phpmyadmin이 생기고 오른쪽에는 모든 항목이 OK라고 녹색불이 나타납니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1666" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4.jpg?resize=859%2C839&#038;ssl=1" alt="" width="859" height="839" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4.jpg?resize=300%2C293&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4.jpg?resize=768%2C749&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-4.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>다시 메인으로 가 보시면 해당 문구가 사라진 것을 알 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1668" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-5.jpg?resize=860%2C645&#038;ssl=1" alt="" width="860" height="645" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-5.jpg?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-5.jpg?resize=768%2C575&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-5.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<h3>10-6-2. 암호화 문자열(blowfish_secret) 설정</h3>
<p>EditPlus에서 /var/www/phpMyAdmin-5.2.1-all-languages/config.sample.inc.php 에 접속하셔서 우선 해당 파일을 클릭하신 후 이름 변경을 합니다.</p>
<p>변경할 이름 : config.inc.php</p>
<p>명령창에 mv /var/www/phpMyAdmin-5.2.1-all-languages/config.sample.inc.php /var/www/phpMyAdmin-5.2.1-all-languages/config.inc.php 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$: <span style="color: #ff0000;">mv /var/www/phpMyAdmin-5.2.1-all-languages/config.sample.inc.php /var/www/phpMyAdmin-5.2.1-all-languages/config.inc.php</span></code></pre>
<p>그 후에 16번째 줄에 위치한 내용의 $cfg[&#8216;blowfish_secret&#8217;] = &#8221; 에서 &#8221; 안에 암호화 물자열을 넣어주면 됩니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1671" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6.png?resize=859%2C782&#038;ssl=1" alt="" width="859" height="782" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6.png?resize=300%2C273&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6.png?resize=1024%2C933&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6.png?resize=768%2C700&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname6.png?w=1112&amp;ssl=1 1112w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>그다음  phpMyAdmin에 들어가 Home버튼을 누르면 다시 로그인하라고 나옵니다.</p>
<p>다시 로그인하면 해당 에러 메시지가 나타나지 않습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1673" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-6.jpg?resize=860%2C605&#038;ssl=1" alt="" width="860" height="605" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-6.jpg?resize=300%2C211&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-6.jpg?resize=1024%2C720&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-6.jpg?resize=768%2C540&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-6.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>The $cfg[‘TempDir’] (./tmp/) is not accessible. 을 해결해 보겠습니다.</p>
<h3>10-6-3. 임시디렉토리 tmp 폴더 만들기 입니다.</h3>
<p>명령 창에서 mkdir /var/www/phpMyAdmin-5.2.1-all-languages/tmp<br />
sudo chgrp www-data /var/www/phpMyAdmin-5.2.1-all-languages/tmp<br />
sudo chmod 775 /var/www/phpMyAdmin-5.2.1-all-languages/tmp  을 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ mkdir /var/www/phpMyAdmin-5.2.1-all-languages/tmp
sudo chgrp www-data /var/www/phpMyAdmin-5.2.1-all-languages/tmp
sudo chmod 775 /var/www/phpMyAdmin-5.2.1-all-languages/tmp</code></pre>
<p>그리고 phpMyAdmin에서 홈버튼을 누르면 다시 로그인하라고 합니다. 로그인 후 화면을 보면 에러 메시지가 없는 것을 확인하실 수 있습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1676" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-7.jpg?resize=860%2C564&#038;ssl=1" alt="" width="860" height="564" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-7.jpg?resize=300%2C197&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-7.jpg?resize=1024%2C671&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-7.jpg?resize=768%2C503&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-7.jpg?w=1200&amp;ssl=1 1200w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>빨간 색 주의 표시가 사라진 phpMyAdmin 입니다.</p>
<p>다음 글은 도메인을 연결하는 설정입니다.</p>
<h2><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-11/">11. 개인 서버에 Ubuntu LEMP WORDPRESS 설치하기</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+10+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-10%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 10</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1636</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Thu, 07 Mar 2024 12:16:25 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[apt update와 upgrade가 완료 후 mariadb를 설치]]></category>
		<category><![CDATA[MariaDB를 설치]]></category>
		<category><![CDATA[php-mysql 모듈을 설치]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1612</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #e8dd07;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f5f5f0;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>MariaDB는 MySQL 데이터베이스 관리 시스템의 포크(fork)이며, 오픈 소스 커뮤니티 주도의 프로젝트입니다. MySQL의 원 개발자인 몬티 와이드니어스(Monty Widenius)가 주도하여 2009년에 시작되었습니다. MariaDB는 MySQL과의 호환성을 유지하면서도 여러 가지 새로운 기능과 개선된 성능을 제공합니다.</p>
<p>MariaDB는 MySQL의 대안으로 널리 인정받고 있으며, 오픈 소스 데이터베이스 솔루션으로서 지속적으로 발전하고 있습니다. MySQL 사용자 뿐만 아니라 새로운 프로젝트를 시작하는 개발자들에게도 매력적인 선택이 될 수 있습니다.</p>
<h2>9-1. 이번에는 MariaDB를 설치해 보겠습니다.</h2>
<p>마리아DB에 대한 apt 캐시 정책을 알아보겠습니다.</p>
<p>명령창에서 sudo apt-cache policy mariadb-server 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy mariadb-server</span>
mariadb-server:
  Installed: (none)
  Candidate: 1:10.6.16-0ubuntu0.22.04.1
  Version table:
 *** 1:10.6.16-0ubuntu0.22.04.1 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        500 http://kr.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     1:10.6.7-2ubuntu1 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
junewoo@cvilla:~$</code></pre>
<p>현재 설치는 되어 있지 않으며 캐시 서버에는 10.6 버전이 설치되어 있습니다.</p>
<h2>9-2. MariaDB 페이지에 가서 확인해 보겠습니다.</h2>
<p>URL : <a href="https://mariadb.org/mariadb/all-releases/#11-2" target="_blank" rel="noopener">https://mariadb.org/mariadb/all-releases/#11-2</a></p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1620" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1.png?resize=859%2C796&#038;ssl=1" alt="" width="859" height="796" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1.png?resize=300%2C278&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1.png?resize=1024%2C949&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1.png?resize=768%2C712&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname1.png?w=1430&amp;ssl=1 1430w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>&nbsp;</p>
<p>위 페이지에 최신 MariaDB 11.3.2가 안정적 버전이라고 설명되어 있습니다.</p>
<h2>9-3. MariaDB 설치 환경을 설정해 보겠습니다.</h2>
<p>명령창에 sudo apt-get install software-properties-common 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-get install software-properties-common</span>
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.96.24.32.12).
software-properties-common set to manually installed.
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
</code></pre>
<p>다음 sudo apt-key adv &#8211;fetch-keys &#8216;https://mariadb.org/mariadb_release_signing_key.asc&#8217; 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'</span>
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.X8IB6fIcUY/gpg.1.sh --fetch-keys https://mariadb.org/mariadb_release_signing_key.asc
gpg: requesting key from 'https://mariadb.org/mariadb_release_signing_key.asc'
gpg: key F1656F24C74CD1D8: "MariaDB Signing Key &lt;signing-key@mariadb.org&gt;" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
</code></pre>
<p>그 다음 sudo add-apt-repository &#8216;deb [arch=amd64,arm64,ppc64el] https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic main&#8217; 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic main'</span>
Repository: 'deb [arch=amd64,arm64,ppc64el] https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic main'
Description:
Archive for codename: bionic components: main
More info: https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_ftp_harukasan_org_mariadb_repo_11_3_2_ubuntu-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_ftp_harukasan_org_mariadb_repo_11_3_2_ubuntu-jammy.list
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:4 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,433 kB]
Get:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [23.9 kB]
Get:7 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,053 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages [123 kB]
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
Err:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
  Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
Err:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable)
Fetched 2,862 kB in 38s (76.0 kB/s)
Reading package lists... Done
W: Failed to fetch https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu/dists/bionic/InRelease  Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
W: Failed to fetch https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.
junewoo@cvilla:~$</code></pre>
<p>MariaDB 설치를 위한 환경이 완료되었습니다.</p>
<h2>9-4. apt를 업데이트 및 업그레이드합니다.</h2>
<p>명령창에 sudo apt update 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt update</span>
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Hit:4 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,433 kB]
Get:7 http://kr.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [848 kB]
Get:8 http://kr.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [162 kB]
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
Err:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
  Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
Err:10 https://ftp.harukasan.org/mariadb/repo/11.3.2/ubuntu bionic InRelease
  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable)
Fetched 2,672 kB in 38s (70.9 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
15 packages can be upgraded. Run 'apt list --upgradable' to see them.
</code></pre>
<p>명령창에 <span style="color: #000000;">sudo apt upgrade</span> 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt upgrade</span>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libmagickwand-6.q16-6 libmagickcore-6.q16-6 imagemagick-6-common
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  dpkg libgpgme11
The following packages will be upgraded:
  php8.2-bcmath php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd
  php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline
  php8.2-xml php8.2-zip
13 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 5,962 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-zip amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [29.6 kB]
Get:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-xml amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [123 kB]
Get:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-readline amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [13.6 kB]
Get:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-opcache amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [370 kB]
Get:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-mysql amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [131 kB]
Get:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-mbstring amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [537 kB]
Get:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-intl amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [161 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-gd amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [32.9 kB]
Get:9 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-cli amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [1,887 kB]
Get:10 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-fpm amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [1,893 kB]
Get:11 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-curl amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [40.4 kB]
Get:12 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-bcmath amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [16.5 kB]
Get:13 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.2-common amd64 8.2.16-3+ubuntu22.04.1+deb.sury.org+1 [727 kB]
Fetched 5,962 kB in 36s (164 kB/s)
(Reading database ... 113852 files and directories currently installed.)
Preparing to unpack .../00-php8.2-zip_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-zip (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../01-php8.2-xml_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-xml (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../02-php8.2-readline_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-readline (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../03-php8.2-opcache_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-opcache (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../04-php8.2-mysql_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-mysql (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../05-php8.2-mbstring_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-mbstring (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../06-php8.2-intl_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-intl (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../07-php8.2-gd_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-gd (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../08-php8.2-cli_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-cli (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../09-php8.2-fpm_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-fpm (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../10-php8.2-curl_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-curl (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../11-php8.2-bcmath_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-bcmath (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Preparing to unpack .../12-php8.2-common_8.2.16-3+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.2-common (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) over (8.2.15-1+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-common (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-mysql (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-bcmath (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-zip (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-opcache (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-readline (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-mbstring (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-intl (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-curl (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-xml (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-gd (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-cli (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-fpm (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for php8.2-cli (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Processing triggers for php8.2-fpm (8.2.16-3+ubuntu22.04.1+deb.sury.org+1) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
junewoo@cvilla:~$
</code></pre>
<p>중간에 Do you want to continue? [Y/n]  물으면 Y라고 답합니다.</p>
<h2>9-5. apt update와 upgrade가 완료 후 mariadb를 설치합니다.</h2>
<p>중간에 After this operation, 199 MB of additional disk space will be used. 라면서 이어서 설치하겠냐고 물으면, Do you want to continue? [Y/n]  Y라고 답합니다.</p>
<p>명령창에서 sudo apt install mariadb-server 를 입력합니다</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt install mariadb-server</span>
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  grub-pc-bin libicu60
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  galera-4 libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libfcgi-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmariadb3 libmysqlclient20 libterm-readkey-perl
  libtimedate-perl liburi-perl mariadb-client-11.3 mariadb-client-core-11.3 mariadb-common mariadb-server-11.3 mariadb-server-core-11.3 mysql-common socat
Suggested packages:
  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx mariadb-test tinyca
The following NEW packages will be installed:
  galera-4 libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libfcgi-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmariadb3 libmysqlclient20 libterm-readkey-perl
  libtimedate-perl liburi-perl mariadb-client-11.3 mariadb-client-core-11.3 mariadb-common mariadb-server mariadb-server-11.3 mariadb-server-core-11.3
  mysql-common socat
0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.0 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libdbi-perl amd64 1.640-1 [724 kB]
Get:2 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic/main ppc64el mysql-common all 1:10.4.13+maria~bionic [5556 B]
Get:3 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libaio1 amd64 0.3.110-5ubuntu0.1 [6476 B]
Get:4 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 socat amd64 1.7.3.2-2ubuntu2 [342 kB]
Get:5 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-tagset-perl all 3.20-3 [12.1 kB]
Get:6 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 liburi-perl all 1.73-1 [77.2 kB]
Get:7 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-parser-perl amd64 3.72-3build1 [85.9 kB]
Get:8 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libcgi-pm-perl all 4.38-1 [185 kB]
Get:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic/main ppc64el mariadb-common all 1:10.4.13+maria~bionic [3528 B]
Get:10 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libfcgi-perl amd64 0.78-2build1 [32.8 kB]
Get:11 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libcgi-fast-perl all 1:2.13-1 [9940 B]
Get:12 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmysqlclient20 amd64 5.7.30-0ubuntu0.18.04.1 [690 kB]
Get:13 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic/main amd64 galera-4 amd64 26.4.4-bionic [9443 kB]
Get:14 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 libdbd-mysql-perl amd64 4.046-1 [82.0 kB]
Get:15 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libencode-locale-perl all 1.05-1 [12.3 kB]
Get:16 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-template-perl all 2.97-1 [59.0 kB]
Get:17 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libtimedate-perl all 2.3000-2 [37.5 kB]
Get:18 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-date-perl all 6.02-1 [10.4 kB]
Get:19 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libio-html-perl all 1.001-1 [14.9 kB]
Get:20 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 liblwp-mediatypes-perl all 6.02-1 [21.7 kB]
Get:21 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-message-perl all 6.14-1 [72.1 kB]
Get:22 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 libterm-readkey-perl amd64 2.37-1build1 [24.4 kB]
Get:23 https://ftp.harukasan.org/mariadb/repo/11.3/ubuntu bionic/main amd64 libmariadb3 amd64 1:11.3.23+maria~bionic [148 kB]
Get:24 https://ftp.harukasan.org/mariadb/repo/11.3/ubuntu bionic/main amd64 mariadb-client-core-10.4 amd64 1:11.3.23+maria~bionic [782 kB]
Get:25 https://ftp.harukasan.org/mariadb/repo/11.3/ubuntu bionic/main amd64 mariadb-client-10.4 amd64 1:11.3.23+maria~bionic [1173 kB]
Get:26 https://ftp.harukasan.org/mariadb/repo/11.3/ubuntu bionic/main amd64 mariadb-server-core-10.4 amd64 1:11.3.23+maria~bionic [6310 kB]
Get:27 https://ftp.harukasan.org/mariadb/repo/11.3/ubuntu bionic/main amd64 mariadb-server-10.4 amd64 1:11.3.23+maria~bionic [4663 kB]
Get:28 https://ftp.harukasan.org/mariadb/repo/11.3/ubuntu bionic/main ppc64el mariadb-server all 1:11.3.23+maria~bionic [3184 B]
Fetched 25.0 MB in 58s (429 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 101364 files and directories currently installed.)
Preparing to unpack .../0-mysql-common_1%3a11.3.23+maria~bionic_all.deb ...
Unpacking mysql-common (1:11.3.23+maria~bionic) ...
</code></pre>
<p>&nbsp;</p>
<h2>9-6. MariaDB가 잘 설치 되었는지 확인합니다.</h2>
<p>명령창에서 service mysql status 를 입력합니다.</p>
<p>정상적으로 설치 되었으면 Active : active (runnging) 라고 뜹니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$  <span style="color: #ff0000;">service mysql status</span>
● mariadb.service - MariaDB 10.6.16 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor prese&gt;
     <span style="color: #ff0000;">Active: active (running)</span> since Wed 2024-03-06 15:08:19 KST; 1 day 9h ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 83564 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 16 (limit: 9032)
     Memory: 178.4M
        CPU: 12min 18.938s
     CGroup: /system.slice/mariadb.service
             └─83564 /usr/sbin/mariadbd

Mar 06 15:08:19 cvilla mariadbd[83564]: Version: '10.6.16-MariaDB-0ubuntu0.22.0&gt;
Mar 06 15:08:19 cvilla systemd[1]: Started MariaDB 10.6.16 database server.
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83580]: Upgrading MySQL tables i&gt;
Mar 06 15:08:19 cvilla mariadbd[83564]: 2024-03-06 15:08:19 0 [Note] InnoDB: Bu&gt;
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83583]: Looking for 'mariadb' as&gt;
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83583]: Looking for 'mariadb-che&gt;
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83583]: This installation of Mar&gt;
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83583]: There is no need to run &gt;
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83583]: You can use --force if y&gt;
Mar 06 15:08:19 cvilla /etc/mysql/debian-start[83591]: Checking for insecure ro&gt;
lines 1-23/23 (END)
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>9-7. 중간 중간 MaridDB 설치시 암호를 묻습니다.</h2>
<p>명령창에서 sudo mysql_secure_installation 를 입력합니다. 그러면 아직 암호가 없어 암호를 생성하기 시작합니다.</p>
<ul data-ke-list-type="disc">
<li>Enter current password for root (enter for none): (Enter 키)</li>
<li>Switch to unix_socket authentication [Y/n] n</li>
<li><b></b>Change the root password? [Y/n] y</li>
<li>New password: MariaDB에 사용할 암호를 넣으세요.</li>
<li>Re-enter new password: MariaDB에 사용할 암호를 한번 더 넣으세요.</li>
<li>Remove anonymous users? [Y/n] y</li>
<li>Disallow root login remotely? [Y/n] n</li>
<li>Remove test database and access to it? [Y/n] y</li>
<li>Reload Privilege tables now? [Y/n]y</li>
</ul>
<p>진행하고 나서 Thanks for using MariaDB! 라고 문구가 뜨면 됩니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo mysql_secure_installation</span>

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n
 ... skipping.

You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] n
 ... skipping.

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!</code></pre>
<h2>9-8. MariaDB를 설치한 후 php-mysql 모듈을 설치합니다.</h2>
<p>명령창에 sudo apt-cache policy php8.3-mysql 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy php8.3-mysql</span>
[sudo] password for junewoo:
php8.3-mysql:
  Installed: 8.3.3-1+ubuntu22.04.1+deb.sury.org+1
  Candidate: 8.3.3-1+ubuntu22.04.1+deb.sury.org+1
  Version table:
 *** 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 500
        500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
junewoo@cvilla:~$</code></pre>
<p>현재 설치가 된 것으로 나오고 있습니다.</p>
<p>혹시 설치가 되지 않았다고 Installed : (none)라고 뜨신다면</p>
<p>명령창에 sudo apt-get install php8.3-mysql 를 입력하여 설치합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-get install php8.3-mysql</span>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php8.3-mysql is already the newest version (8.3.3-1+ubuntu22.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>9-9. MariaDB에서 중요한 테이블 언어셋 기본값을 설정하겠습니다.</h2>
<p>언어값이 다르면 글자가 깨져 보인다 거나 이모지가 깨져서 나옵니다.</p>
<p>MariaDB 환경설정 위치는 /etc/mysql/conf.d/ 에 파일명이 mariadb.cnf로 있습니다.</p>
<p>mysqld_safe_syslog.cnf 파일만 있다면 신규로 생성 제작합니다.</p>
<p>명령창에 sudo touch /etc/mysql/conf.d/mariadb.cnf 를 입력합니다.</p>
<p>명령창에 sudo nano /etc/mysql/conf.d/mariadb.cnf 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo touch /etc/mysql/conf.d/mariadb.cnf</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nano /etc/mysql/conf.d/mariadb.cnf</span></code></pre>
<p>명령 입력 후 nano에디터의 빈 화면 창이 보입니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1631" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2.png?resize=859%2C544&#038;ssl=1" alt="" width="859" height="544" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2.png?resize=768%2C486&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname2.png?w=824&amp;ssl=1 824w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">[client]
default-character-set=utf8mb4

[mysql]
default-character-set=utf8mb4

[mysqld]
collation-server = utf8mb4_unicode_ci
character-set-server = utf8mb4
collation_server = utf8mb4_unicode_ci
character_set_server = utf8mb4</code></pre>
<p>위 내용을 입력 후 드래그 해서 복사(마우스 우 버튼)하신 후 PuTTY에서 마우스 오른쪽 버튼을 누르시면 붙여 넣기가 쉽게 됩니다.</p>
<p>nano 실행 창 에서 CTRL + X 하신 후 Y버튼 그리고 파일명이 나오면 Enter를 누릅니다.</p>
<p>명령창에 sudo service mysql restart 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service mysql restart</span>
junewoo@cvilla:~$</code></pre>
<h2>9-10. 우분투 시스템을 재부팅 해야 합니다.</h2>
<p>명령창에 sudo shutdown now -r 를 입력합니다.</p>
<pre id="code_1590834977703" class="html xml" data-ke-language="html" data-ke-type="codeblock"><code><code class="hljs">junewoo@cvilla:~$</code> <span style="color: #ff0000;">sudo shutdown now -r</span></code></pre>
<p>우분투를 재부팅하지 않으면 새로 접속 시에 *** System restart required *** 라는 문구가 나타나며 재부팅 하라는 메시지가 나타납니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">Using username "ubuntu".
Authenticating with public key "              " from agent
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.0.0-1014-oracle x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sat Mar 30 19:31:45 KST 2024

  System load:  0.0               Processes:           125
  Usage of /:   5.0% of 44.97GB   Users logged in:     0
  Memory usage: 40%               IP address for ens3: 
  Swap usage:   0%


8 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: Sat Mar 30 19:28:35 2024 from 
junewoo@cvilla:~$</code></pre>
<p>여기까지 가장 힘든 DB설치까지 마치셨습니다.</p>
<p>다음은 DB를 편하게 관리할 수 있는 phpMyAdmin을 설치해 보겠습니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. 개인 서버에 Ubuntu LEMP WORDPRESS 설치하기</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+9+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-9%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 9</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1612</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Wed, 06 Mar 2024 16:55:31 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[default 파일에서 index.php를 추가]]></category>
		<category><![CDATA[개인 서버에 php8(php8.3)을 설치하기]]></category>
		<category><![CDATA[자주 쓰이는 php8.3 모듈을 설치]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1558</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #dfeb07;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f5f5f2;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>PHP7과 PHP8는 몇 가지 차이점이 있습니다. 1.성능 향상, 2.새로운 기능 추가, 3.타입 시스템 개선, 4.문법 개선 등의 차이점이 있습니다. 이러한 변화는 PHP 애플리케이션의 성능을 크게 향상 시키고, 개발자들이 더 효율적이고 안전한 코드를 작성할 수 있도록 도와줍니다.</p>
<ul>
<li>PHP 7 : Zend Engine 3을 도입하여 PHP 5.6 대비 약 2배의 성능 향상을 제공합니다. 메모리 사용량도 줄어듭니다.</li>
<li>PHP 7 : 타입 선언이 강화되어 스칼라 타입(예: int, float, string, bool)을 함수의 매개변수와 반환 값에 사용할 수 있게 되었습니다. 또한, 엄격한 타입 모드(strict mode)를 지원합니다.</li>
<li>PHP 8 : JIT(Just In Time) 컴파일러가 도입되어 특정 상황에서 성능이 크게 향상될 수 있습니다. 특히, CPU 바운드 연산에서 그 차이가 두드러집니다.</li>
<li>PHP 8 : 유니온 타입, mixed 타입 등이 추가되어 더욱 유연한 타입 선언이 가능해졌습니다. 또한, 이름이 있는 인자(named arguments), match 표현식 등 새로운 문법이 도입되어 코드의 가독성과 유지 보수성이 향상되었습니다.</li>
</ul>
<h2>8-1. Nginx 서버에 PHP8 설치를 하겠습니다.</h2>
<p>현재 서버 상태를 확인하기 위해서, 명령창에 sudo apt-cache policy php 라고 입력합니다.</p>
<pre id="code_1590813649608" class="html xml" data-ke-language="html" data-ke-type="codeblock"><code>junewoo@cvilla:~$ sudo apt-cache policy php</code></pre>
<p>현재 인스톨은 되어 있지 않으며 8.3 버전에 대한 설치 정보를 가지고 있다고 합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">php:
  Installed: (none)
  Candidate: 2:8.3+94+ubuntu22.04.1+deb.sury.org+2
  Version table:
     2:8.3+94+ubuntu2 500
        500 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
</code></pre>
<h2>8-2. 최신 버전의 php를 설치하기 위하여 apt 정책을 최신으로 업데이트 해보겠습니다.</h2>
<p>명령창에 sudo add-apt-repository ppa:ondrej/php 라고 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo add-apt-repository ppa:ondrej/php</span>
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ jammy main'
Description:
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

IMPORTANT: The -backports is now required on older Ubuntu releases.

BUGS&amp;FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list
Adding deb entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list
Found existing deb-src entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list
Adding key to /etc/apt/trusted.gpg.d/ondrej-ubuntu-php.gpg with fingerprint 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:4 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,433 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1,523 kB]
Get:7 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,053 kB]
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Get:9 http://kr.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,217 kB]
Get:10 http://kr.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [220 kB]
Get:11 http://kr.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1,495 kB]
Get:12 http://kr.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [248 kB]
Ign:13 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:13 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:13 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Err:13 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
Fetched 7,419 kB in 38s (195 kB/s)
Reading package lists... Done
W: Failed to fetch https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<p>중간에 Press [ENTER] to continue or Ctrl-c to cancel adding it. 라고 나오는데 docker 등 필수 패키지 정보를 설치하겠다는 겁니다. 여기서 ENTER를 누르시면 됩니다.</p>
<h2>8-3. 다음으로 apt-get도 업데이트 합니다.</h2>
<p>명령창에 sudo apt-get update 라고 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-get update</span>
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Ign:6 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:6 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:6 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Err:6 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
Reading package lists... Done
W: Failed to fetch https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>8-4. 다음 서버의 php에 대한 apt 캐시 정책을 재확인합니다.</h2>
<p>명령창에 다시 한번 sudo apt-cache policy php 라고 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">Last login: Wed Mar  6 21:17:30 2024 from 192.168.0.1
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy php</span>
php:
  <span style="color: #000000;">Installed: (none)
  Candidate: 2:8.3</span>+94+ubuntu22.04.1+deb.sury.org+2
  Version table:
     2:8.3+94+ubuntu22.04.1+deb.sury.org+2 500
        500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages
     2:8.1+92ubuntu1 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>8-5. 최신 버전이 8.3로 확인 되어 php8(php8.3)을 설치해 보겠습니다.</h2>
<p>기타 8.2나 8.0 버전을 설치하시고자 하시면 php8.2-fpm이나 php8.0-fpm으로 변경하여 입력하시면 됩니다.</p>
<p>중간에 After this operation, 18.7 MB of additional disk space will be used. 라고 물으며 이어서 할 것이냐고 묻습니다.</p>
<p>Do you want to continue? [Y/n] 여기서 Y를 하시면 됩니다.</p>
<p>명령창에 sudo apt-get install php8.3-fpm 라고 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-get install php8.3-fpm</span>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  php8.3-cli php8.3-common php8.3-opcache php8.3-readline
Suggested packages:
  php-pear
The following NEW packages will be installed:
  php8.3-cli php8.3-common php8.3-fpm php8.3-opcache php8.3-readline
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 4,992 kB of archives.
After this operation, 22.5 MB of additional disk space will be used.
<span style="color: #ff0000;">Do you want to continue? [Y/n] y</span>
Get:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-common amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [755 kB]
Get:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-opcache amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [370 kB]
Get:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-readline amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [13.6 kB]
Get:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-cli amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [1,923 kB]
Get:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-fpm amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [1,929 kB]
Fetched 4,992 kB in 17s (286 kB/s)
Selecting previously unselected package php8.3-common.
(Reading database ... 113652 files and directories currently installed.)
Preparing to unpack .../php8.3-common_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-common (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-opcache.
Preparing to unpack .../php8.3-opcache_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-opcache (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-readline.
Preparing to unpack .../php8.3-readline_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-readline (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-cli.
Preparing to unpack .../php8.3-cli_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-cli (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-fpm.
Preparing to unpack .../php8.3-fpm_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-fpm (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.3-common (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/calendar.ini with new version

Creating config file /etc/php/8.3/mods-available/ctype.ini with new version

Creating config file /etc/php/8.3/mods-available/exif.ini with new version

Creating config file /etc/php/8.3/mods-available/fileinfo.ini with new version

Creating config file /etc/php/8.3/mods-available/ffi.ini with new version

Creating config file /etc/php/8.3/mods-available/ftp.ini with new version

Creating config file /etc/php/8.3/mods-available/gettext.ini with new version

Creating config file /etc/php/8.3/mods-available/iconv.ini with new version

Creating config file /etc/php/8.3/mods-available/pdo.ini with new version

Creating config file /etc/php/8.3/mods-available/phar.ini with new version

Creating config file /etc/php/8.3/mods-available/posix.ini with new version

Creating config file /etc/php/8.3/mods-available/shmop.ini with new version

Creating config file /etc/php/8.3/mods-available/sockets.ini with new version

Creating config file /etc/php/8.3/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/8.3/mods-available/sysvsem.ini with new version

Creating config file /etc/php/8.3/mods-available/sysvshm.ini with new version

Creating config file /etc/php/8.3/mods-available/tokenizer.ini with new version
Setting up php8.3-readline (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/readline.ini with new version
Setting up php8.3-opcache (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/opcache.ini with new version
Setting up php8.3-cli (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/php8.3 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar8.3 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar8.3 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/8.3/cli/php.ini with new version
Setting up php8.3-fpm (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/fpm/php.ini with new version
Created symlink /etc/systemd/system/multi-user.target.wants/php8.3-fpm.service → /lib/systemd/system/php8.3-fpm.service.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for php8.3-cli (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Processing triggers for php8.3-fpm (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>8-6. 다음으로 그 외 자주 쓰이는 php8.3 모듈을 설치해 보겠습니다.</h2>
<p>명령창에 sudo apt-get install php8.3-curl php8.3-gd php8.3-mysql php8.3-mbstring php8.3-xml php8.3-zip php8.3-imagick php8.3-bcmath -y zip unzip 를 입력합니다.</p>
<p>After this operation, 3509 kB of additional disk space will be used. 라고 물으며 이어서 설치 할 것인지 묻습니다.</p>
<p>Do you want to continue? [Y/n] 이렇게 나오면 Y를 선택합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-get install php8.3-curl php8.3-gd php8.3-mysql php8.3-mbstring php8.3-xml php8.3-zip php8.3-imagick php8.3-bcmath -y zip unzip</span>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zip is already the newest version (3.0-12build2).
unzip is already the newest version (6.0-26ubuntu3.2).
The following NEW packages will be installed:
  php8.3-bcmath php8.3-curl php8.3-gd php8.3-imagick php8.3-mbstring
  php8.3-mysql php8.3-xml php8.3-zip
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,043 kB of archives.
After this operation, 3,240 kB of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-imagick amd64 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 [125 kB]
Get:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-bcmath amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [16.8 kB]
Get:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-curl amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [40.5 kB]
Get:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-gd amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [32.9 kB]
Get:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-mbstring amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [538 kB]
Get:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-mysql amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [131 kB]
Get:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-xml amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [129 kB]
Get:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 php8.3-zip amd64 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 [30.4 kB]
Fetched 1,043 kB in 6s (184 kB/s)
Selecting previously unselected package php8.3-imagick.
(Reading database ... 113766 files and directories currently installed.)
Preparing to unpack .../0-php8.3-imagick_3.7.0-4+ubuntu22.04.1+deb.sury.org+2_amd64.deb ...
Unpacking php8.3-imagick (3.7.0-4+ubuntu22.04.1+deb.sury.org+2) ...
Selecting previously unselected package php8.3-bcmath.
Preparing to unpack .../1-php8.3-bcmath_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-bcmath (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-curl.
Preparing to unpack .../2-php8.3-curl_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-curl (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-gd.
Preparing to unpack .../3-php8.3-gd_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-gd (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-mbstring.
Preparing to unpack .../4-php8.3-mbstring_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-mbstring (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-mysql.
Preparing to unpack .../5-php8.3-mysql_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-mysql (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-xml.
Preparing to unpack .../6-php8.3-xml_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-xml (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.3-zip.
Preparing to unpack .../7-php8.3-zip_8.3.3-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.3-zip (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.3-curl (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/curl.ini with new version
Setting up php8.3-zip (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/zip.ini with new version
Setting up php8.3-mysql (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/mysqlnd.ini with new version

Creating config file /etc/php/8.3/mods-available/mysqli.ini with new version

Creating config file /etc/php/8.3/mods-available/pdo_mysql.ini with new version
Setting up php8.3-mbstring (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/mbstring.ini with new version
Setting up php8.3-bcmath (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/bcmath.ini with new version
Setting up php8.3-xml (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/dom.ini with new version

Creating config file /etc/php/8.3/mods-available/simplexml.ini with new version

Creating config file /etc/php/8.3/mods-available/xml.ini with new version

Creating config file /etc/php/8.3/mods-available/xmlreader.ini with new version

Creating config file /etc/php/8.3/mods-available/xmlwriter.ini with new version

Creating config file /etc/php/8.3/mods-available/xsl.ini with new version
Setting up php8.3-imagick (3.7.0-4+ubuntu22.04.1+deb.sury.org+2) ...
Setting up php8.3-gd (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...

Creating config file /etc/php/8.3/mods-available/gd.ini with new version
Processing triggers for php8.3-fpm (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Processing triggers for php8.3-cli (8.3.3-1+ubuntu22.04.1+deb.sury.org+1) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<h2>8-7. php8.3 설치가 완료 되었습니다. php 버전을 확인해 보겠습니다.</h2>
<p>명령어 창에서 php -v 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">php -v</span>
PHP 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Feb 15 2024 18:38:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.3-1+ubuntu22.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies
junewoo@cvilla:~$</code></pre>
<p>php8.3 버전이 잘 설치되었다고 나타납니다.</p>
<p>php8.3 fpm을 시작합니다.  명령어 창에서 sudo service php8.3-fpm start 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service php8.3-fpm</span> <span style="color: #ff0000;">start</span>
junewoo@cvilla:~$</code></pre>
<p>&nbsp;</p>
<p>지금까지 php는 설치되었으나, Nginx가 사실 웹 페이지(php)를 읽지는 못합니다. 웹서버인 Nginx가 php를 읽을 수 있도록 수정을 해 보겠습니다.</p>
<h2>8-8. Nginx의 사용 권한을 확인하고 권한을 설정합니다.</h2>
<p>명령어 창에서 ls -l /etc/nginx/sites-available/ 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ ls -l /etc/nginx/sites-available/ 
total 4
-rw-r--r-- 1 root root 2929 Dec 23 18:32 default
</code></pre>
<p>소유 권한도 root고 사용자 그룹도 root입니다.</p>
<p>명령어 창에서 sudo chgrp junewoo /etc/nginx/sites-available/default 를 입력 사용자 그룹 권한을 junewoo로 변경합니다.</p>
<p>명령어 창에서 sudo chmod 775 /etc/nginx/sites-available/default 를 입력하여 파일 권한을 775로 변경합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chgrp ubuntu /etc/nginx/sites-available/default</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo chmod 775 /etc/nginx/sites-available/default</span>
junewoo@cvilla:~$ ls -l /etc/nginx/sites-available/
total 4
-rw-rw-r-- 1 root junewoo 2929 Dec 23 18:38 default
</code></pre>
<p>이제 EditPlus에서 /etc/nginx/sites-available/ 에 위치한 default 파일을 수정할 수 있습니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ ls -l /etc/nginx/sites-avail
able/
total 4
-rwxrwxr-x 1 root junewoo 2929 Dec 23 18:40 default
junewoo@cvilla:~$</code></pre>
<h2>8-9. default 파일에서 index.php를 추가해 보겠습니다.</h2>
<p>EditPlus에서 /etc/nginx/sites-available/default 파일을 열어서 index.php를 추가합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or WordPress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	# SSL configuration
	#
	# listen 443 ssl default_server;
	# listen [::]:443 ssl default_server;
	#
	# Note: You should disable gzip for SSL traffic.
	# See: https://bugs.debian.org/773332
	#
	# Read up on ssl_ciphers to ensure a secure configuration.
	# See: https://bugs.debian.org/765782
	#
	# Self signed certs generated by the ssl-cert package
	# Don't use them in a production server!
	#
	# include snippets/snakeoil.conf;

	root /var/www/html;

	# Add index.php to the list if you are using PHP
	index <span style="color: #ff0000;">index.php</span> index.html index.htm index.nginx-debian.html;

	server_name _;</code></pre>
<p>그 다음 # pass PHP scripts to FastCGI server 아래에 PHP 설정파일의 경로와 보안설정을 추가합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">	# pass PHP scripts to FastCGI server
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php7.4-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
		include fastcgi_params;
		fastcgi_read_timeout 300;
	}

	location ~ /\.ht {
	    deny all;
	}</code></pre>
<p>• default파일에 도메인 및 https(SSL 보안설정) 추가 시, 조금 더 내용을 추가 할 예정입니다.</p>
<h2>8-10. nginx에 설정에 문제가 없는지 확인합니다.</h2>
<p>명령어 창에서 sudo nginx -t 를 입력합니다.</p>
<p>/etc/nginx/nginx.conf syntax is ok        &lt;- 에서 Nginx 설정의 문법이 문제 없다고 나옵니다.</p>
<p>/etc/nginx/nginx.conf test is successful  &lt;- 에서 Nginx가 정상적으로 test 동작한다고 나옵니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo nginx -t</span>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
junewoo@cvilla:~$</code></pre>
<p>다음으로 Nginx를 재구동 하겠습니다.</p>
<p>명령어 창에서 sudo systemctl reload nginx 를 입력합니다.</p>
<p>명령어 창에서 sudo service nginx restart 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo systemctl reload nginx</span>
junewoo@cvilla:~$ <span style="color: #ff0000;">sudo service nginx restart</span></code></pre>
<p>이제 Nginx가 재구동 되었습니다.</p>
<h2>8-11. php가 정상적으로 뜨는지 확인하겠습니다.</h2>
<p>EditPlus에서 /var/www/html/에서 index.php를 만들어 봅니다.</p>
<p>파일들이 있는 곳(index.nginx-debian.html)에서 마우스 오른쪽을 눌러 새로 작성을 누릅니다.</p>
<p>그 후에 index.php를 입력합니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1606" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C.jpg?resize=860%2C825&#038;ssl=1" alt="" width="860" height="825" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C.jpg?resize=300%2C288&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C.jpg?resize=1024%2C983&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C.jpg?resize=768%2C737&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C.jpg?w=1126&amp;ssl=1 1126w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>본문 안에 &lt;?php phpinfo(); ?&gt;를 입력하시면 됩니다. 모두 지우고 &lt;?php phpinfo(); ?&gt; 만 입력하셔도 됩니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1607" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1.jpg?resize=860%2C513&#038;ssl=1" alt="" width="860" height="513" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1.jpg?resize=300%2C179&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1.jpg?resize=1024%2C611&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1.jpg?resize=768%2C458&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-1.jpg?w=1173&amp;ssl=1 1173w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<h2>8-12. 이제 http://ipaddress/index.php 를 입력하고 확인합니다.</h2>
<p>php 8.3 버전이 설치된 화면이 나오면 됩니다. 아래 사진은 php 8.1.9 입니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1609" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/image-1.jpg?resize=860%2C490&#038;ssl=1" alt="" width="860" height="490" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/image-1.jpg?resize=300%2C171&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/image-1.jpg?resize=1024%2C585&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/image-1.jpg?resize=768%2C438&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/image-1.jpg?w=1151&amp;ssl=1 1151w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>다음에는 MariaDB를 설치해 보겠습니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-9/">9. 개인 서버에 Ubuntu LEMP WORDPRESS 설치하기</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+8+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-8%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 8</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1558</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Wed, 06 Mar 2024 12:50:59 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[chown은 change owner를 뜻함]]></category>
		<category><![CDATA[Nginx 페이지의 내용을 수정]]></category>
		<category><![CDATA[Ubuntu sever 폴더 권한 설정]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1535</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #edda05;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f7f7ed;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2 class="entry-title">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>Nginx는 그 성능과 유연성으로 인해 전 세계적으로 널리 사용되고 있으며, 많은 대형 웹사이트와 서비스에서 핵심적인 역할을 하고 있습니다. 몇 가지 특징을 살펴보면 다음과 같습니다.</p>
<p>1. 대량의 동시 연결을 효율적으로 처리합니다.<br />
2. Nginx는 매우 유연하며, 다양한 서버 환경에 맞게 세부적으로 설정할 수 있습니다.<br />
3. Nginx는 내장된 로드 밸런서를 통해 여러 서버 간에 트래픽을 분산시키며, 리버스 프록시 기능을 통해 백엔드 서버의 부하를 줄이고 보안을 강화할 수 있습니다.<br />
4. 정적 파일(HTML, CSS, JavaScript)과 동적 웹 페이지를 효율적으로 제공할 수 있습니다.<br />
5. SSL/TLS를 통한 보안 연결 제공, 인증서 관리, 보안 향상을 위한 다양한 설정이 가능합니다.</p>
<h2>7-1. Ubuntu sever 폴더 권한 설정</h2>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1549" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-13-1.jpg?resize=859%2C696&#038;ssl=1" alt="" width="859" height="696" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-13-1.jpg?resize=300%2C243&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-13-1.jpg?resize=1024%2C828&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-13-1.jpg?resize=768%2C621&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-13-1.jpg?w=1280&amp;ssl=1 1280w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>지난번 Nginx를 설치하고 나서 접속해 보았던 페이지입니다.</p>
<h2>7-2. Nginx 페이지의 내용을 수정해 보겠습니다.</h2>
<p>PC에서 EditPlus실행하고 서버에 접속합니다.</p>
<p>/var/www/html로 이동하여 index.nginx-debian.html 파일을 열어 소스를 수정해 보겠습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1550" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname13-1.png?resize=860%2C780&#038;ssl=1" alt="" width="860" height="780" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname13-1.png?resize=300%2C272&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname13-1.png?resize=1024%2C928&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname13-1.png?resize=768%2C696&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/noname13-1.png?w=1111&amp;ssl=1 1111w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>&lt;h1&gt;Welcome to nginx!&lt;/h1&gt; 이 부분을</p>
<p>&lt;h1&gt;Welcome to junewoo.com&lt;/h1&gt; 로 변경해 보겠습니다.</p>
<p>그 다음 저장을 해 보면 다음과 같은 창이 나옵니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1551" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-14-1.jpg?resize=859%2C473&#038;ssl=1" alt="" width="859" height="473" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-14-1.jpg?resize=300%2C165&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-14-1.jpg?w=396&amp;ssl=1 396w" sizes="auto, (max-width: 859px) 100vw, 859px" /></p>
<p>FTP 파일 전송이 실패했습니다, 이는 퍼미션 에러 입니다.</p>
<p>해당 부분은 해당 폴더의 권한이 없어서 일어나는 증상입니다.</p>
<h2>7-3. 이제 권한을 변경하여 보겠습니다.</h2>
<p>리눅스 명령어인 chown은 change owner를 뜻합니다. 그리고 -R은 해당 하위 폴더 및 파일까지 모두 한번에 적용하라는 뜻입니다.</p>
<p>명령창에서 sudo chown -R junewoo /var/www  를 입력합니다.</p>
<p>chown 변경될 소유자명, 폴더 또는 파일명을 입력하면 변경이 됩니다.</p>
<p>그리고 이어서 ls -l /var/www/ 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">root@junewoo:~# sudo chown -R junewoo /var/www
root@junewoo:~# ls -l /var/www/
total 4
drwxr-xr-x 2 junewoo root 4096 Mar 29 12:58 html</code></pre>
<p>변경하고 확인을 해 보니 소유자명만 바뀌었습니다.</p>
<h2>7-4. 사용자 그룹명을 바꾸어 보겠습니다.</h2>
<p>리눅스 명령어인 chgrp은 change group을 뜻합니다. 여기서도 역시 -R을 붙여서 하위 폴더 및 파일까지 적용하겠습니다.</p>
<p>명령창에서 sudo chgrp -R junewoo /var/www 입력합니다.</p>
<p>다음으로 ls -l /var/www/ 와 ls -l /var/www/html 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">root@junewoo:~# sudo chgrp -R junewoo /var/www
root@junewoo:~# ls -l /var/www/
total 4
drwxr-xr-x 2 junewoo junewoo 4096 Mar 29 12:58 html
root@junewoo:~# ls -l /var/www/html
total 4
-rw-r--r-- 1 junewoo junewoo 612 Mar 29 12:58 index.nginx-debian.html
</code></pre>
<p>이제 소유자명도 junewoo로 사용자그룹도 junewoo로 변경된 것을 확인하실 수 있습니다.</p>
<p>이제 EditPlus에서 index.nginx-devian.html를 수정하고 웹페이지를 확인해 보겠습니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1555" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-12-1.jpg?resize=860%2C697&#038;ssl=1" alt="" width="860" height="697" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-12-1.jpg?resize=300%2C243&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-12-1.jpg?resize=768%2C621&amp;ssl=1 768w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>웹페이지가 변경된 것을 보실 수 있습니다. junewoo.com로 변경되었습니다.</p>
<p>junewoo.com은 아사달 도메인 서비스에서 구매한 웹 이름입니다. 카페 24에서도 도메인 구매와 ip 포워딩 서비스를 신청할 수 있습니다. 연결된 공유기의 외부 접속 ip를 구매한 도메인(junewoo.com)과 ip 포워딩 설정(신청)을 하셔야 합니다.</p>
<p><span id="ipTime_gong-yugieseo_DDNSleul_seoljeonghaeseo_gojeong_IPcheoleom_sayonghagi">ipTime 공유기에서 DDNS를 설정해서 고정 IP처럼 사용하면 도메인 업체에 ip 포워딩 신청을 하지 않아도 됩니다. </span></p>
<p><span id="ipTime_gong-yugieseo_DDNSleul_seoljeonghaeseo_gojeong_IPcheoleom_sayonghagi">장비 교체 등으로 외부 접속 ip가 바뀌게 되면 DDNS설정에 문제가 생길 소지가 있어서 필자는 도메인 구매 업체에 ip 포워딩을 사용하고 있습니다.</span></p>
<p>다음으로 Nginx 서버에 PHP8 설치를 하겠습니다.</p>
<h2><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-8/">8. 개인 서버에 Ubuntu LEMP WORDPRESS 설치하기</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+7+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-7%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 7</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1535</post-id>	</item>
		<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Wed, 06 Mar 2024 11:02:26 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[sudo apt install nginx]]></category>
		<category><![CDATA[웹 서버 Nginx 설치]]></category>
		<category><![CDATA[현재 iptables 규칙 초기화]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1519</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #ebe309;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f7f7ed;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>웹 서버 Nginx는 고성는, 고가용성, 유연성을 제공하는 오픈 소스 웹 서버 소프트웨어입니다. 이 소프트웨어는 웹 서버 기능 뿐만 아니라 리버스 프록시, 메일 프록시, 일반 TCP/UDP 프록시 서버로도 사용할 수 있습니다. Nginx는 비동기 이벤트 기반 구조를 사용하여 동시에 많은 연결을 효율적으로 처리할 수 있으며, 이는 고성능 웹 사이트와 웹 애플리케이션을 호스팅하는 데 매우 적합합니다.</p>
<h2>6-1. 웹 서버 Nginx 설치</h2>
<p>우선 nginx의 설치 여부 및 현재 환경을 확인합니다.</p>
<p>명령어 창에서 sudo apt-cache policy nginx 를 입력해 봅니다.</p>
<p>설치 되어 있지 않으면 다음과 같이 출력됩니다.</p>
<pre class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy nginx</span>
nginx:
  <span style="color: #ff0000;">Installed: (none)</span>
  Candidate: 1.18.0-6ubuntu14.4
  Version table:
     1.18.0-6ubuntu14.4 500
        500 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     1.18.0-6ubuntu14 500
        500 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
junewoo@cvilla:~$
</code></pre>
<p>보시면 현재  설치 되어 있지 않으며, 해당 우분투는 14.4 버전이 있음을 알 수 있습니다.</p>
<h2>6-2. 내용의 확인과 nginx 설치</h2>
<p>명령어에서 sudo apt install nginx 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt install nginx</span>
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4
  nginx-common nginx-core
Suggested packages:
  libgd-tools fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4
  nginx nginx-common nginx-core
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 2462 kB of archives.
After this operation, 8210 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjpeg-turbo8 amd64 1.5.2-0ubuntu5.18.04.3 [110 kB]
Get:2 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
Get:3 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 fontconfig-config all 2.12.6-0ubuntu2 [55.8 kB]
Get:4 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libfontconfig1 amd64 2.12.6-0ubuntu2 [137 kB]
Get:5 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]
Get:6 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libjbig0 amd64 2.1-3.1build1 [26.7 kB]
Get:7 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.3 [153 kB]
Get:8 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libwebp6 amd64 0.6.1-2 [185 kB]
Get:9 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libxpm4 amd64 1:3.5.12-1 [34.0 kB]
Get:10 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgd3 amd64 2.2.5-4ubuntu0.4 [119 kB]
Get:11 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-common all 1.14.0-0ubuntu1.7 [37.4 kB]
Get:12 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-geoip amd64 1.14.0-0ubuntu1.7 [11.2 kB]
Get:13 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-image-filter amd64 1.14.0-0ubuntu1.7 [14.6 kB]
Get:14 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.0-0ubuntu1.7 [13.0 kB]
Get:15 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-mail amd64 1.14.0-0ubuntu1.7 [41.8 kB]
Get:16 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-stream amd64 1.14.0-0ubuntu1.7 [63.7 kB]
Get:17 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-core amd64 1.14.0-0ubuntu1.7 [413 kB]
Get:18 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx all 1.14.0-0ubuntu1.7 [3596 B]
Fetched 2462 kB in 11s (228 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libjpeg-turbo8:amd64.
(Reading database ... 100848 files and directories currently installed.)
Preparing to unpack .../00-libjpeg-turbo8_1.5.2-0ubuntu5.18.04.3_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.3) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../01-fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../02-fontconfig-config_2.12.6-0ubuntu2_all.deb ...
Unpacking fontconfig-config (2.12.6-0ubuntu2) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../03-libfontconfig1_2.12.6-0ubuntu2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../04-libjpeg8_8c-2ubuntu8_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../05-libjbig0_2.1-3.1build1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1build1) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../06-libtiff5_4.0.9-5ubuntu0.3_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.9-5ubuntu0.3) ...
Selecting previously unselected package libwebp6:amd64.
Preparing to unpack .../07-libwebp6_0.6.1-2_amd64.deb ...
Unpacking libwebp6:amd64 (0.6.1-2) ...
Selecting previously unselected package libxpm4:amd64.
Preparing to unpack .../08-libxpm4_1%3a3.5.12-1_amd64.deb ...
Unpacking libxpm4:amd64 (1:3.5.12-1) ...
Selecting previously unselected package libgd3:amd64.
Preparing to unpack .../09-libgd3_2.2.5-4ubuntu0.4_amd64.deb ...
Unpacking libgd3:amd64 (2.2.5-4ubuntu0.4) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../10-nginx-common_1.14.0-0ubuntu1.7_all.deb ...
Unpacking nginx-common (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../11-libnginx-mod-http-geoip_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../12-libnginx-mod-http-image-filter_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../13-libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../14-libnginx-mod-mail_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-mail (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../15-libnginx-mod-stream_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-stream (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package nginx-core.
Preparing to unpack .../16-nginx-core_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking nginx-core (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package nginx.
Preparing to unpack .../17-nginx_1.14.0-0ubuntu1.7_all.deb ...
Unpacking nginx (1.14.0-0ubuntu1.7) ...
Setting up libjbig0:amd64 (2.1-3.1build1) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up nginx-common (1.14.0-0ubuntu1.7) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Setting up libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.3) ...
Setting up libnginx-mod-mail (1.14.0-0ubuntu1.7) ...
Setting up libxpm4:amd64 (1:3.5.12-1) ...
Setting up libnginx-mod-http-xslt-filter (1.14.0-0ubuntu1.7) ...
Setting up libnginx-mod-http-geoip (1.14.0-0ubuntu1.7) ...
Setting up libwebp6:amd64 (0.6.1-2) ...
Setting up libjpeg8:amd64 (8c-2ubuntu8) ...
Setting up fontconfig-config (2.12.6-0ubuntu2) ...
Setting up libnginx-mod-stream (1.14.0-0ubuntu1.7) ...
Setting up libtiff5:amd64 (4.0.9-5ubuntu0.3) ...
Setting up libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Setting up libgd3:amd64 (2.2.5-4ubuntu0.4) ...
Setting up libnginx-mod-http-image-filter (1.14.0-0ubuntu1.7) ...
Setting up nginx-core (1.14.0-0ubuntu1.7) ...
Setting up nginx (1.14.0-0ubuntu1.7) ...
Processing triggers for systemd (237-3ubuntu10.41) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
junewoo@cvilla:~$
</code></pre>
<h2>6-3. 다시 nginx 설치가 잘 되었는지 확인해 봅니다.</h2>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy nginx</span>
[sudo] password for junewoo:
nginx:
  <span style="color: #ff0000;">Installed: 1.18.0-6ubuntu14.4</span>
  Candidate: 1.18.0-6ubuntu14.4
  Version table:
 *** 1.18.0-6ubuntu14.4 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.18.0-6ubuntu14.3 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     1.18.0-6ubuntu14 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
junewoo@cvilla:~$</code></pre>
<p>보시면 Installed라고 떠 있는 것을 확인할 수 있습니다.</p>
<p>이제 서버에 접속이 되는지 확인해 보겠습니다.</p>
<h2>6-4. 현재 iptables 규칙 초기화</h2>
<p>명령 창에서 sudo iptables -F를 입력합니다.</p>
<p><code class="hljs">junewoo@cvilla:~$ sudo iptables -F</code></p>
<p>웹브라우저에서 IP주소를 입력하여 확인하여 봅니다.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1527" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=860%2C665&#038;ssl=1" alt="" width="860" height="665" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=300%2C232&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=1024%2C793&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=768%2C595&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?w=1197&amp;ssl=1 1197w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>Welcome to nginx!가 뜨면 정상적으로 nginx가 설치된 것입니다.</p>
<p id="OCI-5-2" data-ke-size="size20">설치시 오류가 난 경우 apt-get으로 설치합니다.</p>
<p data-ke-size="size20">먼저 apt-get을 업데이트 해 보겠습니다.</p>
<p data-ke-size="size20">명령어 창에서 sudo apt-get update 를 입력합니다.</p>
<p data-ke-size="size20">update후 명령어 창에서 sudo apt-get install nginx 를 입력해 보시기 바랍니다.</p>
<p data-ke-size="size20">그래도 설치 시 오류가 나신다면 아마도 우분투 패키지 업데이트 및 업그레이드가 되지 않아 나타나는 현상입니다.</p>
<p data-ke-size="size20">명령어 창에서 sudo apt update 와 sudo apt upgrade를 실행해 보시기 바랍니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs"><span style="color: #ff0000;">junewoo@cvilla:~$ sudo apt update</span>
[sudo] password for junewoo:
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:4 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,424 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,053 kB]
Get:7 http://kr.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,208 kB]
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Err:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
Fetched 3,914 kB in 38s (103 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Failed to fetch https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
<span style="color: #ff0000;">junewoo@cvilla:~$ sudo apt upgrade</span>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libmagickwand-6.q16-6 libmagickcore-6.q16-6 imagemagick-6-common
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  libgpgme11
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
junewoo@cvilla:~$
</code></pre>
<p>&nbsp;</p>
<h2><a href="https://junewoo.com/?p=1535&amp;preview=true">7. 다음은 Linux 폴더 권한 설정입니다.</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverline" OnClick="document.location.href='http://line.naver.jp/R/msg/text/?%EA%B0%9C%EC%9D%B8+%EC%84%9C%EB%B2%84%EC%97%90+Ubuntu+LEMP+WORDPRESS+%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0+6+-+%EC%A4%80%EC%9A%B0%EB%B8%94%EB%A1%9C%EA%B7%B8%0D%0Ahttps%3A%2F%2Fjunewoo.com%2F%25ea%25b0%259c%25ec%259d%25b8-%25ec%2584%259c%25eb%25b2%2584%25ec%2597%2590-ubuntu-lemp-wordpress-%25ec%2584%25a4%25ec%25b9%2598%25ed%2595%2598%25ea%25b8%25b0-6%2F'"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverline.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 1);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1519</post-id>	</item>
	</channel>
</rss>
