{"id":920,"date":"2025-09-12T16:05:19","date_gmt":"2025-09-12T07:05:19","guid":{"rendered":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=920"},"modified":"2025-09-12T16:05:19","modified_gmt":"2025-09-12T07:05:19","slug":"wordpress%e7%a7%bb%e8%a1%8c%e6%89%8b%e9%a0%86%e9%9b%91","status":"publish","type":"post","link":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=920","title":{"rendered":"WordPress\u79fb\u884c\u624b\u9806(\u96d1)"},"content":{"rendered":"\n<p>\u4eca\u56de\u306e\u79fb\u884c\u624b\u9806\u3092\u7c21\u5358\u306b\u7d39\u4ecb\u3002<\/p>\n\n\n\n<p>\u79fb\u884c\u624b\u9806(MySQL+Apache HTTPD)<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u65b0\u30b5\u30fc\u30d0\u30fc\u306bApache HTTPD,letsencrypt,MySQL,PHP(\u6700\u4f4e\u9650php-mysqlnd\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u5fc5\u9808)\u3092\u5c0e\u5165<\/li>\n\n\n\n<li>\u65e7\u30b5\u30fc\u30d0\u30fc\u306eMySQL\u306eWordPress\u7528DB\u3092mysqldump\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<br>mysqldump -u &#8220;\u30e6\u30fc\u30b6\u30fc\u540d&#8221; [-p ] &#8220;WordPress\u7528DB\u540d&#8221; > &#8220;\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u540d&#8221;<\/li>\n\n\n\n<li>\u65b0\u30b5\u30fc\u30d0\u30fc\u306eMySQL\u306bWordPress\u7528DB\u3092\u4f5c\u6210\u3002\u30a2\u30af\u30bb\u30b9\u30e6\u30fc\u30b6\uff0d\u3082\u4f5c\u6210\u3057\u3001\u6a29\u9650\u3092\u4e0e\u3048\u308b\u3002<\/li>\n\n\n\n<li>\u65b0\u30b5\u30fc\u30d0\u30fc\u306eMySQL\u306eWordPress\u7528DB\u306b1.\u3067\u4f5c\u6210\u3057\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<br>mysql -u &#8220;\u30e6\u30fc\u30b6\u30fc\u540d&#8221; [-p] &#8220;WordPressDB\u540d&#8221; &lt; &#8220;\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u540d&#8221;<\/li>\n\n\n\n<li>WordPress\u6700\u65b0\u7248\u3092\u5c55\u958b\u3002<br>\u3053\u306e\u969b\u3001\u6240\u6709\u8005\u3092apache:apache\u3068\u3057\u306a\u3044\u3068\u3001\u66f4\u65b0\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3069\u306e\u53d6\u5f97\u6642\u306bftp\u306e\u8a8d\u8a3c\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3002<br>\u203b\u6700\u65b0\u7248\u3067\u306a\u304f\u3066\u3001\u524d\u30b5\u30fc\u30d0\u30fc\u306e&lt;wordpress\u30d5\u30a9\u30eb\u30c0>\u5185\u5bb9\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3067\u3082\u826f\u3044\u306e\u304b\u3082<\/li>\n\n\n\n<li>WordPress\u4e0b\u306ewp-config-sample.php\u3092wp-config.php\u306b\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u304b\u30b3\u30d4\u30fc\u3059\u308b\u3002<\/li>\n\n\n\n<li>wp-config.php\u306e\u4e0b\u8a18\u306e\u90e8\u5206\u3092\u73fe\u884c\u30b7\u30b9\u30c6\u30e0\u306e\u7269\u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/li>\n<\/ol>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-php\" data-file=\"wp-config.php\" data-lang=\"PHP\"><code>\/\/ ** Database settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine( &#39;DB_NAME&#39;, &#39;database_name_here&#39; );\n\n\/** Database username *\/\ndefine( &#39;DB_USER&#39;, &#39;username_here&#39; );\n\n\/** Database password *\/\ndefine( &#39;DB_PASSWORD&#39;, &#39;password_here&#39; );\n\n\/** Database hostname *\/\ndefine( &#39;DB_HOST&#39;, &#39;localhost&#39; );\n\n\/** Database charset to use in creating database tables. *\/\ndefine( &#39;DB_CHARSET&#39;, &#39;utf8&#39; );\n\n\/** The database collate type. Don&#39;t change this if in doubt. *\/\ndefine( &#39;DB_COLLATE&#39;, &#39;&#39; );\n\n\/**#@+\n * Authentication unique keys and salts.\n *\n * Change these to different unique phrases! You can generate these using\n * the {@link https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/ WordPress.org secret-key service}.\n *\n * You can change these at any point in time to invalidate all existing cookies.\n * This will force all users to have to log in again.\n *\n * @since 2.6.0\n *\/\ndefine( &#39;AUTH_KEY&#39;,         &#39;put your unique phrase here&#39; );\ndefine( &#39;SECURE_AUTH_KEY&#39;,  &#39;put your unique phrase here&#39; );\ndefine( &#39;LOGGED_IN_KEY&#39;,    &#39;put your unique phrase here&#39; );\ndefine( &#39;NONCE_KEY&#39;,        &#39;put your unique phrase here&#39; );\ndefine( &#39;AUTH_SALT&#39;,        &#39;put your unique phrase here&#39; );\ndefine( &#39;SECURE_AUTH_SALT&#39;, &#39;put your unique phrase here&#39; );\ndefine( &#39;LOGGED_IN_SALT&#39;,   &#39;put your unique phrase here&#39; );\ndefine( &#39;NONCE_SALT&#39;,       &#39;put your unique phrase here&#39; );\n\n\/**#@-*\/<\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<p>\u4e0a\u8a18\u306eAUTH_KEY\u4ee5\u4e0b\u306fPHP\u30b3\u30e1\u30f3\u30c8\u306b\u3082\u3042\u308b\u3068\u304a\u308a\u3001<a href=\"https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\">https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/a>\u304b\u3089\u53d6\u5f97\u3059\u308b\u306e\u304c\u7c21\u5358\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5f8c\u3001\u7ba1\u7406\u8005\u3068\u3057\u3066\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u65e7\u30b5\u30fc\u30d0\u30fc\u3067\u4f7f\u7528\u3057\u3066\u3044\u305f\u3001thema\u3084plug-in\u7b49\u3092\u8ffd\u52a0\u3002(\u4ee5\u524d\u306e\u5185\u5bb9\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u3044\u305f\u3089\u3001\u8981\u3089\u306a\u3044\u306e\u304b\u3082)<\/p>\n\n\n\n<p>&lt;wordpress\u30d5\u30a9\u30eb\u30c0>\/wp-content\/uploads\u306b\u524d\u30b5\u30fc\u30d0\u30fcuploads\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3002<br>(\u3053\u3053\u3082\u4e0a\u8a18\u3068\u540c\u69d8)<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u7b49\u3092\u898b\u3066\u3001\u5fc5\u8981\u306aphp\u30e2\u30b8\u30e5\u30fc\u30eb\u7b49\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u884c\u306a\u3063\u305f\u306e\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306e\u79fb\u884c\u624b\u9806\u3092\u7c21\u5358\u306b\u7d39\u4ecb\u3002 \u79fb\u884c\u624b\u9806(MySQL+Apache HTTPD)  &hellip; <a href=\"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=920\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,7],"tags":[],"class_list":["post-920","post","type-post","status-publish","format-standard","hentry","category-29","category-7"],"_links":{"self":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=920"}],"version-history":[{"count":4,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions"}],"predecessor-version":[{"id":924,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions\/924"}],"wp:attachment":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}