{"id":11530,"date":"2014-03-09T10:56:45","date_gmt":"2014-03-09T01:56:45","guid":{"rendered":"http:\/\/www.mocchiblog.com\/?p=11530"},"modified":"2014-06-19T14:53:01","modified_gmt":"2014-06-19T05:53:01","slug":"wordpress%e3%82%92%e3%81%95%e3%81%8f%e3%82%89%e3%81%aevps%e3%81%ab%e7%a7%bb%e8%a1%8c%e3%81%97%e3%81%9f%e3%81%ae%e3%81%a7%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"http:\/\/www.mocchiblog.com\/?p=11530","title":{"rendered":"WordPress\u3092\u30d8\u30c6\u30e0\u30eb\uff08heteml\uff09\u304b\u3089\u300c\u3055\u304f\u3089\u306eVPS\u300d\u306b\u79fb\u884c\u3057\u3066\u8a2d\u7f6e\u3057\u305f\u30e1\u30e2"},"content":{"rendered":"<div id=\"attachment_11534\" style=\"width: 429px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11534\" loading=\"lazy\" class=\" wp-image-11534\" src=\"http:\/\/www.mocchiblog.com\/wp-content\/images\/2014\/03\/googledatacenter.jpg\" alt=\"\" width=\"419\" height=\"278\" \/><p id=\"caption-attachment-11534\" class=\"wp-caption-text\">Google Data Center<\/p><\/div>\n<p>\u30da\u30d1\u30dc\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u300c<a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=2BLL6T+3LSLQQ+348+TW6AA\" target=\"_blank\" data-wpel-link=\"external\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u30d8\u30c6\u30e0\u30eb<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><img loading=\"lazy\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www15.a8.net\/0.gif?a8mat=2BLL6T+3LSLQQ+348+TW6AA\" alt=\"\">\u300d\u306f\u3001\u9577\u5e74\uff08\u304a\u305d\u3089\u304f2005\u5e7411\u6708\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u59cb\u307e\u3063\u305f\u3068\u304d\u304b\u3089\u306a\u306e\u3067\u3001\u5bb6\u5165\u3055\u3093\u304c\u4ee3\u8868\u53d6\u7de0\u5f79\u306e\u73fe\u5f79\u3060\u3063\u305f\u3068\u304d..!\uff09\u305a\u3063\u3068\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u305f\u3073\u672c\u30d6\u30ed\u30b0\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u7528\u30b5\u30fc\u30d0\u30fc\u3092\u3001\u30d8\u30c6\u30e0\u30eb\u304b\u3089<a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=2BLL6T+4325II+D8Y+BWVTE\" target=\"_blank\" data-wpel-link=\"external\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u3055\u304f\u3089\u306eVPS<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><img loading=\"lazy\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www15.a8.net\/0.gif?a8mat=2BLL6T+4325II+D8Y+BWVTE\" alt=\"\">\u306b\u79fb\u884c\u3057\u307e\u3057\u305f\u3002\u30d6\u30ed\u30b0\u4ee5\u5916\u306e\u30b5\u30a4\u30c8\u3001\u53cb\u4eba\u306e\u4ee3\u7406\u3067\u904b\u55b6\u3057\u3066\u3044\u308bWeb\u30b5\u30a4\u30c8\u306a\u3069\u3082\u3042\u308b\u306e\u3067\u3001Heteml\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u7d99\u7d9a\u3057\u3066\u5951\u7d04\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d8\u30c6\u30e0\u30eb\u3092\u4f7f\u3044\u7d9a\u3051\u3066\u3088\u304b\u3063\u305f\u70b9\u3068\u3057\u3066\u306f\u3001\u307e\u305a<strong>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3053\u3068\uff06\u65e5\u3005\u6539\u5584\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/strong>\u3002\u521d\u5fc3\u8005\u3084\u3001\u9759\u7684\u30b5\u30a4\u30c8\u3092\u7ba1\u7406\u3059\u308b\u5c0f\u898f\u6a21\u306a\u4e8b\u696d\u8005\u30b5\u30a4\u30c8\u306a\u3069\u306b\u306f\u3001\u4e00\u756a\u304a\u3059\u3059\u3081\u3057\u305f\u3044\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002WordPress\u306e\u5229\u7528\u8005\u5897\u3067\u3001\u3044\u308f\u3086\u308b\u300c\u30af\u30a4\u30c3\u30af\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u3084\u300c\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u306a\u3069\u304c\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u696d\u754c\u306e\u5dee\u5225\u5316\u306e\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066PR\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001Heteml\u306e\u30af\u30a4\u30c3\u30af\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7c21\u5358\u3067\u3001\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30fb\u30a2\u30ab\u30a6\u30f3\u30c8\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u78ba\u8a8d\u306a\u3069\u5206\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002\uff08\u3055\u304f\u3089\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u306eUI\u306f\u3001\u6570\u5e74\u524d\u304b\u3089\u5909\u308f\u3063\u3066\u3044\u306a\u3044\uff09<\/p>\n<p><a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=2BLL6T+4326AA+D8Y+C2GFL\" target=\"_blank\" data-wpel-link=\"external\" rel=\"follow noopener noreferrer\" class=\"ext-link\"><br \/>\n<img loading=\"lazy\" border=\"0\" width=\"468\" height=\"60\" alt=\"\" src=\"http:\/\/www25.a8.net\/svt\/bgt?aid=140415365247&#038;wid=005&#038;eno=01&#038;mid=s00000001717002027000&#038;mc=1\"><\/a><img loading=\"lazy\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www16.a8.net\/0.gif?a8mat=2BLL6T+4326AA+D8Y+C2GFL\" alt=\"\"><\/p>\n<p>\u4e00\u65b9\u3067\u3001\u3044\u308f\u3086\u308b\u7d14\u7c8b\u306a\u30b5\u30fc\u30d0\u30fc\u30b9\u30da\u30c3\u30af\u3068\u3044\u3046\u89b3\u70b9\u306b\u304a\u3044\u3066\u306f\u3001\u5171\u7528\u30b5\u30fc\u30d0\u30fc\u306e\u6027\u8cea\u4e0a\u3001\u3069\u3046\u3057\u3066\u3082\u4e2d\u301c\u5927\u898f\u6a21\u306a\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\uff08\u6307\u6a19\u3068\u3057\u3066\u540c\u6642\u30a2\u30af\u30bb\u30b9\u6570\u304c300\u4eba\u4ee5\u4e0a\u304f\u3089\u3044?\uff09\u3092\u3055\u3070\u304f\u306e\u306b\u306f\u96e3\u3057\u304f\u3001\u8a18\u4e8b\u306b\u3088\u3063\u3066\u4e00\u6642\u7684\u306a\u30a2\u30af\u30bb\u30b9\u304c\u5897\u3048\u308b\u6027\u8cea\u306e\u30d6\u30ed\u30b0\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u306b\u306f\u5411\u304b\u306a\u3044\u3068\u3044\u3046\u7d50\u8ad6\u306b\u81f3\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56deHeteml\u304b\u3089\u3001<a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=2BLL6T+4326AA+D8Y+BWVTE\" target=\"_blank\" data-wpel-link=\"external\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u3055\u304f\u3089\u306eVPS 2GB SSD<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><img loading=\"lazy\" src=\"http:\/\/www11.a8.net\/0.gif?a8mat=2BLL6T+4326AA+D8Y+BWVTE\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/> \u306e\u30d7\u30e9\u30f3\u3092\u5951\u7d04\u3057\u3066\u79fb\u884c\u3057\u3066\u307f\u305f\u306e\u3067\uff08\u6599\u91d1\u3082<strong>1,780\u5186\/\u6708\u984d<\/strong>\u3068\u5927\u5909\u30aa\u30c8\u30af\u3067\u3059\uff09\u3001\u305d\u306e\u624b\u9806\u306a\u3069\u3092\u81ea\u5206\u306e\u5099\u5fd8\u9332\u3068\u3057\u3066\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u3055\u304f\u3089VPS\u3067WordPress\u3092\u52d5\u304b\u3059\u4e0b\u6e96\u5099<\/h2>\n<p>\u79c1\u306e\u30ed\u30fc\u30ab\u30eb\u306e\u74b0\u5883\u306f\u3001Mac OS X 10.8\u3067\u6a19\u6e96\u306eTerminal\u3092\u4f7f\u7528\u3002<br \/>\nVPS\u306e\u74b0\u5883\u306f\u3001SSD2GB \/ \u4eee\u60f32\u30b3\u30a2 \/ \u30cd\u30fc\u30e0\u30b5\u30fc\u30d05\u30be\u30fc\u30f3 \/ Cent OS6<\/p>\n<p>\u3055\u304f\u3089\u306eWeb\u30da\u30fc\u30b8\u3092\u516c\u958b\u3059\u308b\u305f\u3081\u306e \/var\/www\/html\/ \u3067\u3059\u3002<\/p>\n<p>\u3055\u304f\u3089\u306eVPS\u3092\u5951\u7d04\u3059\u308b\u3068\u3001\u7533\u3057\u8fbc\u307f\u5b8c\u4e86\u30e1\u30fc\u30eb\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u3068\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u9001\u3089\u308c\u3066\u304d\u307e\u3059\u3002root@IP\u30a2\u30c9\u30ec\u30b9\u3067ssh\u63a5\u7d9a\u3057\u3066\u3001\u305d\u306e\u5f8c\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3067\u7d30\u304b\u304f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_11539\" style=\"width: 490px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11539\" loading=\"lazy\" class=\" wp-image-11539 \" src=\"http:\/\/www.mocchiblog.com\/wp-content\/images\/2014\/03\/sakura.png\" alt=\"\u3055\u304f\u3089VPS\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u60c5\u5831\" width=\"480\" height=\"278\" \/><p id=\"caption-attachment-11539\" class=\"wp-caption-text\">\u3055\u304f\u3089VPS\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u60c5\u5831<\/p><\/div>\n<h2>ssh\u30ed\u30b0\u30a4\u30f3<\/h2>\n<p>\u3055\u304f\u3089VPS\u3092\u5951\u7d04\u3057\u305f\u3089\u3001\u7ba1\u7406\u753b\u9762\uff08\u30d6\u30e9\u30a6\u30b6\uff09\u304b\u3089\uff11\u30af\u30ea\u30c3\u30af\u3067\u300c\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u300d\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u304b\u3089SSH\u63a5\u7d9a\u304c\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre>ssh root@xxx.xxx.xxx\n:\uff08\u30e1\u30fc\u30eb\u3067\u5c4a\u3044\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\uff09<\/pre>\n<p>SSH\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3067\u304d\u305f\u3089\u3001\u3044\u3088\u3044\u3088\u771f\u3063\u3055\u3089\u306a\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u4e0a\u306b\u3001\u81ea\u5206\u306e\u597d\u304d\u306a\u3088\u3046\u306b\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3055\u304f\u3089VPS\u30b5\u30fc\u30d0\u30fc\u306f\u521d\u671f\u8a2d\u5b9a\u3067\u306fCentOS\u3067\u3059\u306e\u3067\u3001yum\u3067WordPress\u304c\u7a3c\u52d5\u3059\u308b\u74b0\u5883\u69cb\u7bc9\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56<\/h2>\n<p>\u305d\u306e\u524d\u306b\u3001\u521d\u671f\u8a2d\u5b9a\u3084\u6700\u4f4e\u9650\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3001\u4f5c\u696d\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u306a\u3069\u3092\u884c\u3044\u307e\u3059\u3002<span style=\"color: #dd260d;\">\u203b \u6700\u4f4e\u9650\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3067\u3059\u306e\u3067\u3001\u672c\u756a\u74b0\u5883\u3067\u306f\u3001SSH\u30dd\u30fc\u30c8\u306e\u5909\u66f4\u3001iptables\u3067\u306e\u30d5\u30a1\u30a4\u30e4\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u3001\u79d8\u5bc6\u9375-\u516c\u958b\u9375\u8a8d\u8a3c\u306a\u3069\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/span>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u5272\u611b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u300c\u3055\u304f\u3089\u306eVPS \u521d\u671f\u8a2d\u5b9a\u3067\u3084\u308b\u3079\u304d\u3053\u3068\u300d\u306e\u3088\u3046\u306a\u4ed6\u30b5\u30a4\u30c8\u306e\u8a18\u4e8b\u3092\u4e26\u884c\u3057\u3066\u8aad\u3080\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>root\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4<\/h3>\n<p>\u7ba1\u7406\u753b\u9762\u306e\u30d6\u30e9\u30a6\u30b6\u4e0a\u304b\u3089\u53ef\u80fd\u3067\u3059\u3002\u79c1\u306f12\u6841\u306e\u82f1\u6570\u5b57(\u5c0f\u6587\u5b57\/\u5927\u6587\u5b57\/\u6570\u5b57)\u306e\u4e71\u6570\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3><span style=\"font-size: 1.17em; line-height: 1.5em;\">\u4f5c\u696d\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0<\/span><\/h3>\n<pre># useradd testuser\n# passwd hogehoge \/\/ \u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\n# usermod -G wheel testuser  \/\/ \u30e6\u30fc\u30b6\u30fc\u3092wheel(\u7ba1\u7406\u8005\u30b0\u30eb\u30fc\u30d7)\u306b\u8a2d\u5b9a<\/pre>\n<p>\u4f5c\u696d\u30e6\u30fc\u30b6\u30fc(sudo\u6a29\u9650\u3042\u308a)\u3067\u3001ssh\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<\/p>\n<pre><code># visudo\n<\/code><code>---\n<\/code><code>## Allows people in group wheel to run all commands\n<\/code>- <code># %wheel ALL=(ALL) ALL\n<\/code><code>+ %wheel ALL=(ALL) ALL \/\/\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3057\u3066wheel group\u304csudo\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306bsudo\u6a29\u9650\u306e\u3042\u308b\u4f5c\u696d\u30e6\u30fc\u30b6\u30fc\u3067SSH\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>ssh testuser@xxx.xxx.xxx\n: (testuser\u7528\u306b\u4f5c\u3063\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\uff09<\/pre>\n<h2>WordPress\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092yum install<\/h2>\n<pre><code># yum -y update  \/\/ yum\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/code><\/pre>\n<pre># yum install -y mysql-server php php-devel php-mbstring php-mysql php-pdo php-xml php-gd httpd  \/\/ WordPress\u74b0\u5883\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u5f0f<\/pre>\n<h2>MySQL\u306e\u8a2d\u5b9a<\/h2>\n<pre># vi \/etc\/my.cnf<\/pre>\n<p>\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u8ffd\u8a18\u3059\u308b<\/p>\n<pre>[mysqld]\nskip-character-set-client-handshake\ncharacter-set-server = utf8\ncollation-server = utf8_general_ci\n\n[client]\ndefault-character-set = utf8\n\n[mysqldump]\ndefault-character-set = utf8\n\n[mysql]\ndefault-character-set = utf8<\/pre>\n<p>MySQL\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\uff08\u203b \u5951\u7d04\u4e2d\u306e\u3055\u304f\u3089\u306eVPS\u306b\u7d10\u3065\u304fMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\uff09<\/p>\n<pre>mysqladmin -u root password 'hogehoge';<\/pre>\n<p>MySQL\u3092\u8d77\u52d5\u3059\u308b\u3002OK\u3068\u51fa\u308c\u3070\u6210\u529f\u3002<\/p>\n<pre># sudo \/etc\/init.d\/mysqld start<\/pre>\n<p>MySQL\u306b\u30ed\u30b0\u30a4\u30f3<\/p>\n<pre>#\u00a0mysql -uroot -p   \/\/ \u305d\u306e\u5f8c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\uff08\u4e0a\u8a18\u4f8b\u3067\u306f hogehoge \uff09<\/pre>\n<p>WordPress\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210<\/p>\n<pre>create database \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d default character set utf8;<\/pre>\n<p>\u203b \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306b\u306f\u300cwordpress\u300d\u3084\u3001\u81ea\u5206\u306e\u30d6\u30ed\u30b0\u540d(\u82f1\u6570\u5b57)\u306a\u3069\u81ea\u7531\u306b\u3002<\/p>\n<h2>\u3044\u3088\u3044\u3088WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3002 html\/\u4ee5\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306e\u547d\u540d\u306f\u81ea\u7531\u3067\u3059\u3002<\/p>\n<pre># mkdir \/var\/www\/html\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d  \/\/(\u4f8b:wordpress)\n# cd \/var\/www\/html\/wordpress<\/pre>\n<p>WordPress\u6700\u65b0\u7248\uff082014.3.9\u6642\u70b9\u30673.8.1\uff09\u3092wget\u30b3\u30de\u30f3\u30c9\u3067\u53d6\u5f97\u3001\u5c55\u958b<\/p>\n<pre># wget http:\/\/ja.wordpress.org\/wordpress-3.8.1-ja.zip\n# unzip wordpress-3.8.1-ja.zip\n# chown apache:apache -R wordpress  \/\/ Apache\u6a29\u9650\u306b\u3059\u308b<\/pre>\n<h2>Apache\u306e\u8a2d\u5b9a\u306a\u3069<\/h2>\n<p>\u3082\u3046\u5c11\u3057\u3067\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306bApache\u306e\u8a2d\u5b9a\u306a\u3069\u884c\u3044\u307e\u3059\u3002<br \/>\n\u79c1\u306f\u6700\u521d\u3001\u3055\u304f\u3089\u306b\u5272\u308a\u632f\u3089\u308c\u305f\u30db\u30b9\u30c8\u540d\u3067\u3001\/var\/www\/html\/\u30eb\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>#\u00a0vi \/etc\/httpd\/conf.d\/virtualhost.conf<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3002<\/p>\n<pre>NameVirtualHost *:80\n\n&lt;VirtualHost *:80&gt;\nDocumentRoot \/var\/www\/html\nServerName XXXXXX.sakura.ne.jp\n&lt;Directory \"\/var\/www\/html\"&gt;\n AllowOverride All\n&lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\u8d77\u52d5\u3057\u307e\u3059<\/p>\n<pre># sudo \/etc\/init.d\/httpd configtest\n# \/etc\/init.d\/httpd start<\/pre>\n<p>\u3053\u308c\u3067\u3001\u3055\u304f\u3089\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30db\u30b9\u30c8\u540d\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089root\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u306f\u3001\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306b\u3082\u884c\u3044\u307e\u3059\u3002\u53c2\u8003\u307e\u3067\u306b\u79c1\u306e\u8a2d\u5b9a\u4f8b\u3092\u3002<\/p>\n<pre>&lt;VirtualHost *:80&gt;\nDocumentRoot \/var\/www\/html\/mocchiblog\nServerName www.mocchiblog.com\n&lt;Directory \"\/var\/www\/html\/mocchiblog\"&gt;\n AllowOverride All\n&lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;<\/pre>\n<h2>\u3042\u3068\u306f\u30d6\u30e9\u30a6\u30b6\u3067WordPress\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u5b8c\u4e86<\/h2>\n<p>http:\/\/\u30db\u30b9\u30c8\u540d.sakura.ne.jp\/wordpress\/ \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001wp-install.php \u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u6210\u529f\u3067\u3059\u3002<br \/>\n\u3053\u306e\u3042\u3068\u3001WordPress\u3092\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\uff1a\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fDB\u306e\u540d\u524d<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\uff1aMySQL\u306e\u30d1\u30b9\u30ef\u30fc\u30c9<br \/>\n\u63a5\u982d\u8a9e\uff1awp_ \u306e\u307e\u307e\u3067OK<\/p>\n<h2>\u3010\u88dc\u8db3\u3011\u5fc5\u8981\u306b\u5408\u308f\u305b\u3066\u00a0vsftpd\u3001phpMyAdmin\u3092\u5c0e\u5165<\/h2>\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u521d\u3081\u3066\u5f15\u8d8a\u3057\u3055\u308c\u305f\u65b9\u306f\u3001SFTP\u63a5\u7d9a\u3084\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u306eMySQL\u64cd\u4f5c\u306e\u307b\u3046\u304c\u6163\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3053\u306e\uff12\u3064\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h4>(1) FTP\u63a5\u7d9a\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081 vsftpd \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre># yum -y install vsftpd  \/\/ \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n# sudo \/etc\/rc.d\/init.d\/vsftpd start  \/\/ \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u3001\u8d77\u52d5<\/pre>\n<p>vsftpd.conf\u306e\u8a2d\u5b9a<\/p>\n<p>\u4ee5\u4e0b\u306e\u5909\u66f4\u70b9\u3067\u3001\u7a7a\u767d\u30b9\u30da\u30fc\u30b9\u3084\u30b9\u30da\u30eb\u30df\u30b9\u304c\u3042\u308b\u3068\u52d5\u304b\u306a\u3044\u306e\u3067\u6ce8\u610f\u3092\u3002<\/p>\n<pre># sudo vi \/etc\/vsftpd\/vsftpd.conf\n\n- anonymous_enable=YES\n+ anonymous_enable=NO  \/\/\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u4e0d\u53ef\n\n- local_umask=022\n+ local_umask=002  \/\/\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092644\u306b\n\n- #ascii_upload_enable=YES\n- #ascii_download_enable=YES\n+ ascii_upload_enable=YES\n+ ascii_download_enable=YES  \/\/\u30a2\u30b9\u30ad\u30fc\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\n\n- #ftpd_banner=Welcome to blah FTP service.\n+ ftpd_banner=Welcome to blah FTP service.  \/\/\u30b7\u30b0\u30cb\u30c1\u30e3\u96a0\u853d\n\n- #chroot_list_enable=YES\n- #chroot_list_file=\/etc\/vsftpd\/chroot_list\n+ chroot_list_enable=YES  \/\/\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u307e\u3067\u53c2\u7167\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u8a2d\u5b9a\n+ chroot_list_file=\/etc\/vsftpd\/chroot_list  \/\/\u4e0a\u8a18\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\n\n- #ls_recurse_enable=YES\n+ ls_recurse_enable=YES  \/\/\u4e00\u62ec\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u8a31\u53ef<\/pre>\n<p>\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u9805\u76ee\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>#\/etc\/vsftpd\/user_list\u306e\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\nuserlist_deny=NO\n\n#\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u6642\u9593\u3092\u30ed\u30fc\u30ab\u30eb\u306b\nuse_localtime=YES\n\n#\u30e6\u30fc\u30b6\u30fc\u306e\u521d\u671f\u30a2\u30af\u30bb\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\nlocal_root=\/var\/www\/html\n\n#\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3088\u308a\u4e0a\u4f4d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u79fb\u52d5\u3092\u8a31\u53ef\u3057\u306a\u3044\nchroot_local_user=YES<\/pre>\n<h4>FTP\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u8a2d\u5b9a<\/h4>\n<pre># sudo vi \/etc\/vsftpd\/user_list  \/\/ \u3053\u3053\u306b\u8a18\u8ff0\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u540d\u304cFTP\u30e6\u30fc\u30b6\u30fc\n# sudo vi \/etc\/vsftpd\/chroot_list  \/\/ \u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u307e\u3067\u623b\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30b9\u30c8\uff08\u7a7a\u30d5\u30a1\u30a4\u30eb\u3067\u3082OK\uff09<\/pre>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308a\u3001OK\u304c2\u3064\u51fa\u308c\u3070\u6210\u529f\u3002<\/p>\n<pre># sudo \/etc\/rc.d\/init.d\/vsftpd restart<\/pre>\n<p>iptables\u306bFTP\u306e\u30dd\u30fc\u30c8\u63a5\u7d9a\u60c5\u5831\u3092\u8ffd\u8a18\uff08\u4ed6\u306b\u3082ssh\u3084smtp\u306a\u3069\u30dd\u30fc\u30c8\u8a2d\u5b9a\u3092\u884c\u3046\u30d5\u30a1\u30a4\u30eb\u3067\u3059\uff09<\/p>\n<pre># vi \/etc\/sysconfig\/iptables<\/pre>\n<pre>+ -A INPUT -p tcp -m tcp --dport 20 -j ACCEPT\n+ -A INPUT -p tcp -m tcp --sport 20 -j ACCEPT\n+ -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT\n+ -A INPUT -p tcp -m tcp --sport 21 -j ACCEPT<\/pre>\n<p>FTP\u306e\u30dd\u30fc\u30c8\u306f20\u300121\u3067\u3059\u3002<br \/>\n\u8a2d\u5b9a\u60c5\u5831\u3092\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre># sudo service iptables restart  \/\/ \u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306f\u3001iptables \u304b vsftpd.conf \u3092\u898b\u76f4\u3059\n# iptables -L  \/\/ \u73fe\u5728\u306eiptables\u306e\u8a2d\u5b9a\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b (ftp\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u305f\u3089\u6210\u529f)<\/pre>\n<h4>(2) \u30d6\u30e9\u30a6\u30b6\u304b\u3089MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u64cd\u4f5c\u3067\u304d\u308bphpMyAdmin\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre># yum -y install phpmyadmin\n<code># vi \/etc\/httpd\/conf.d\/phpMyAdmin.conf  \/\/ \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6<\/code><\/pre>\n<p><code>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/code><\/p>\n<pre><code>&lt;Directory \"\/usr\/share\/phpmyadmin\"&gt;\n  Options FollowSymLinks\n  AllowOverride All\n  Order Deny,Allow\n  Deny from all\n  Allow from 127.0.0.1\n  Allow from 192.168.\n&lt;\/Directory&gt;<\/code><\/pre>\n<h2>\u305d\u306e\u4ed6\u306e\u3053\u3068<\/h2>\n<p>WordPress\u3067\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\/\u66f4\u65b0\u306a\u3069\u81ea\u52d5\u3067\u3084\u3063\u3066\u304f\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308b\u305f\u3081\u3001<br \/>\nwp-content\u4ee5\u4e0b\u306e\u3001\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u203b FTP\u304c\u4f7f\u3048\u306a\u3044\u307b\u304b\u3001\u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3084\u3001\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001\u30c6\u30fc\u30de\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre>chmod 755 \/var\/www\/html\/wordpress\/wp-content<\/pre>\n<h2>\u30d9\u30f3\u30c1\u30de\u30fc\u30af<\/h2>\n<p>\u5f8c\u65e5\u6539\u3081\u3066\u3001\u8ca0\u8377\u30c6\u30b9\u30c8\u306a\u3069\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7d50\u679c\u3001\u901f\u5ea6\u306a\u3069\u8abf\u67fb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3002heteml\u306e\u5171\u7528\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u3055\u304f\u3089\u306eVPS SSD2GB\u3067\u3001\u7ba1\u7406\u753b\u9762\u3084\u30a2\u30af\u30bb\u30b9\u901f\u5ea6\u306a\u3069\u4f53\u611f\u901f\u5ea6\u306f\u304b\u306a\u308a\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u30ea\u30f3\u30af\uff1a<\/h2>\n<p><strong><a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=2BLL6T+4325II+D8Y+C0YF6\" target=\"_blank\" data-wpel-link=\"external\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u65b0\u30d7\u30e9\u30f3\u8ffd\u52a0\uff01\u3055\u304f\u3089\u306eVPS<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><img loading=\"lazy\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www15.a8.net\/0.gif?a8mat=2BLL6T+4325II+D8Y+C0YF6\" alt=\"\"><\/strong><\/p>\n<h2>\u53c2\u8003\u30ea\u30f3\u30af\uff1a<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.\u3055\u304f\u3089\u306eVPS.com\/\" data-wpel-link=\"external\" target=\"_blank\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">http:\/\/www.\u3055\u304f\u3089\u306eVPS.com\/<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><\/li>\n<li><a href=\"http:\/\/fnya.cocolog-nifty.com\/blog\/2013\/02\/vps-iptables-0c.html\" data-wpel-link=\"external\" target=\"_blank\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u3055\u304f\u3089 VPS \u306e\u30b5\u30fc\u30d0\u30fc\u306b iptables \u306e\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u305f: \u3042\u308b SE \u306e\u3064\u3076\u3084\u304d<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><\/li>\n<li><a href=\"http:\/\/blog.hybridism.com\/?p=140\" data-wpel-link=\"external\" target=\"_blank\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u3055\u304f\u3089VPS\u3092\u501f\u308a\u3066\u307e\u305a\u3057\u305f\u3053\u3068 at teppeilog<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><\/li>\n<li><a href=\"http:\/\/plusblog.jp\/6601\/\" data-wpel-link=\"external\" target=\"_blank\" rel=\"follow noopener noreferrer\" class=\"ext-link wpel-icon-right\">\u3055\u304f\u3089VPS\u306bFTP\u30b5\u30fc\u30d0\u30fc(vsftpd)\u30921\u6642\u9593\u3067\u5c0e\u5165<span class=\"wpel-icon wpel-image wpel-icon-3\"><\/span><\/a><\/li>\n<\/ul>\n<p><a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=2BLL6T+3LSLQQ+348+TS3OH\" target=\"_blank\" data-wpel-link=\"external\" rel=\"follow noopener noreferrer\" class=\"ext-link\"><br \/>\n<img loading=\"lazy\" border=\"0\" width=\"468\" height=\"60\" alt=\"\" src=\"http:\/\/www23.a8.net\/svt\/bgt?aid=140415365218&#038;wid=005&#038;eno=01&#038;mid=s00000000404005002000&#038;mc=1\"><\/a><img loading=\"lazy\" border=\"0\" width=\"1\" height=\"1\" src=\"http:\/\/www17.a8.net\/0.gif?a8mat=2BLL6T+3LSLQQ+348+TS3OH\" alt=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30da\u30d1\u30dc\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u300c\u30d8\u30c6\u30e0\u30eb\u300d\u306f\u3001\u9577\u5e74\uff08\u304a\u305d\u3089\u304f2005\u5e7411\u6708\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u59cb\u307e\u3063\u305f\u3068\u304d\u304b\u3089\u306a\u306e\u3067\u3001\u5bb6\u5165\u3055\u3093\u304c\u4ee3\u8868\u53d6\u7de0\u5f79\u306e\u73fe\u5f79\u3060\u3063\u305f\u3068\u304d..!\uff09\u305a\u3063\u3068\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u305f\u3073\u672c\u30d6\u30ed\u30b0\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u7528\u30b5\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13335,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11530"}],"collection":[{"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11530"}],"version-history":[{"count":0,"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=\/wp\/v2\/media\/13335"}],"wp:attachment":[{"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11530"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mocchiblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}