{"id":10008,"date":"2017-05-07T23:45:09","date_gmt":"2017-05-07T14:45:09","guid":{"rendered":"http:\/\/www.e-nekorakuen.net\/?p=10008"},"modified":"2017-06-02T08:52:15","modified_gmt":"2017-06-01T23:52:15","slug":"pc%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%abubuntu-16-04%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6wordpress%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99%e3%80%82%ef%bc%88%ef%bc%92%ef%bc%8f%ef%bc%93","status":"publish","type":"post","link":"https:\/\/www.e-nekorakuen.net\/?p=10008","title":{"rendered":"PC\u30b5\u30fc\u30d0\u30fc\u306bUbuntu 16.04\u3092\u5c0e\u5165\u3057\u3066WordPress\u3092\u52d5\u304b\u3059\u3002\uff08\uff12\uff0f\uff13\uff09"},"content":{"rendered":"<p>PC\u30b5\u30fc\u30d0\u30fc\u306bUbuntu 16.04\u3092\u5c0e\u5165\u3057\u3066WordPress\u74b0\u5883\u3092\u69cb\u7bc9\u30fb\u904b\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u203b\uff12\uff0f\uff13\u3067\u306f\u3001WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9399\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/wordpress-logo-stacked-rgb-300x186.png\" alt=\"\" width=\"300\" height=\"186\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/wordpress-logo-stacked-rgb-300x186.png 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/wordpress-logo-stacked-rgb.png 499w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>10.WordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n(1)MySQL\u30e6\u30fc\u30b6\u30fc&amp;DB\u306e\u4f5c\u6210<br \/>\n<a href=\"http:\/\/www.yukun.info\/blog\/2008\/10\/create-user-grant-password.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.yukun.info\/blog\/2008\/10\/create-user-grant-password.html<\/a><br \/>\nroot\u3067\u30ed\u30b0\u30a4\u30f3<br \/>\nCREATE USER &#8216;kanri&#8217;@&#8217;localhost&#8217; IDENTIFIED WITH mysql_native_password BY &#8216;password&#8217;; \u2190\u4efb\u610f\u306e\u7ba1\u7406\u8005\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\nGRANT ALL PRIVILEGES ON wp_db.* TO &#8216;user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;; \u2190\u4efb\u610f\u306e\u7ba1\u7406\u8005\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\nSELECT user,host,plugin FROM mysql.user; \u2190\u78ba\u8a8d<br \/>\ncreate database test_db;<br \/>\nkanri\u3067\u30ed\u30b0\u30a4\u30f3<br \/>\n(2)WP\u306eD\/L<br \/>\n<a href=\"https:\/\/wordpress.org\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/download\/<\/a><br \/>\n\u65e5\u672c\u8a9e\u7248\u21d2wordpress-4.7.3-ja<br \/>\n(3)\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5c5e\u6027\u5909\u66f4<br \/>\nchmod -R 644 \/home\/www\/example.com<br \/>\nfind \/home\/www\/ -type d -exec chmod 755 {} \\;<br \/>\n(4)setup<br \/>\n<a href=\"http:\/\/www.example.com\/wp-admin\/setup-config.php?step=1\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.example.com\/wp-admin\/setup-config.php?step=1<\/a><br \/>\nDatabase Name wp_db<br \/>\nUsername kanri \u2190UID<br \/>\nPassword password \u2190PASS<br \/>\nDatabase Host localhost<br \/>\nTable Prefix expl_<br \/>\nSorry, but I can\u2019t write the wp-config.php file.<br \/>\nnano wp-config.php \u2190\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\nrun install<br \/>\nSite Title \u30b5\u30a4\u30c8\u540d<br \/>\nUsername user \u2190\u4efb\u610f\u306e\u30e6\u30fc\u30b6\u30fc\u540d<br \/>\nPassword password \u2190\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9<br \/>\nYour Email webmaster@xxx.xxx.net<br \/>\nSearch Engine Visibility No Check<\/p>\n<p>wp-config.php\u8ffd\u8a18\uff08Plug-in\u76f4\u63a5\u5165\u624b\u53ef\u80fd\u6307\u5b9a\uff09<br \/>\ndefine(&#8216;FS_METHOD&#8217;, &#8216;direct&#8217;);<br \/>\n\u2193\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u66f8\u304d\u8fbc\u307f\u53ef(707)\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\/wp-content\/plugins\/<br \/>\n\/wp-content\/upgrade\/<br \/>\n\/wp-content\/themes\/<br \/>\n\/wp-content\/languages\/<br \/>\n\/wp-content\/languages\/admin-ja.mo<br \/>\n\/wp-content\/languages\/admin-ja.po<br \/>\n\/wp-content\/languages\/ja.mo<br \/>\n\/wp-content\/languages\/ja.po<br \/>\n\/wp-content\/languages\/plugins<br \/>\n\/wp-content\/languages\/themes<br \/>\nupgrade\u30d5\u30a9\u30eb\u30c0\u304c\u7121\u3044\u5834\u5408\u306f\u3001\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n(5)PHP ZipArchive class\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\napt-get install php7.0-zip<br \/>\n\u203bCSV import\/export\u7528\u30e9\u30a4\u30d6\u30e9\u30ea<br \/>\n(6)\u30c6\u30fc\u30de\u306e\u53d6\u5f97<br \/>\n\u5916\u89b3 &gt; \u30c6\u30fc\u30de\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n(7)\u30c6\u30fc\u30de\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<br \/>\n\u2460\u30c8\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u306e\u8ffd\u52a0<br \/>\n\u2461\u30a6\u30a3\u30b8\u30c3\u30c8\u306e\u8ffd\u52a0\uff08Plug-in\u3067\u8ffd\u52a0\u3059\u308b\u3082\u306e\u306f\u3001\u3042\u3068\u304b\u3089\u8ffd\u52a0\u3057\u307e\u3059\u3002\uff09<br \/>\n\u2462\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u8ffd\u52a0<br \/>\n\u2463\u6295\u7a3f\u30da\u30fc\u30b8\u306e\u8ffd\u52a0<br \/>\n\u2464\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8ffd\u52a0<br \/>\n(8)WordPress\u8a2d\u5b9a\u306e\u5909\u66f4<br \/>\n\u203b\u30e1\u30cb\u30e5\u30fc\u306b\u6295\u7a3f\u4e00\u89a7\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408<br \/>\n<a href=\"http:\/\/hirogura.com\/2016\/09\/27\/post-4758\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/hirogura.com\/2016\/09\/27\/post-4758\/<\/a><br \/>\n(9)\u5fc5\u8981\u306aPlug-in\u306e\u8ffd\u52a0<br \/>\n\u2460Link Library<br \/>\n\u2461Blog Designer<br \/>\n\u2462Auto Post Thumbnail<br \/>\n\u2463Contact Form 7<br \/>\n\u2464Location Weather<br \/>\n\u2465Simple Page Ordering<br \/>\n\u2466TinyMCE Advanced<br \/>\n\u2467Shortcodes Ultimate<br \/>\n\u203b\u305d\u306e\u4ed6\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n10.SSH Server\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10012\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/be11d96ba40a540c260e34a4b1728342-300x211.jpg\" alt=\"\" width=\"300\" height=\"211\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/be11d96ba40a540c260e34a4b1728342-300x211.jpg 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/be11d96ba40a540c260e34a4b1728342.jpg 425w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\napt-get install openssh-server<br \/>\nconf\u306e\u4fee\u6b63<br \/>\nPort\u756a\u53f7\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\nPort 22 \u2192 Port 11111 \u306a\u3069<br \/>\n\u6697\u53f7\u5f37\u5ea6\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\nServerKeyBits 2048<br \/>\nroot\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u62d2\u5426\u3057\u307e\u3059\u3002<br \/>\nPermitRootLogin no<br \/>\nRSA\u6697\u53f7\u306b\u3088\u308b\u79d8\u5bc6\u9375\u8a8d\u8a3c\u3092\u9069\u7528\u3057\u307e\u3059\u3002<br \/>\nRSAAuthentication yes<br \/>\n\u516c\u958b\u9375\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08\u884c\u982d\u306e#\u3092\u524a\u9664\u3057\u3066\u6709\u52b9\u5316\uff09<br \/>\nAuthorizedKeysFile %h\/.ssh\/authorized_keys<br \/>\n\u7a7a\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u62d2\u5426\u3057\u307e\u3059\u3002<br \/>\nPermitEmptyPasswords no<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u62d2\u5426\u3057\u307e\u3059\u3002\uff08\u516c\u958b\u9375\u306e\u8a2d\u5b9a\u78ba\u8a8d\u3067\u304d\u305f\u3089no\u3078\u4fee\u6b63\uff09<br \/>\nPasswordAuthentication yes\u2192no<br \/>\n\u203bssd\u306e\u30ea\u30b9\u30bf\u30fc\u30c8<br \/>\n\/etc\/init.d\/ssh restart<br \/>\nTera Term\u3001Putty\u3001WinSCP\u306a\u3069\u3067\u8a8d\u8a3c\u30ad\u30fc\u3092\u4f5c\u6210\u3057\u3001\u516c\u958b\u9375\u3092\u30b5\u30fc\u30d0\u30fc\u306bUP\u3057\u307e\u3059\u3002\u2192\u8a8d\u8a3cOK\u306a\u3089\u63a5\u7d9a\u53ef\u80fd<br \/>\nU\/L\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u516c\u958b\u9375\u3092\u751f\u6210\u3057\u307e\u3059\u3002<br \/>\nmkdir \/home\/xxx\/.ssh<br \/>\nchmod 700 \/home\/xxx\/.ssh<br \/>\nssh-keygen -i -f \/home\/xxx\/pubkey &gt;&gt; \/home\/xxx\/.ssh\/authorized_keys<br \/>\nchmod 600 authorized_keys<br \/>\n\u203b\u8a8d\u8a3c\u30ad\u30fc\u306f\u7aef\u672b\u3054\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3054\u3068\u306b\u5fc5\u8981\uff08\u4f8b\uff1aPutty\u7528\u3001WinSCP\u7528\u3001TeraTerm\u7528\uff09<br \/>\n\u516c\u958b\u9375\u306fssh-keygen\u3067\u6bce\u56de\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n11.samba\u5171\u6709\uff08Windows\u5171\u6709\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10039\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/800px_Logo_Samba_Software_svg-300x141.png\" alt=\"\" width=\"300\" height=\"141\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/800px_Logo_Samba_Software_svg-300x141.png 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/800px_Logo_Samba_Software_svg-520x245.png 520w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/800px_Logo_Samba_Software_svg-720x340.png 720w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/05\/800px_Logo_Samba_Software_svg.png 480w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nnano \/etc\/samba\/smb.conf<br \/>\nworkgroup\u540d\u3092\u6307\u5b9a\u5f8c\u3001\u6700\u7d42\u884c\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<br \/>\n[Share] \u5171\u6709\u540d<br \/>\ncomment = samba share<br \/>\npath = \/home\/user\/share \u2190\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092777\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nread only = no<br \/>\nbrowseable = yes<br \/>\nguest ok = yes<br \/>\nguest only = no<br \/>\ncreate mode = 0777<br \/>\ndirectory mode = 0777<br \/>\nshare modes = yes<br \/>\n\u203bsmbd\u306e\u30ea\u30b9\u30bf\u30fc\u30c8<br \/>\n\/etc\/init.d\/smbd restart<br \/>\n12.Desktop\u7248\u306b\u521d\u671f\u5c0e\u5165\u6e08\u307f\u306evnc\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\ngsettings set org.gnome.Vino require-encryption false<br \/>\n\u2192Windows Real VNC\u304b\u3089Desktop\u8868\u793a\u53ef\u80fd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PC\u30b5\u30fc\u30d0\u30fc\u306bUbuntu 16.04\u3092\u5c0e\u5165\u3057\u3066WordPress\u74b0&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":9399,"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":[31],"tags":[],"class_list":["post-10008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts\/10008","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=10008"}],"version-history":[{"count":0,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts\/10008\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/media\/9399"}],"wp:attachment":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}