{"id":15192,"date":"2016-08-25T23:58:46","date_gmt":"2016-08-25T14:58:46","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=15192"},"modified":"2016-08-26T01:00:05","modified_gmt":"2016-08-25T16:00:05","slug":"how-to-run-of-wp-cron-php-for-multisite","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2016\/08\/how-to-run-of-wp-cron-php-for-multisite.html","title":{"rendered":"\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u904b\u7528\u306eWordPress\u3067wp-cron.php\u3092cron\u304b\u3089\u8d77\u52d5\u3059\u308b"},"content":{"rendered":"<p>GoDaddy\u3067\u30b5\u30fc\u30d0\u3092\u501f\u308a\u3066\u3001WordPress\u3092\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u3002\u5e2f\u57df\u3084\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u306f\u307b\u3068\u3093\u3069\u6c17\u306b\u3057\u306a\u304f\u3066\u826f\u3044\u306e\u3067\u3059\u304c\u3001CPU\u3084\u30e1\u30e2\u30ea\u30ea\u30bd\u30fc\u30b9\u304c\u30b7\u30d3\u30a2\u3067\u3059\u3002\u6cb9\u65ad\u3059\u308b\u3068\u3001\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u5236\u9650\u306b\u5f15\u3063\u304b\u304b\u308a\u307e\u3059\u3002\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u6b21\u306e\u8a18\u4e8b\u306b\u5f93\u3063\u3066\u3001CPU\u3084\u30e1\u30e2\u30ea\u30ea\u30bd\u30fc\u30b9\u306e\u524a\u6e1b\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.sitespiral.jp\/archives\/249.html\" target=\"_blank\">\u3044\u3064\u306e\u9593\u306b\u304bWordpress\u306eCPU\u4f7f\u7528\u7387\u304c\u3069\u3048\u3089\u3044\u3053\u3068\u306b\uff01 9\u3064\u306e\u6539\u5584\u6848 | \u30b5\u30a4\u30c8\u30b9\u30d1\u30a4\u30e9\u30eb(Sitespiral)<\/a><\/li>\n<\/ul>\n<p>\u305d\u306e\u9805\u76ee\u306e\u4e00\u3064\u306b\u3001wp-cron.php\u3092WordPress\u306e\u4e2d\u304b\u3089\u8d77\u52d5\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30b7\u30b9\u30c6\u30e0\u306ecron\u3092\u4f7f\u3063\u3066\u8d77\u52d5\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b7\u30f3\u30b0\u30eb\u30b5\u30a4\u30c8\u306eWordPress\u306a\u3089&#8230;<\/h2>\n<p>\u30b7\u30f3\u30b0\u30eb\u30b5\u30a4\u30c8\u306b\u3064\u3044\u3066\u306e\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u306f\u3001\u691c\u7d22\u3059\u308b\u3068\u3044\u304f\u3089\u3067\u3082\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u6700\u521d\u306b\u53c2\u8003\u306b\u3057\u305f\u306e\u306f\u3001\u6b21\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.starlod.net\/wp-cron.html\" target=\"_blank\">\u3010CentOS\u3011\u30b5\u30fc\u30d0\u30fc\u5074\u306ecron\u3092\u6709\u52b9\u306b\u3057\u3066WordPress\u306ewp-cron.php\u3092\u7121\u52b9\u306b\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<\/ul>\n<p>\u57fa\u672c\u7684\u306a\u3001\u624b\u9806\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>wp-config.php\u306b\u3001define(&#8216;DISABLE_WP_CRON&#8217;, &#8216;true&#8217;);\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n<li>wget\u3084curl\u3092\u7528\u3044\u3066wp-cron.php\u3092\u3001cron\u304b\u3089\u547c\u3073\u51fa\u3059\u8a2d\u5b9a\u3092\u3059\u308b<\/li>\n<\/ol>\n<h2>\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306eWordPress\u306a\u3089&#8230;<\/h2>\n<p>\u30b7\u30f3\u30b0\u30eb\u30b5\u30a4\u30c8\u306a\u3089\u3053\u308c\u3067\u7d42\u308f\u308a\u306a\u306e\u3067\u3059\u304c\u3001\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u3060\u3068\u3001\u3082\u3046\u4e00\u5de5\u592b\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u624b\u9806\u3092\u3001\u5168\u30b5\u30a4\u30c8\u306b\u5bfe\u3057\u3066\u306e\u5b9f\u884c\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u691c\u7d22\u3057\u3066\u3059\u3050\u306b\u898b\u3064\u304b\u308b\u306e\u306f\u3001\u6b21\u306e\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b? \u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/xinroom.net\/dev\/wp-cron\/\" target=\"_blank\">WordPress\u306e\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u6a5f\u80fd\u3092\u4f7f\u3046\u3068wp-cron.php\u306e\u505c\u6b62\u304c\u5384\u4ecb\u3060\u3063\u305f | \u958b\u767a\uff20\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u4f11\u65e5<\/a><\/li>\n<\/ul>\n<p>WP-Cli\u3092\u4f7f\u3063\u3066\u3001\u9ad8\u5ea6\u306ashell\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e\u5b9f\u73fe\u3082\u53ef\u80fd\u306e\u3088\u3046\u3067\u3059\u3002\u3059\u3054\u3044\u3067\u3059\u3002\u3067\u3082\u3001\u9ad8\u5ea6\u3059\u304e\u3066\u3001\u3064\u3044\u3066\u3044\u3051\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/qiita.com\/yoshiaki_0245\/items\/1bb4e474c58341b5b235\" target=\"_blank\">WordPress\u3067\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306eWP-Cron\u306e\u5b9f\u884c\u65b9\u6cd5 &#8211; Qiita<\/a><\/li>\n<\/ul>\n<p>\u65e5\u672c\u8a9e\u3067\u691c\u7d22\u3057\u3066\u7c21\u5358\u306b\u898b\u3064\u304b\u308b\u306e\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002WordPress\u306e\u4ed5\u7d44\u307f\u3092\u5229\u7528\u3057\u3066\u3001\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306b\u3067\u304d\u306a\u3044\u3082\u306e\u304b\u3068\u3001\u82f1\u8a9e\u3067\u66f8\u304b\u308c\u305f\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3082\u691c\u7d22\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u898b\u3064\u3051\u305f\u306e\u304c\u3001\u6b21\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3092\u4f7f\u3063\u305f\u6539\u826f\u7248\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3082\u3042\u308a\u307e\u3057\u305f\u3002Thank you!<\/p>\n<ul>\n<li><a href=\"https:\/\/premium.wpmudev.org\/forums\/topic\/multisite-run-wp-cron-on-each-site\" target=\"_blank\">Multisite run wp cron on each site<\/a><\/li>\n<li><a href=\"https:\/\/tigr.net\/3203\/2014\/09\/13\/getting-wordpress-cron-work-in-multisite-environment\/\" target=\"_blank\">Getting WordPress cron work in multisite environment \u2013 Tigr.net<\/a><\/li>\n<\/ul>\n<p>\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u904b\u7528\u3057\u3066\u3044\u308bWordPress\u3067wp-cron.php\u3092cron\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u6b21\u306e3\u3064\u306e\u30dd\u30a4\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>wp-load.php\u3092\u6b63\u3057\u304f\u8aad\u307f\u8fbc\u3080<\/li>\n<li>\u5168\u30b5\u30a4\u30c8\u306b\u5bfe\u3057\u3066wp-cron.php\u3092\u5b9f\u884c\u3059\u308b<\/li>\n<li>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092cron\u3067\u5b9f\u884c\u3059\u308b<\/li>\n<\/ol>\n<h3>1. wp-load.php\u3092\u6b63\u3057\u304f\u8aad\u307f\u8fbc\u3080<\/h3>\n<p>wp-load.php\u3092\u8aad\u307f\u8fbc\u3080\u3068\u3001WordPress\u4ee5\u5916\u306ePHP\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001WordPress\u306e\u95a2\u6570\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4eca\u56de\u3001\u6b21\u306e\u4e8c\u3064\u306e\u95a2\u6570\u3092\u4f7f\u3044\u305f\u3044\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>get_sites() \u307e\u305f\u306f wp_get_sites()<\/li>\n<li>wp_remote_get()<\/li>\n<\/ul>\n<p>wp-load.php\u3092\u8aad\u307f\u8fbc\u3080\u6642\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u56f0\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\nStatus: 302 Moved Temporarily\r\nLocation: http:\/\/oichinote.com\/\r\nContent-type: text\/html; charset=UTF-8\r\n<\/pre>\n<p>\u3053\u306e\u539f\u56e0\u306b\u3064\u3044\u3066\u3082\u3044\u308d\u3044\u308d\u8abf\u3079\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u884c\u304d\u7740\u3044\u305f\u306e\u304c\u3001\u6539\u826f\u7248\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a(\u8aac\u660e\u6587\u306b\u3082\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c)\u3001$_SERVER[&#8216;HTTP_HOST&#8217;]\u3092\u6b63\u3057\u304f\u8a2d\u5b9a\u3059\u308b\u4e8b\u3067\u3059\u3002\u4eca\u56de\u3001cron\u304b\u3089\u76f4\u63a5PHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001$_SERVER[&#8216;HTTP_HOST&#8217;]\u304c\u8a2d\u5b9a\u3055\u308c\u305a\u3001\u30b9\u30c6\u30fc\u30bf\u30b9302\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>cron\u304b\u3089\u8d77\u52d5\u3059\u308b\u6642\u306b\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u76f4\u63a5\u547c\u3076\u306e\u3067\u306f\u306a\u304f\u3001wget\u3084curl\u3067\u547c\u3073\u3060\u305b\u3070\u3001\u3053\u306e\u8a2d\u5b9a\u304c\u7121\u304f\u3066\u3082wp-load.php\u3092\u8aad\u307f\u8fbc\u3081\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30ea\u30bd\u30fc\u30b9\u3092\u7121\u99c4\u306b\u6d88\u8cbb\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u3001\u6b21\u306e\u69d8\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002example.com\u306f\u3054\u4f7f\u7528\u306e\u30b5\u30a4\u30c8\u540d\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"hljs\"><code class=\"php\">$_SERVER[&#039;HTTP_HOST&#039;] = &#039;example.com&#039;; \/\/ Your Site\r\n<\/code><\/pre>\n<p>\u7121\u4e8b\u306b\u3001WordPress\u95a2\u6570\u3092\u5b9f\u884c\u3067\u304d\u308b\u69d8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>2. \u5168\u30b5\u30a4\u30c8\u306b\u5bfe\u3057\u3066wp-cron.php\u3092\u5b9f\u884c\u3059\u308b<\/h3>\n<p>\u5168\u30b5\u30a4\u30c8\u306b\u5bfe\u3057\u3066wp-cron.php\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u3001\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u5168\u30b5\u30a4\u30c8\u60c5\u5831\u3092\u53d6\u308a\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>WordPress\u306b\u306f\u3001\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u5168\u30b5\u30a4\u30c8\u60c5\u5831\u3092\u53d6\u308a\u51fa\u3059\u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u3002get_sites()\u3067\u3059\u3002get_sites()\u306fWordPress 4.6\u3067\u8ffd\u52a0\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u308c\u4ee5\u524d\u306eWordPress\u306a\u3089\u3001wp_get_sites()\u3092\u4f7f\u3044\u307e\u3059\u3002SQL\u6587\u3092\u66f8\u3044\u3066WordPress\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u76f4\u63a5\u89e6\u3063\u3066\u5404\u30b5\u30a4\u30c8\u3092\u53d6\u308a\u51fa\u3059\u3088\u308a\u3082\u3001\u3053\u306e\u65b9\u6cd5\u306e\u65b9\u304c\u5b89\u5168\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5168\u30b5\u30a4\u30c8\u60c5\u5831\u3092\u53d6\u308a\u51fa\u3057\u305f\u5f8c\u306f\u3001http\u7d4c\u7531\u3067wp-cron.php\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u547c\u3073\u51fa\u3059\u305f\u3081\u306eURL\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3001wp_remote_get()\u3092\u4f7f\u3063\u3066\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002wp_remote_get()\u306f\u3001GET\u30e1\u30bd\u30c3\u30c9\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u95a2\u6570\u3067\u3059\u3002\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u6295\u7a3f\u3060\u3068\u3001cURL\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001WordPress\u306e\u95a2\u6570\u3092\u4f7f\u3063\u305f\u65b9\u304c\u7c21\u5358\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3067\u304d\u305f\u306e\u304c\u3001\u6b21\u306ePHP\u30b9\u30af\u30ea\u30d7\u30c8(wp-cron-multisite.php)\u3067\u3059\u3002WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u3068\u540c\u3058\u5834\u6240\u306b\u7f6e\u304d\u307e\u3059\u3002\u304a\u305d\u3089\u304f\u3001WordPress 3.7.0\u4ee5\u4e0a\u306a\u3089\u52d5\u4f5c\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002WordPress 4.6.0\u3067\u3057\u304b\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"hljs\"><code class=\"php\">&lt;?php\r\n\/\/ Multisite run wp cron on each site &lt;https:\/\/premium.wpmudev.org\/forums\/topic\/multisite-run-wp-cron-on-each-site&gt;\r\n\/\/ Getting WordPress cron work in multisite environment \u2013 Tigr.net &lt;https:\/\/tigr.net\/3203\/2014\/09\/13\/getting-wordpress-cron-work-in-multisite-environment\/&gt;\r\n\r\n$_SERVER[&#039;HTTP_HOST&#039;] = &#039;example.com&#039;; \/\/ Your Site\r\nrequire_once(__DIR__ . &#039;\/wp-load.php&#039;); \/\/ PHP &gt;= 5.3.0\r\n\r\n$wp_version = get_bloginfo(&#039;version&#039;);\r\n$blogs = ($wp_version &gt;= 4.6) ? get_sites() : wp_get_sites(); \/\/ WP &gt;= 3.7.0\r\n\r\nforeach($blogs as $blog) {\r\n    $command = &#039;http:\/\/&#039; . $blog-&gt;domain . ($blog-&gt;path ? $blog-&gt;path : &#039;\/&#039;) . &#039;wp-cron.php?doing_wp_cron&#039;;\r\n    wp_remote_get($command); \/\/ WP &gt;= 2.7.0\r\n}\r\n?&gt;\r\n<\/code><\/pre>\n<h3>3. \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092cron\u3067\u5b9f\u884c\u3059\u308b<\/h3>\n<p>\u5b9f\u969b\u306ecron\u306e\u9593\u9694\u306f\u3001\u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3057\u3066\u30015\u5206\u3054\u3068\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\u3053\u306e\u65b9\u306f\u3001\u6700\u521d6\u6642\u9593\u3054\u3068\u306b\u3057\u3066\u3044\u305f\u307f\u305f\u3044\u3067\u3059\u304c\u3001\u9593\u9694\u304c\u9577\u3059\u304e\u305f\u3088\u3046\u3067\u30015\u5206\u306b\u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.webdesignleaves.com\/wp\/wordpress\/432\/\" target=\"_blank\">WordPress \u306e wp-cron.php \u3092\u7121\u52b9\u306b\u3059\u308b | Web Design Leaves<\/a><\/li>\n<\/ul>\n<p>GoDaddy\u306a\u3089\u3001cPanel\u306e<span class=\"css_btn_class\">Cron\u30b8\u30e7\u30d6<\/span>\u3067\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob.png\" alt=\"Cron\u30b8\u30e7\u30d6\" width=\"320\" height=\"240\" class=\"alignnone size-full wp-image-18275\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob.png 320w, https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob-150x113.png 150w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/p>\n<p>\u6b21\u306e\u69d8\u306b\u64cd\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob-add.png\" alt=\"cron\u30b8\u30e7\u30d6\u8a2d\u5b9a\" width=\"480\" height=\"458\" class=\"alignnone size-full wp-image-18274\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob-add.png 480w, https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob-add-150x143.png 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u6b63\u3057\u304f\u8a2d\u5b9a\u3067\u304d\u305f\u3089\u3001\u300c\u73fe\u5728\u306e cron \u30b8\u30e7\u30d6\u300d\u306b\u6b21\u306e\u69d8\u306b\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code>*\/5 * * * * cd \/home\/username\/public_html; php -q wp-cron-multisite.php\r\n<\/code><\/pre>\n<p>\u3082\u3061\u308d\u3093\u3001wp-config.php\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u306e\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"hljs\"><code class=\"php\">define(\u2018DISABLE_WP_CRON\u2019, \u2018true\u2019);\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u3067\u3001\u7121\u4e8b\u306bcron\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4e88\u7d04\u6295\u7a3f\u3082\u3067\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u5927\u4e08\u592b\u3068\u601d\u3044\u307e\u3059\u3002(\u3067\u3082\u3001\u306a\u305c\u304b\u3001\u30d1\u30d7\u30ea\u30b5\u30a4\u30ba\u6295\u7a3f\u304c\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u308c\u306f\u5225\u554f\u984c\u3068\u601d\u3044\u307e\u3059\u3002)<\/p>\n[amazonjs asin=\"B01DZXAHV0\" locale=\"JP\"]\n","protected":false},"excerpt":{"rendered":"<p>GoDaddy\u3067\u30b5\u30fc\u30d0\u3092\u501f\u308a\u3066\u3001WordPress\u3092\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u3002\u5e2f\u57df\u3084\u30d5\u30a1\u30a4\u30eb\u5bb9\u91cf\u306f\u307b\u3068\u3093\u3069\u6c17\u306b\u3057\u306a\u304f\u3066\u826f\u3044\u306e\u3067\u3059\u304c\u3001CPU\u3084\u30e1\u30e2\u30ea\u30ea\u30bd\u30fc\u30b9\u304c\u30b7\u30d3\u30a2\u3067\u3059\u3002\u6cb9\u65ad\u3059\u308b\u3068\u3001\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u5236\u9650\u306b\u5f15\u3063\u304b\u304b\u308a\u307e\u3059\u3002\u305d\u3093\u306a\u308f\u3051\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18275,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300e\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u904b\u7528\u306eWordPress\u3067wp-cron.php\u3092cron\u304b\u3089\u8d77\u52d5\u3059\u308b\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9,33,5],"tags":[],"class_list":["post-15192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webblog-cocolog","category-wordpress","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2015\/06\/20160825godaddy-cronjob.png","jetpack-related-posts":[{"id":24406,"url":"https:\/\/oichinote.com\/plus\/2021\/01\/recovered-from-maintenance-mode.html","url_meta":{"origin":15192,"position":0},"title":"\u30e1\u30a4\u30f3\u30c6\u30ca\u30f3\u30b9\u30e2\u30fc\u30c9\u304b\u3089\u5fa9\u5e30\u3057\u307e\u3057\u305f","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2021\u5e741\u670831\u65e5","format":false,"excerpt":"\u304a\u305d\u3089\u304f\u3001\u3053\u305310\u65e5\u304f\u3089\u3044\u3001\u672c\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u5e38\u6642\u7a3c\u50cd\u30d7\u30ed\u30bb\u30b9\u6570\u304c\u4e0a\u9650\u306e10\u306b\u2026","rel":"","context":"\u65e5\u8a18\u30fb\u30b3\u30e9\u30e0\u30fb\u3064\u3076\u3084\u304d","block_context":{"text":"\u65e5\u8a18\u30fb\u30b3\u30e9\u30e0\u30fb\u3064\u3076\u3084\u304d","link":"https:\/\/oichinote.com\/plus\/category\/column"},"img":{"alt_text":"503\u30a8\u30e9\u30fc","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2021\/01\/20210131service-temporarily-unabailable-500.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2470,"url":"https:\/\/oichinote.com\/plus\/2012\/04\/wp-change-upload-folder.html","url_meta":{"origin":15192,"position":1},"title":"\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u904b\u7528\u306eWordPress\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u6295\u7a3f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\u3059\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2012\u5e744\u670824\u65e5","format":false,"excerpt":"Wordpress\u3067\u30b7\u30f3\u30b0\u30eb\u30b5\u30a4\u30c8\u904b\u55b6\u3092\u3057\u3066\u3044\u308b\u6642\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306eupload\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3001\u300c\u30c0\u30c3\u30b7\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9442,"url":"https:\/\/oichinote.com\/plus\/2013\/09\/practice-of-moviing-wordpress.html","url_meta":{"origin":15192,"position":2},"title":"WordPress\u306e\u5f15\u3063\u8d8a\u3057\u306e\u7df4\u7fd2","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e749\u670818\u65e5","format":false,"excerpt":"\u3064\u3044\u5148\u65e5\u3001WordPress\u3092\u4f7f\u3063\u305f\u30b5\u30fc\u30d0\u304c\u30af\u30e9\u30c3\u30af\u3055\u308c\u3066\u3001\u5927\u304d\u306a\u88ab\u5bb3\u3092\u53d7\u3051\u3066\u3044\u307e\u3057\u305f\u306d\u3002\u539f\u56e0\u306f\u3001\u30b5\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"phpMyAdmin Import","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/09\/20130913import.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/09\/20130913import.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/09\/20130913import.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/09\/20130913import.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":7146,"url":"https:\/\/oichinote.com\/plus\/2013\/02\/search-all-site-on-multisite-wordpress.html","url_meta":{"origin":15192,"position":3},"title":"WordPress\u306e\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u904b\u7528\u3067\u30b5\u30a4\u30c8\u3092\u6a2a\u65ad\u3057\u305f\u691c\u7d22","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e742\u670814\u65e5","format":false,"excerpt":"\u3053\u306eoichinote.com\u3067\u306f\u3001Wordpress\u3067\u3001\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u904b\u7528\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"\u691c\u7d22","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/02\/gahag-0057430587-1-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":24631,"url":"https:\/\/oichinote.com\/plus\/2022\/05\/renewal-web-server.html","url_meta":{"origin":15192,"position":4},"title":"\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2022\u5e745\u67082\u65e5","format":false,"excerpt":"2019\u5e74\u304b\u3089\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u30ab\u30e9\u30d5\u30eb\u30dc\u30c3\u30af\u30b9\u306b\u3057\u3066\u3044\u307e\u3059\u30023\u5e74\u5951\u7d04\u3067\u3001\u4eca\u5e74\u3067\u5951\u7d04\u6e80\u4e86\u671f\u9593\u3068\u306a\u308a\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"\u30b5\u30fc\u30d0\u66f4\u65b0","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2022\/05\/20220502colorfulbox2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":18396,"url":"https:\/\/oichinote.com\/plus\/2016\/10\/how-to-setup-cloudflare-for-wordpress.html","url_meta":{"origin":15192,"position":5},"title":"WordPress+CloudFlare\u306b3\u3064\u306e\u30eb\u30fc\u30eb\u3067\u5287\u901f\u306b(CloudFlare\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f7f\u3044\u65b9)[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2016\u5e7410\u67088\u65e5","format":false,"excerpt":"\u3064\u3044\u306b\u3001PageSpeed Insights\u3067\u3001\u30e2\u30d0\u30a4\u30eb\u3001\u30d1\u30bd\u30b3\u30f3\u3068\u3082\u901f\u5ea6\u9805\u76ee\u3067100\u70b9\u3092\u51fa\u305b\u308b\u3088\u3046\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"CloudFlare\u30d7\u30e9\u30b0\u30a4\u30f3","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2016\/09\/20161008cloudflare-plugin.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/15192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=15192"}],"version-history":[{"count":17,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/15192\/revisions"}],"predecessor-version":[{"id":18283,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/15192\/revisions\/18283"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/18275"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=15192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=15192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=15192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}