{"id":15,"date":"2023-09-02T16:06:16","date_gmt":"2023-09-02T07:06:16","guid":{"rendered":"http:\/\/blog.takeh.org\/?p=15"},"modified":"2023-09-26T05:44:19","modified_gmt":"2023-09-25T20:44:19","slug":"%e3%81%93%e3%81%aeblog%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9","status":"publish","type":"post","link":"https:\/\/blog.takeh.org\/?p=15","title":{"rendered":"\u3053\u306eBlog\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4f5c\u6210\u65b9\u91dd\u3068\u4e8b\u524d\u6e96\u5099<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8<\/h3>\n\n\n\n<p>raspberrypi(ARM64)\u4e0a\u306eproxmox LXC\u3068\u3057\u3066\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002proxmox-Arm64\u3060\u3068proxmox\u306e\u30c6\u30f3\u30d7\u30ec\u304c\u306a\u3044\u306e\u3067\u3001<a href=\"https:\/\/us.lxd.images.canonical.com\/images\/\">LXD\u306e\u516c\u5f0f\u30a4\u30e1\u30fc\u30b8\u96c6<\/a> \u304b\u3089\u3001\u9069\u5f53\u306barm64\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u843d\u3068\u3057\u3066\u304d\u305f\u3002(ubuntu \/ jammy \/ arm64)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d6\u30ea\u30c3\u30b8\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>proxmox-Arm64\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3060\u3068\u30d6\u30ea\u30c3\u30b8\u304c\u306a\u3044\u306e\u3067\u4f5c\u6210\u3059\u308b\u3002<br>\u30db\u30b9\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u3001\u81ea\u52d5\u8d77\u52d5\/eth0\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Unix\u30e6\u30fc\u30b6<\/h3>\n\n\n\n<p>adduser\u3067\u4f5c\u6210<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>wordpress \/ \u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u9069\u5f53<\/li>\n\n\n\n<li>group \u300csudo\u300d\u306b\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">curl\/apache2\/MySQL\/PHP<\/h3>\n\n\n\n<p> <a href=\"https:\/\/level69.net\/archives\/31534\">\u3053\u3053<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u308b\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt upgrade\nsudo apt install curl apache2 mysql-server libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-zip php-curl<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">WordPress<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">wp-cli\u3092\u4f7f\u3046\u3053\u3068\u306b\u3059\u308b<\/h4>\n\n\n\n<p>\u3069\u3046\u3084\u3063\u3066\u52d5\u304b\u3059\u306e\u304b\u6bb5\u53d6\u308a\u3092\u5168\u304f\u899a\u3048\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067<a href=\"https:\/\/wp-cli.org\/ja\/#section-1\">wp-cli<\/a>\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002\u307b\u307c\u3053\u306e<a href=\"https:\/\/dev.classmethod.jp\/articles\/wordpress-cli-install\/\">\u8a18\u4e8b<\/a>\u306e\u30d1\u30af\u30ea<\/p>\n\n\n\n<p>Ubuntu\u7cfb\u3067\u306f\u3001www-data\u304c\u30e6\u30fc\u30b6<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar\nchmod +x wp-cli.phar\nsudo mv wp-cli.phar \/usr\/local\/bin\/wp\nsudo chown -R www-data:www-data \/var\/www\/html\nsudo rm \/var\/www\/html\/index.html<\/pre>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wordpress@blog:~$ wp core download --locale=ja --path=\/var\/www\/wordpress\nCreating directory '\/var\/www\/wordpress\/'.\nDownloading WordPress 6.3.1 (ja)...\nmd5 hash verified: 2b336c2446e993a8e937f5b1e56c1452\nSuccess: WordPress downloaded.<\/pre>\n<\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">db\u30e6\u30fc\u30b6<\/h4>\n\n\n\n<p>root\u3067\u4f5c\u696d<br>mysql\u3067\u63a5\u7d9a<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CREATE USER 'wpdb'@'localhost' IDENTIFIED BY 'password';\nGRANT ALL PRIVILEGES ON * . * TO 'wpdb'@'localhost';\nFLUSH PRIVILEGES;<\/pre>\n<\/div>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">DB\u306e\u4f5c\u6210\u3068\u30d6\u30ed\u30b0\u306e\u4f5c\u6210<\/h4>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wordpress@blog:\/var\/www\/html$ sudo -u www-data \/usr\/local\/bin\/wp core config --dbname='wpdb' --dbuser='wpdb' --dbpass='cccccc' --dbhost='localhost' --path=\/var\/www\/htmlSuccess: Generated 'wp-config.php' file.\nwordpress@blog:\/var\/www\/html$ sudo -u www-data \/usr\/local\/bin\/wp db create --path=\/var\/www\/html\nSuccess: Database created.\nwordpress@blog:\/var\/www\/html$ sudo -u www-data \/usr\/local\/bin\/wp core install --url='blog.takeh.org' --title='takeh\u306e\u5099\u5fd8\u9332' --admin_name='yyyyy' --admin_password='xxxxxx' --admin_email='zzzzzz' --path=\/var\/www\/html\nsh: 1: \/usr\/sbin\/sendmail: not found\nSuccess: WordPress installed successfully.\nwordpress@blog:\/var\/www\/html$ <\/pre>\n<\/div>\n<\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">root@blog:\/etc\/apache2\/conf-available# cat wordpress.conf \n&lt;Directory \"\/var\/www\/html\">\n    AllowOverride All\n&lt;\/Directory>\nroot@blog:\/etc\/apache2\/conf-available# cd ..\/conf-enabled\/\nroot@blog:\/etc\/apache2\/conf-enabled# ln -s ..\/conf-available\/wordpress.conf .\/\nroot@blog:\/etc\/apache2\/conf-enabled# ls -al\ntotal 8\ndrwxr-xr-x 2 root root 4096 Sep  2 06:34 .\ndrwxr-xr-x 8 root root 4096 Sep  2 06:00 ..\nlrwxrwxrwx 1 root root   30 Sep  2 06:00 charset.conf -> ..\/conf-available\/charset.conf\nlrwxrwxrwx 1 root root   44 Sep  2 06:00 localized-error-pages.conf -> ..\/conf-available\/localized-error-pages.conf\nlrwxrwxrwx 1 root root   46 Sep  2 06:00 other-vhosts-access-log.conf -> ..\/conf-available\/other-vhosts-access-log.conf\nlrwxrwxrwx 1 root root   31 Sep  2 06:00 security.conf -> ..\/conf-available\/security.conf\nlrwxrwxrwx 1 root root   36 Sep  2 06:00 serve-cgi-bin.conf -> ..\/conf-available\/serve-cgi-bin.conf\nlrwxrwxrwx 1 root root   32 Sep  2 06:34 wordpress.conf -> ..\/conf-available\/wordpress.conf\nroot@blog:\/etc\/apache2\/conf-enabled# systemctl restart apache2<\/pre>\n\n\n\n<p>\u3042\u3068\u306f\u3001blog.takeh.org\/wp-admin\u3067\u63a5\u7d9a\u3002\u3068\u306f\u3044\u3063\u3066\u3082\u3001LAN\u5185\u69cb\u7bc9\u306a\u306e\u3067\u3001\u307e\u3060\u30e1\u30e2\u307f\u305f\u3044\u306a\u3082\u306e\u3002\u305d\u306e\u3046\u3061\u3001\u516c\u958b\u3092\u3059\u308b\u304b\u306a\u3042\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u6210\u65b9\u91dd\u3068\u4e8b\u524d\u6e96\u5099 \u30d9\u30fc\u30b9\u3068\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8 raspberrypi(ARM64)\u4e0a\u306eproxmox LXC\u3068\u3057\u3066\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002proxmox-Arm64\u3060\u3068proxmox\u306e\u30c6\u30f3\u30d7\u30ec\u304c\u306a\u3044\u306e\u3067\u3001LXD\u306e\u516c\u5f0f\u30a4\u30e1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11,7,10],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-lxd","tag-proxmox","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":7,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}