{"id":9397,"date":"2017-04-27T16:00:17","date_gmt":"2017-04-27T07:00:17","guid":{"rendered":"http:\/\/www.e-nekorakuen.net\/?p=9397"},"modified":"2017-06-02T08:52:35","modified_gmt":"2017-06-01T23:52:35","slug":"raspberry-pi-3-%e3%83%a2%e3%83%87%e3%83%abb-%e3%81%abwordpress%e7%92%b0%e5%a2%83%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.e-nekorakuen.net\/?p=9397","title":{"rendered":"Raspberry Pi 3 Model B \u3067WordPress\u3092\u52d5\u304b\u3059\u3002\uff08\uff11\uff0f\uff12\uff09"},"content":{"rendered":"<p>Raspberry Pi Model B\u306bubuntu mate\uff08Ubuntu\u306e\u30b9\u30e2\u30fc\u30eb\u7248OS\uff09\u3092\u5c0e\u5165\u3057\u3066\u3001WordPress\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u30b1\u30fc\u30b9\u4ed8\u304d\u304c\u304a\u52e7\u3081\u3067\u3059\u3002\u30d2\u30fc\u30c8\u30b7\u30f3\u30af\u3068\u30b4\u30e0\u8db3\u3092\u3064\u3051\u308c\u3070\u5b8c\u6210\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.amazon.co.jp\/Raspberry-\u30dc\u30fc\u30c9\uff06\u30b1\u30fc\u30b9\u30bb\u30c3\u30c8-Element14\u7248-Computing-Lab\/dp\/B01CSFZ4JG\/ref=sr_1_1?ie=UTF8&amp;qid=1493303707&amp;sr=8-1&amp;keywords=raspberry%2Bpi%2B3&amp;th=1\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.amazon.co.jp\/Raspberry-\u30dc\u30fc\u30c9\uff06\u30b1\u30fc\u30b9\u30bb\u30c3\u30c8-Element14\u7248-Computing-Lab\/dp\/B01CSFZ4JG\/ref=sr_1_1?ie=UTF8&amp;qid=1493303707&amp;sr=8-1&amp;keywords=raspberry%2Bpi%2B3&amp;th=1<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9421\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/71FAfG5I4uL._SL1266_-300x237.jpg\" alt=\"\" width=\"300\" height=\"237\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/71FAfG5I4uL._SL1266_-300x237.jpg 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/71FAfG5I4uL._SL1266_.jpg 507w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n\u30fb\u5b89\u5b9a\u7a3c\u50cd\u3059\u308b\u305f\u3081\u306b\u30013.0A\u7a0b\u5ea6\u306e\u5c02\u7528\u96fb\u6e90\u3092\u4f7f\u3046\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/jp.rs-online.com\/web\/generalDisplay.html?id=raspberrypi&amp;cm_mmc=JP-PPC-_-google-_-2_JP_JP_LS_Raspberry+Pi_Exact-_-Raspberry_Pi_3&amp;mkwid=sCeGw6oT0-dc|pcrid|167955372668|pkw|raspberry%20pi%203|pmt|e|prd|\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/jp.rs-online.com\/web\/generalDisplay.html?id=raspberrypi&amp;cm_mmc=JP-PPC-_-google-_-2_JP_JP_LS_Raspberry+Pi_Exact-_-Raspberry_Pi_3&amp;mkwid=sCeGw6oT0-dc|pcrid|167955372668|pkw|raspberry%20pi%203|pmt|e|prd|<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9398\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/R1238761-01-300x182.jpg\" alt=\"\" width=\"300\" height=\"182\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/R1238761-01-300x182.jpg 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/R1238761-01.jpg 444w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n\u203b\uff11\uff0f\uff12\u3067\u306f\u3001php\u306e\u8a2d\u5b9a\u307e\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n1.ubuntumate\uff08OS\uff09 D\/L &amp; install<br \/>\n<a href=\"http:\/\/deviceplus.jp\/hobby\/raspberrypi_entry_048\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/deviceplus.jp\/hobby\/raspberrypi_entry_048\/<\/a><br \/>\n<a href=\"http:\/\/mobilenikki.cocolog-nifty.com\/wzero3\/2016\/04\/raspberry-pi3ub.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/mobilenikki.cocolog-nifty.com\/wzero3\/2016\/04\/raspberry-pi3ub.html<\/a><br \/>\nMicroSD\u306f32GB\u4ee5\u4e0a\u5fc5\u8981\u300164GB\u306e\u5834\u5408\u306f\u30a2\u30a4\u30aa\u30fc\u30c7\u30fc\u30bf\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u30fc\u3067FAT32\u306b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.iodata.jp\/lib\/manual\/hdpn-u\/data\/hddfat32.htm\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.iodata.jp\/lib\/manual\/hdpn-u\/data\/hddfat32.htm<\/a><br \/>\nimage D\/L\u2192image\u5c55\u958b\u2192\u65e5\u672c\u8a9e\u74b0\u5883\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u203b\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001Linux Partition\u3092\u62e1\u5f35\u3057\u307e\u3059\u3002\uff08\u591a\u5206\u305d\u306e\u307e\u307e\u3067OK\uff09<\/p>\n<p>2.\u56fa\u5b9aIP\u306e\u8a2d\u5b9a\uff08\u6709\u7ddaLAN\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u591a\u3044\u306e\u3067\u7121\u7ddaLAN\u306f\u304a\u52e7\u3081\u3057\u307e\u305b\u3093\u3002\uff09<br \/>\nnano \/etc\/network\/interfaces<\/p>\n<p># interfaces(5) file used by ifup(8) and ifdown(8)<br \/>\n# Include files from \/etc\/network\/interfaces.d:<br \/>\nsource-directory \/etc\/network\/interfaces.d<\/p>\n<p># The loopback network interface<br \/>\nauto lo<br \/>\niface lo inet loopback<\/p>\n<p># static ip \u2190\u4ee5\u4e0b\u3001\u8ffd\u8a18\u3057\u307e\u3059\u3002<br \/>\nauto enxb827eb863bc3 \u2190\u30c7\u30d0\u30a4\u30b9\u540d\u306fifconfig\u3067\u4e8b\u524d\u306b\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3053\u3068\u3002<br \/>\niface enxb827eb863bc3 inet static<br \/>\naddress 192.168.1.100 \u00a0\u2190\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u307e\u3059\u3002<br \/>\nnetwork 192.168.1.0 \u2190\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u307e\u3059\u3002<br \/>\nnetmask 255.255.255.0<br \/>\nbroadcast 192.168.1.255 \u2190\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u307e\u3059\u3002<br \/>\ngateway 192.168.1.1 \u2190\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u307e\u3059\u3002<br \/>\ndns-nameservers 192.168.1.1 \u2190\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u307e\u3059\u3002<\/p>\n<p>3.ubuntumate\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff08\u5c11\u3057\u6642\u9593\u304c\u639b\u304b\u308a\u307e\u3059\u3002\uff09<br \/>\napt-get update<br \/>\napt-get upgrade<\/p>\n<p>4.\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\napt-get install xrdp<\/p>\n<p>5.LAMP Server\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9999\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/logo-lamp21-300x188.png\" alt=\"\" width=\"300\" height=\"188\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/logo-lamp21-300x188.png 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/logo-lamp21.png 384w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n<a href=\"http:\/\/linux.keicode.com\/servers\/lamp.php\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/linux.keicode.com\/servers\/lamp.php<\/a><br \/>\napt-get install tasksel<br \/>\ntasksel install lamp-server \u2190\u753b\u9762\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fcERROR(100)\u306b\u306a\u308b\u306e\u3067\u3001\u76f4\u63a5\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>6.phpMyAdmin\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<a href=\"https:\/\/www.server-world.info\/query?os=Ubuntu_14.04&amp;p=mysql&amp;f=2\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.server-world.info\/query?os=Ubuntu_14.04&amp;p=mysql&amp;f=2<\/a><br \/>\napt-get install phpmyadmin<br \/>\n[*]apache2\u3092\u9078\u629e<br \/>\n\u203bmysql\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u306f\u3001LAMP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u306b\u6e08\u307e\u305b\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<p>7.Apache2\u306e\u8a2d\u5b9a<br \/>\n<a href=\"http:\/\/ameblo.jp\/rb26\/entry-11440052587.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/ameblo.jp\/rb26\/entry-11440052587.html<\/a><br \/>\ncp -p \/etc\/apache2\/sites-avairable\/000-default.conf www.example.com.conf \u2190\u81ea\u5206\u306e\u30c9\u30e1\u30a4\u30f3\u3067vhhost\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nnano www.example.com.conf<br \/>\n&lt;VirtualHost *:80&gt;<br \/>\n# The ServerName directive sets the request scheme, hostname and port that<br \/>\n# the server uses to identify itself. This is used when creating<br \/>\n# redirection URLs. In the context of virtual hosts, the ServerName<br \/>\n# specifies what hostname must appear in the request&#8217;s Host: header to<br \/>\n# match this virtual host. For the default virtual host (this file) this<br \/>\n# value is not decisive as it is used as a last resort host regardless.<br \/>\n# However, you must set it for any further virtual host explicitly.<br \/>\n#ServerName www.example.com<\/p>\n<p>ServerAdmin webmaster@localhost<br \/>\nServerName www.example.com<br \/>\nDocumentRoot \/home\/www\/example.com \u2190\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p># Available loglevels: trace8, &#8230;, trace1, debug, info, notice, warn,<br \/>\n# error, crit, alert, emerg.<br \/>\n# It is also possible to configure the loglevel for particular<br \/>\n# modules, e.g.<br \/>\n#LogLevel info ssl:warn<\/p>\n<p>ErrorLog ${APACHE_LOG_DIR}\/error.log<br \/>\nCustomLog ${APACHE_LOG_DIR}\/access.log combined<\/p>\n<p># For most configuration files from conf-available\/, which are<br \/>\n# enabled or disabled at a global level, it is possible to<br \/>\n# include a line for only one particular virtual host. For example the<br \/>\n# following line enables the CGI configuration for this host only<br \/>\n# after it has been globally disabled with &#8220;a2disconf&#8221;.<br \/>\n#Include conf-available\/serve-cgi-bin.conf<\/p>\n<p>&lt;Directory \/home\/www\/example.com&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride All<br \/>\nRequire all granted \u2190\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306eApache\u306fgrant\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>&lt;\/VirtualHost&gt;<br \/>\na2ensite www.example.com.conf \u2190\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\/usr\/sbin\/apache2ctl configtest \u2190conf\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u203bvhost\u306e\u6709\u52b9\u5316<br \/>\na2ensite example.com<br \/>\n\/usr\/sbin\/apache2ctl configtest \u2190conf\u30c1\u30a7\u30c3\u30af!!<br \/>\nApache\u306e\u30ea\u30b9\u30bf\u30fc\u30c8<br \/>\nservice apache2 restart<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10044\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/apache-logo-300x159.gif\" alt=\"\" width=\"300\" height=\"159\" \/><\/p>\n<p>8.hosts\u8ffd\u8a18<br \/>\n127.0.0.1 localhost<br \/>\n127.0.1.1 RaspberryPi-Serve \u2190\u30a8\u30a4\u30ea\u30a2\u30b9<br \/>\n127.0.0.1 www.example.com<\/p>\n<p># The following lines are desirable for IPv6 capable hosts<br \/>\n::1 ip6-localhost ip6-loopback<br \/>\nfe00::0 ip6-localnet<br \/>\nff00::0 ip6-mcastprefix<br \/>\nff02::1 ip6-allnodes<br \/>\nff02::2 ip6-allrouters<\/p>\n<p>9.MySQL\u8a2d\u5b9a<br \/>\n<a href=\"http:\/\/qiita.com\/kojionilk\/items\/bdace886c3664d75c5f7\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/qiita.com\/kojionilk\/items\/bdace886c3664d75c5f7<\/a><br \/>\nnano \/etc\/mysql\/my.cnf<br \/>\n#charset added \u2190\u4ee5\u4e0b\u3001\u8ffd\u8a18\u3057\u307e\u3059\u3002<br \/>\n[mysqld]\ncharacter-set-server=utf8<br \/>\nskip-character-set-client-handshake<br \/>\ndefault-storage-engine=INNODB<\/p>\n[mysqldump]\ndefault-character-set=utf8<\/p>\n[mysql]\ndefault-character-set=utf8<br \/>\n\u203bmysql\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<br \/>\n\/etc\/init.d\/mysql restart<br \/>\nroot\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\nmysql&gt; status;<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nmysql Ver 14.14 Distrib 5.7.17, for Linux (armv7l) using EditLine wrapper<\/p>\n<p>Connection id: 4<br \/>\nCurrent database:<br \/>\nCurrent user: root@localhost<br \/>\nSSL: Not in use<br \/>\nCurrent pager: stdout<br \/>\nUsing outfile: &#8221;<br \/>\nUsing delimiter: ;<br \/>\nServer version: 5.7.17-0ubuntu0.16.04.1 (Ubuntu)<br \/>\nProtocol version: 10<br \/>\nConnection: Localhost via UNIX socket<br \/>\nServer characterset: utf8<br \/>\nDb characterset: utf8<br \/>\nClient characterset: utf8<br \/>\nConn. characterset: utf8<br \/>\nUNIX socket: \/var\/run\/mysqld\/mysqld.sock<br \/>\nUptime: 15 sec<\/p>\n<p>Threads: 1 Questions: 6 Slow queries: 0 Opens: 107 Flush tables: 1 Open tables: 26 Queries per second avg: 0.400<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u203b\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210<br \/>\n&#8212; \u5168\u3066\u306e\u6a29\u9650\u3092\u4e0e\u3048\u308b. \u5236\u9650\u3092\u52a0\u3048\u308b\u5834\u5408\u306f\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\nGRANT ALL PRIVILEGES ON *.* TO (\u30e6\u30fc\u30b6\u540d)@localhost IDENTIFIED BY &#8216;(\u30d1\u30b9\u30ef\u30fc\u30c9)&#8217; WITH GRANT OPTION;<br \/>\nFLUSH PRIVILEGES;<br \/>\n\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3067 MySQL \u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\nmysql -u (\u30e6\u30fc\u30b6\u540d) -p<\/p>\n<p>10.php\u306e\u8a2d\u5b9a<br \/>\nhttp:\/\/www.obenri.com\/_lamp\/apache_php.html<br \/>\nmemory_limit = 50M<br \/>\npost_max_size = 40M<br \/>\nupload_max_filesize = 30M<br \/>\nmax_input_time = 60<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi Model B\u306bubuntu mate\uff08U&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":9398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","_veu_custom_css":"","veu_display_promotion_alert":"","footnotes":""},"categories":[32],"tags":[],"class_list":["post-9397","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts\/9397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9397"}],"version-history":[{"count":0,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts\/9397\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/media\/9398"}],"wp:attachment":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}