{"id":17444,"date":"2023-01-04T08:55:49","date_gmt":"2023-01-04T08:55:49","guid":{"rendered":"https:\/\/44.225.35.201\/testrail\/docs\/801\/server-guide\/installation\/activating-the-background-task\/"},"modified":"2023-10-03T14:09:05","modified_gmt":"2023-10-03T05:09:05","slug":"activating-the-background-task","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/server-guide\/installation\/activating-the-background-task\/","title":{"rendered":"\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b"},"content":{"rendered":"<p>\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u3001TestRail \u306e\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u306f\u3001\u30c6\u30b9\u30c8\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u304d\u306b\u96fb\u5b50\u30e1\u30fc\u30eb\u901a\u77e5\u3092\u9001\u4fe1\u3059\u308b\u51e6\u7406\u306a\u3069\u3092\u884c\u3044\u307e\u3059\u3002\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u306f\u5358\u7d14\u306a PHP \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u4e00\u5b9a\u306e\u9593\u9694\u3067\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0\u304c\u63d0\u4f9b\u3059\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30b8\u30e7\u30d6\u3068\u3057\u3066\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3059\u3002Windows \u304a\u3088\u3073 Unix\/Linux \u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0\u306b\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 id=\"BackgroundtaskonWindows\" class=\"sectionedit2\">Windows \u306e\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af<\/h2>\n<p>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u3092\u5b9a\u671f\u7684\u306b\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u306b\u306f\u3001Windows \u30bf\u30b9\u30af \u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30bf\u30b9\u30af\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3059\u308b\u524d\u306b\u3001\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 (x86 \u304a\u3088\u3073 x64) \u304b\u3089\u624b\u52d5\u3067\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3057\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u304c\u6b63\u5e38\u306b\u958b\u59cb\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><!-- START note --><\/p>\n<div class=\"callout callout--info\">\n<p class=\"callout__title callout__icon\"><em class=\"fas fa-info-circle\">\u00a0<\/em>&#8220;x.x&#8221; \u3092\u5b9f\u969b\u306e PHP \u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p><!-- END note --><\/p>\n<div class=\"callout callout--info\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&gt; \"C:\\Program Files\\PHP\\x.x\\php.exe\" \"C:\\inetpub\\wwwroot\\testrail\\task.php\"\n&gt;\u00a0REM\u00a0Or,\u00a0for\u00a0x64\u00a0systems:\n&gt;\u00a0\"C:\\Program\u00a0Files\u00a0(x86)\\PHP\\x.x\\php.exe\"\u00a0\"C:\\inetpub\\wwwroot\\testrail\\task.php\"<\/pre>\n<p>[et_pb_text admin_label=&#8221;Note&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#F0F8FF&#8221; hover_enabled=&#8221;0&#8243; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#b0c4de&#8221;]<\/p>\n<p>PHP \u306e\u30d1\u30b9\u306f\u3001PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u5b9f\u969b\u306e\u30d1\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[\/et_pb_text]<\/p>\n<p>TestRail \u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u306f\u3001\u30bf\u30b9\u30af\u304c\u3059\u3067\u306b\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u6700\u826f\u306e\u7d50\u679c\u3092\u5f97\u308b\u306b\u306f\u3001\u975e\u5e38\u306b\u77ed\u3044\u9593\u9694 (1\u5206\u3054\u3068\u306a\u3069) \u3067\u30bf\u30b9\u30af\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u305d\u308c\u306b\u306f\u3001Windows \u30bf\u30b9\u30af \u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u3092\u958b\u304d\u3001[<strong>\u30bf\u30b9\u30af\u306e\u4f5c\u6210<\/strong>] (Windows 2008 \u306e\u5834\u5408) \u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p>\u30bf\u30b9\u30af\u540d\u3092\u6307\u5b9a\u3057\u3001\u30ed\u30b0\u30aa\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u3044\u306a\u304f\u3066\u3082\u30bf\u30b9\u30af\u3092\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"et_pb_image_wrap \"><\/span><\/p>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_general.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_general.png\" alt=\"\" width=\"550\" height=\"409\" class=\"aligncenter size-full wp-image-9137\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_general.png 550w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_general-480x357.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 550px, 100vw\" \/><\/a><\/p>\n<p>[<strong>\u30c8\u30ea\u30ac\u30fc<\/strong>] \u30bf\u30d6\u3067\u65b0\u3057\u3044\u30c8\u30ea\u30ac\u30fc\u3092\u8ffd\u52a0\u3057\u3001\u30bf\u30b9\u30af\u3092\u3044\u3064\u5b9f\u884c\u3059\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"et_pb_image_wrap \"><\/span><\/p>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_trigger.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_trigger.png\" alt=\"\" width=\"550\" height=\"471\" class=\"aligncenter size-full wp-image-9138\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_trigger.png 550w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_trigger-480x411.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 550px, 100vw\" \/><\/a><\/p>\n<p>\u305d\u3057\u3066\u6700\u5f8c\u306b\u91cd\u8981\u306a\u3053\u3068\u3068\u3057\u3066\u3001TestRail \u30bf\u30b9\u30af \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092 [<strong>\u64cd\u4f5c<\/strong>] \u30bf\u30d6\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306f PHP \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3042\u308b\u305f\u3081\u3001php.exe \u304a\u3088\u3073 task.php \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d1\u30b9\u3092\u5f15\u6570\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059 (\u5f15\u7528\u7b26\u3092\u542b\u3080)\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">C:\\inetpub\\wwwroot\\testrail\\task.php<\/pre>\n<p><span class=\"et_pb_image_wrap \"><\/span><\/p>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_action.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_action.png\" alt=\"\" width=\"458\" height=\"493\" class=\"aligncenter size-full wp-image-9136\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_action.png 458w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/task_action-279x300.png 279w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><\/a><\/p>\n<p>\u30bf\u30b9\u30af\u30b9 \u30b1\u30b8\u30e5\u30fc\u30e9\u30fc GUI \u3092\u4f7f\u7528\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30bf\u30b9\u30af\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><abbr title=\"\">Windows Server 2019\u30012022 \u306e\u5834\u5408\uff1a<\/abbr><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">schtasks \/create \/np \/sc minute \/mo 1 \/tn \"TestRail Background Task\" \/tr \"'C:\\Program Files\\PHP\\v8.1\\php.exe' 'C:\\testrail\\task.php'\"<\/pre>\n<h2 id=\"BackgroundtaskonUnixLinux\" class=\"sectionedit3\">Unix\/Linux \u306e\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af<\/h2>\n<p>Unix\/Linux\u30b7\u30b9\u30c6\u30e0\u3067\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u3092\u5b9a\u671f\u7684\u306b\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001<strong>cron<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30bf\u30b9\u30af\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3059\u308b\u524d\u306b\u3001\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3\u304b\u3089\u624b\u52d5\u3067\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3057\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u304c\u6b63\u5e38\u306b\u958b\u59cb\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">$ php \/var\/www\/html\/testrail\/task.php<\/pre>\n<p>TestRail \u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u306f\u3001\u30bf\u30b9\u30af\u304c\u3059\u3067\u306b\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u6700\u826f\u306e\u7d50\u679c\u3092\u5f97\u308b\u306b\u306f\u3001\u975e\u5e38\u306b\u77ed\u3044\u9593\u9694 (1\u5206\u3054\u3068\u306a\u3069) \u3067\u30bf\u30b9\u30af\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u305d\u308c\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306b <strong>cron<\/strong> \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001<span><strong>\/etc\/cron.d\/testrail<\/strong> <\/span>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">* * * * * www-data \/usr\/bin\/php \/var\/www\/html\/testrail\/task.php<\/pre>\n<p id=\"background_task_on_unixlinux\" class=\"sectionedit3\">cron \u30b8\u30e7\u30d6\u306f PHP \u306e\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3059\u3067\u306b\u30b7\u30b9\u30c6\u30e0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002php -v \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002\u307e\u3060\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 \u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u7528\u3057\u3066 php7.4-cli \u307e\u305f\u306f\u3053\u308c\u306b\u76f8\u5f53\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><!-- START note --><\/p>\n<div class=\"callout callout--info\">\n<p class=\"callout__title callout__icon\"><em class=\"fas fa-info-circle\">\u00a0<\/em>\u307e\u305f\u3001php-cli \u304c Web \u30b5\u30fc\u30d0\u30fc\u306e PHP.ini \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408\u306f\u3001php-cli \u306e PHP.ini \u306b\u4e0a\u8a18\u306e PHP \u62e1\u5f35\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002Ubuntu \u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001 \/etc\/php\/7.4\/cli\/php.ini \u306b ioncube \u62e1\u5f35\u6a5f\u80fd\u3082\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p><!-- END note --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u3001TestRail \u306e\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u306f\u3001\u30c6\u30b9\u30c8\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u304d\u306b\u96fb\u5b50\u30e1\u30fc\u30eb\u901a\u77e5\u3092\u9001\u4fe1\u3059\u308b\u51e6\u7406\u306a\u3069\u3092\u884c\u3044\u307e\u3059\u3002\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9 \u30bf\u30b9\u30af\u306f\u5358\u7d14\u306a PHP \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u4e00\u5b9a\u306e\u9593\u9694\u3067\u8d77\u52d5 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":6693,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-17444","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/17444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=17444"}],"version-history":[{"count":16,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/17444\/revisions"}],"predecessor-version":[{"id":26293,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/17444\/revisions\/26293"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/6693"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=17444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}