{"id":1021,"date":"2022-05-22T13:07:11","date_gmt":"2022-05-22T04:07:11","guid":{"rendered":"https:\/\/jcl.kr:6443\/?p=1021"},"modified":"2022-05-26T21:17:30","modified_gmt":"2022-05-26T12:17:30","slug":"%ef%bf%bc%ef%bf%bc%eb%9d%bc%ec%a6%88%eb%b2%a0%eb%a6%ac%ed%8c%8c%ec%9d%b4%ec%97%90-%ec%9b%8c%eb%93%9c%ed%94%84%eb%a0%88%ec%8a%a4-%ed%99%88%ed%8e%98%ec%9d%b4%ec%a7%80-%ea%b5%ac%ec%b6%95","status":"publish","type":"post","link":"https:\/\/jcl.kr\/?p=1021","title":{"rendered":"Build WordPress website on Raspberry Pi"},"content":{"rendered":"\n<p>Many smart home devices at home do not work with Apple HomeKit, so I bought a Raspberry Pi 4 to build a Homebridge after worrying about it.<\/p>\n\n\n\n<p>But, I&#8217;ve been trying for a week, and Samsung and LG are registered, but Xiaomi doesn&#8217;t work.<\/p>\n\n\n\n<p>I ended up with only half of the configuration as I have far more Xiaomi IoT than Samsung or LG.<\/p>\n\n\n\n<p>So, I started to install this and that on the Raspberry Pi I just bought.<\/p>\n\n\n\n<p>For reference, I haven&#8217;t touched Linux since I installed Linux 25 years ago in college.<\/p>\n\n\n\n<p>All I had to do was find the internet and do what they told me, but it was easier to find the data than I thought, and after many trials and errors, most of the things I wanted were achieved.<\/p>\n\n\n\n<p>As a Linux command, I did not remember anything except &#8220;ls -al&#8221;, but even if I did not understand it, I could solve it by following it.<\/p>\n\n\n\n<p>It&#8217;s been about ten days since I bought it, and what I&#8217;ve installed so far is<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Homebridge for IoT<\/li><li>I even installed a management tool called Potainer in Docker, which I have only heard of and never seen in practice, and configure the unconnect and DB.<\/li><li>Even though I don&#8217;t know the dust every day, I installed Zavix, which was called Zavix, and even set up the environment to monitor the NAS.<\/li><li>Enable SSH, VNC, http, https, ftp, etc. from outside through router port forwarding<\/li><li>And, to the wordpress I want to talk about now.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"674\" data-src=\"\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.35.55-1024x674.jpg\" alt=\"\" class=\"wp-image-1022 lazyload\" data-srcset=\"https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.35.55-1024x674.jpg 1024w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.35.55-300x197.jpg 300w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.35.55-768x505.jpg 768w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.35.55-1536x1010.jpg 1536w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.35.55.jpg 1600w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/674;\" \/><\/figure>\n\n\n\n<p>It&#8217;s been a week since I first installed WordPress, and I&#8217;ve done quite a bit of work, although it only ticks after work.<\/p>\n\n\n\n<p>Although I majored in computer science, it has been over 20 years and I think that I have done quite a lot for something that was done in a state that was close to ignorance and did not know how to do anything related to servers.<\/p>\n\n\n\n<p>What I did for a week<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Install Apache, PHP, MariaDB<\/li><li>Install wordpress<\/li><li>SSL certificate installation (this seems to be the most difficult part, I am currently using a free 3-month ZeroSSL certificate)<\/li><li>Received and configured a DDNS domain (jacob.zapto.org) and purchased a domain (jcl.kr)<\/li><li>Finding a domain as short as possible and setting up DNS after purchasing was not an easy task for me.<\/li><li>I think that DNS is just set to the home router IP, and if the IP changes, you can change it again.<\/li><li>I also tried to build a mail server, but nothing worked, so I configured a mail server on the Synology NAS at home and used it (Synology just clicks a few buttons to configure the mail server)<\/li><li>When connecting via http, redirect to https (Even when I google it, nothing works well at once)<\/li><\/ul>\n\n\n\n<p id=\"SE-4902830b-d543-46a6-a3bb-1fe2c96f4ead\">Well, it wasn&#8217;t easy to configure it like this, decorate WordPress and upload content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"646\" data-src=\"\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.38.36-1024x646.jpg\" alt=\"\" class=\"wp-image-1023 lazyload\" data-srcset=\"https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.38.36-1024x646.jpg 1024w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.38.36-300x189.jpg 300w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.38.36-768x484.jpg 768w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.38.36-1536x969.jpg 1536w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.38.36.jpg 1600w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/646;\" \/><\/figure>\n\n\n\n<p>Once I did not understand all the commands, I was just doing what I was told, and as I was doing what I was told, if there was an error, I could not find the cause.<\/p>\n\n\n\n<p>Also, since I was bored without thinking about what to do from the beginning, the domain changed and the path changed while I was making it, so the links to the uploaded content keep breaking.<\/p>\n\n\n\n<p>Since WordPress does not go up in a relative path and all media go up only in an absolute path, I had to re-upload all the media whenever I changed the domain or removed the path called wordpress.<\/p>\n\n\n\n<p>If you do it again, you will have to configure the contents after completing all the environment settings.<\/p>\n\n\n\n<p>Raising the size limit for attachments was also very difficult for me, but now that I&#8217;ve done this, it&#8217;s almost impossible to memorize basic Linux commands.<\/p>\n\n\n\n<p>In just one week, a person who had no knowledge of Linux or servers built the server, installed WordPress, set up domains, set up SSL, and even configured content.<\/p>\n\n\n\n<p>These days, if you do a search, you can find everything. Even if you don&#8217;t understand, you can just follow along.<\/p>\n\n\n\n<p>There are no posts to post, just a few photos of trips or diving, but I don&#8217;t know how people come, but visitors keep coming.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"534\" data-src=\"\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.01-1024x534.jpg\" alt=\"\" class=\"wp-image-1024 lazyload\" data-srcset=\"https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.01-1024x534.jpg 1024w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.01-300x156.jpg 300w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.01-768x400.jpg 768w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.01-1536x801.jpg 1536w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.01.jpg 1600w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/534;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"534\" data-src=\"\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.21-1024x534.jpg\" alt=\"\" class=\"wp-image-1025 lazyload\" data-srcset=\"https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.21-1024x534.jpg 1024w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.21-300x156.jpg 300w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.21-768x400.jpg 768w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.21-1536x801.jpg 1536w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.45.21.jpg 1600w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/534;\" \/><\/figure>\n\n\n\n<p>Naver blog also receives an average of two or three posting requests a day, but it is annoying, so I have never responded, so I don&#8217;t know how long this WordPress will last.<\/p>\n\n\n\n<p>However, these days, it is possible to build a personal website on a personal server in a week.<\/p>\n\n\n\n<p>And, as shown below, both for pad and mobile devices are automatically changed and you can see how it will look in advance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"280\" height=\"78\" data-src=\"\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.50.31.png\" alt=\"\" class=\"wp-image-1026 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 280px; --smush-placeholder-aspect-ratio: 280\/78;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"662\" height=\"986\" data-src=\"\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.50.46.jpg\" alt=\"\" class=\"wp-image-1027 lazyload\" data-srcset=\"https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.50.46.jpg 662w, https:\/\/jcl.kr\/wp-content\/uploads\/2022\/05\/\uc2a4\ud06c\ub9b0\uc0f7-2022-05-22-\uc624\ud6c4-12.50.46-201x300.jpg 201w\" data-sizes=\"(max-width: 662px) 100vw, 662px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 662px; --smush-placeholder-aspect-ratio: 662\/986;\" \/><\/figure>\n\n\n\n<p>It was fun for a week long.<\/p>\n\n\n\n<p>Even if you are not an expert, people who know only about the system will see something like this, but I hope it was helpful to those who approach it from the point of view of play like me from the perspective of a complete non-professional. I&#8217;ll give it to you.<\/p>\n\n\n\n<p>Result of the current standard<\/p>\n\n\n\n<p><a href=\"\">jcl.kr\ufeff<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many smart home devices at home do not work with Apple HomeKit, so I bought a Raspberry Pi 4 to build a Homebridge after worrying about it. But, I&#8217;ve been&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1022,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50,49,48,44,45,47,43],"class_list":["post-1021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1","tag-blog","tag-raspberrypi","tag-wordpress","tag-44","tag-45","tag-47","tag-43"],"_links":{"self":[{"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/posts\/1021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jcl.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1021"}],"version-history":[{"count":2,"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/posts\/1021\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/posts\/1021\/revisions\/1067"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jcl.kr\/index.php?rest_route=\/wp\/v2\/media\/1022"}],"wp:attachment":[{"href":"https:\/\/jcl.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jcl.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jcl.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}