{"id":1214,"date":"2020-12-03T10:52:03","date_gmt":"2020-12-03T04:52:03","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=1214"},"modified":"2020-12-03T10:57:50","modified_gmt":"2020-12-03T04:57:50","slug":"%d0%ba%d0%b0%d0%ba-%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b8%d1%82%d1%8c-%d0%bf%d0%bb%d0%b0%d0%bd%d0%b8%d1%80%d0%be%d0%b2%d1%89%d0%b8%d0%ba-cron","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=1214","title":{"rendered":"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a CRON ?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CRON \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Cron<\/strong> (<strong>C<\/strong>ommand <strong>R<\/strong>un <strong>ON<\/strong>) \u2014 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u0447. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a cron \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0430\u0437\u0430 <a rel=\"noreferrer noopener\" href=\"https:\/\/goodhost.kz\/hosting\/full-ssd-hosting.html#hl1\" target=\"_blank\">\u0443\u0441\u043b\u0443\u0433\u0438 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/a> Linux \u0438\u043b\u0438 Windows.<\/p><\/blockquote>\n\n\n\n<ol>\n<li>\u0412\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u043e\u043c.<\/li>\n<li>\u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00ab\u0413\u043b\u0430\u0432\u043d\u043e\u0435\u00bb \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 <strong>\u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a<\/strong> \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 <strong>\u0421\u043e\u0437\u0434\u0430\u0442\u044c<\/strong>:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-240\" src=\"https:\/\/goodhost.kz\/wp-content\/uploads\/2020\/12\/planirovshchik-cron-010620-1.png\" alt=\"\" width=\"772\" height=\"375\"><\/li>\n<li>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u043e\u043b\u044f:\n<ul>\n<li><strong>\u041a\u043e\u043c\u0430\u043d\u0434\u0430<\/strong> \u2014 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043d\u0438\u0436\u0435,<\/li>\n<li><strong>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/strong> \u2014 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435,<\/li>\n<li><strong>\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/strong> \u2014 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0438 \u0432 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u043e\u043b\u044f\u0445 \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f.\u041d\u0430\u0436\u043c\u0438\u0442\u0435 <strong>Ok<\/strong>:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-239\" src=\"https:\/\/goodhost.kz\/wp-content\/uploads\/2020\/12\/planirovshchik-cron-010620-21.png\" alt=\"\" width=\"698\" height=\"477\"><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434 \u0434\u043b\u044f cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0439<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437&nbsp;GET<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>GET http:\/\/domain.kz\/script.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435 <a rel=\"noreferrer noopener\" href=\"http:\/\/domain.ru\/script.php\" target=\"_blank\">http:\/\/domain.kz\/script.php<\/a> \u2014 URL-\u0430\u0434\u0440\u0435\u0441, \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441ron-\u0437\u0430\u0434\u0430\u043d\u0438\u0435.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437&nbsp;WGET<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>wget -q -O - http:\/\/domain.kz\/script.php &gt; \/dev\/null 2&gt;&amp;1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435 <a rel=\"noreferrer noopener\" href=\"http:\/\/domain.ru\/script.php\" target=\"_blank\">http:\/\/domain.kz\/script.php<\/a> \u2014 URL-\u0430\u0434\u0440\u0435\u0441, \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0435.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437&nbsp;CLI<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0438&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437&nbsp;GET \u0438\u043b\u0438&nbsp;WGET, PHP-\u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u043e\u043c PHP, \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432&nbsp;\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u043e\u043c. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0434&nbsp;\u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 PHP, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437&nbsp;CLI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e php \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c &#8212; <strong>\/usr\/bin\/php<\/strong><\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0443 php \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f ISPmanager:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0432\u0435\u0440\u0441\u0438\u044f php 5.4 <strong>\/usr\/bin\/php<\/strong><\/li><li>\u0432\u0435\u0440\u0441\u0438\u044f php 5.6 <strong>\/opt\/php56\/bin\/php<\/strong><\/li><li>\u0432\u0435\u0440\u0441\u0438\u044f php 7.0 <strong>\/opt\/php70\/bin\/php<\/strong><\/li><li>\u0432\u0435\u0440\u0441\u0438\u044f php 7.1 <strong>\/opt\/php71\/bin\/php<\/strong><\/li><li>\u0432\u0435\u0440\u0441\u0438\u044f php 7.2 <strong>\/opt\/php72\/bin\/php<\/strong><\/li><li>\u0432\u0435\u0440\u0441\u0438\u044f php 7.3 <strong>\/opt\/php73\/bin\/php<\/strong><\/li><li>\u0432\u0435\u0440\u0441\u0438\u044f php 7.4 <strong>\/opt\/php74\/bin\/php<\/strong><br>(\u0443\u0437\u043d\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u0434\u043e php \u043c\u043e\u0436\u043d\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>whereis php<\/code> \u0432 shell)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>ISPmanager<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>\/opt\/php\/7.4\/bin\/php -f \/var\/www\/login\/data\/www\/domain.kz\/script.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Plesk<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>\/opt\/php\/7.4\/bin\/php -f var\/www\/vhosts\/login\/httpdocs\/domain.kz\/script.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7.4 \u2014 \u0432\u0435\u0440\u0441\u0438\u044f PHP<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">login \u2014 \u0432\u0430\u0448 \u043b\u043e\u0433\u0438\u043d \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">domain.kz \u2014 \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">script.php&nbsp;\u2014 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0441&nbsp;cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/strong>: \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437&nbsp;php (\/opt\/php\/7.4\/bin\/php) \u0438&nbsp;\u0447\u0435\u0440\u0435\u0437 php-cgi (\/opt\/php\/7.4\/bin\/php-cgi). \u041e&nbsp;\u0442\u043e\u043c, \u043a\u0430\u043a\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0434\u043b\u044f&nbsp;\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0432\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0443&nbsp;\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3\">\u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437&nbsp;CLI \u0441&nbsp;\u0443\u0447\u0451\u0442\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 php.ini<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c \u043a\u043b\u044e\u0447 \u00ab-c\u00bb \u0438&nbsp;\u043f\u0440\u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043e&nbsp;\u0444\u0430\u0439\u043b\u0430 php.ini.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>ISPmanager<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043f\u0443\u0442\u0438 \u043a\u00a0\u0444\u0430\u0439\u043b\u0443 <strong>php.ini<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442\u00a0\u0442\u043e\u0433\u043e, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043b\u0438 \u043e\u043f\u0446\u0438\u044f php.ini \u0434\u043b\u044f\u00a0\u0434\u043e\u043c\u0435\u043d\u0430. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432\u044b&nbsp;\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 PHP \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f&nbsp;\u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u043e&nbsp;\u043f\u0443\u0442\u0438 <strong>\/var\/www\/php-bin\/\u0438\u043c\u044f-\u0434\u043e\u043c\u0435\u043d\u0430\/php.ini<\/strong>, \u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>\/opt\/php\/7.4\/bin\/php -c \/var\/www\/login\/data\/php-bin\/domain.kz\/php.ini -f \/var\/www\/login\/data\/www\/domain.kz\/script.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432\u044b&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043e\u0431\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e PHP \u0438&nbsp;\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f&nbsp;\u0432\u0441\u0435\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043f\u043e&nbsp;\u043f\u0443\u0442\u0438 \/var\/www\/php-bin-php(\u043d\u043e\u043c\u0435\u0440-\u0432\u0435\u0440\u0441\u0438\u0438)\/php.ini, \u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>\/opt\/php\/7.4\/bin\/php -c *\/var\/www\/login\/data\/php-bin-php(\u043d\u043e\u043c\u0435\u0440-\u0432\u0435\u0440\u0441\u0438\u0438)\/php.ini* -f \/var\/www\/login\/data\/www\/domain.kz\/script.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Plesk<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>\/opt\/php\/7.4\/bin\/php -c \/var\/www\/vhosts\/login\/php-bin\/php.ini  -f var\/www\/vhosts\/login\/httpdocs\/domain.kz\/script.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7.4 \u2014 \u0432\u0435\u0440\u0441\u0438\u044f PHP<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">login \u2014 \u0432\u0430\u0448 \u043b\u043e\u0433\u0438\u043d \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">domain.kz \u2014 \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">script.php&nbsp;\u2014 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0441&nbsp;cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4\">\u041a\u0430\u043a&nbsp;\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430&nbsp;\u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 Windows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u0434\u043b\u044f&nbsp;Plesk \u043f\u043e&nbsp;\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b\u0448\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432&nbsp;4 \u043f\u0443\u043d\u043a\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b&nbsp;\u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0442\u0438\u043f \u0437\u0430\u0434\u0430\u0447\u0438 <strong>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c PHP-\u0441\u043a\u0440\u0438\u043f\u0442<\/strong>, \u0432&nbsp;\u043f\u043e\u043b\u0435 <strong>\u041f\u0443\u0442\u044c \u043a&nbsp;\u0441\u043a\u0440\u0438\u043f\u0442\u0443<\/strong> \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u0443\u0442\u044c \u043a&nbsp;\u0441\u043a\u0440\u0438\u043f\u0442\u0443, \u0430&nbsp;\u0432 \u043f\u043e\u043b\u0435 <strong>\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b<\/strong> \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432&nbsp;\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442&nbsp;\u043c\u043e\u0434\u0443\u043b\u044f: \u041d\u0430&nbsp;PHP \u041d\u0430&nbsp;ASP\/ASP.NET<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0443\u0442\u044c \u043a&nbsp;\u0441\u043a\u0440\u0438\u043f\u0442\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\PleskPHP74\\php.exe<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435 PleskPHP74 \u2014 \u0432\u0435\u0440\u0441\u0438\u044f PHP<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>c:\\inetpub\\vhosts\\login\\httpdocs\\domain.kz\\script.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">login \u2014 \u0432\u0430\u0448 \u043b\u043e\u0433\u0438\u043d \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">domain.kz \u2014 \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">script.php&nbsp;\u2014 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0441&nbsp;cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 CRON ?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. \u0412 \u043a\u043e\u0440\u043d\u0435 \u0441\u0430\u0439\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430:<br>my_cron.txt \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 777.<br>my_cron.php \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 755 \u0438\u043b\u0438 751<br><br>\u041f\u0435\u0440\u0432\u044b\u0439 \u0444\u0430\u0439\u043b my_cron.txt (\u044d\u0442\u043e \u043d\u0430\u0448 \u043b\u043e\u0433, \u043a\u0443\u0434\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f) \u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0443\u0441\u0442\u044b\u043c.<br>\u0412\u0442\u043e\u0440\u043e\u0439 \u0444\u0430\u0439\u043b my_cron.php \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0438 \u0432\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u043a\u0441\u0442:<br><strong>\u041a\u043e\u0434 PHP:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>&lt;?php<\/strong>   $fd = <a href=\"http:\/\/www.php.net\/fopen\">fopen<\/a>(\"\/home\/user\/mysite_kz\/my_cron.txt\",\"a\");   <a href=\"http:\/\/www.php.net\/fwrite\">fwrite<\/a>($fd, \"\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 - \".<a href=\"http:\/\/www.php.net\/date\">date<\/a>(\"d.m.Y H:i\").\"<strong>\\r\\n<\/strong>\");   <a href=\"http:\/\/www.php.net\/fclose\">fclose<\/a>($fd); <strong>?&gt;<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u0412\u044b \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 fopen(&#8216;path_to_log&#8217;) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0443\u0442\u044c \u043a \u043b\u043e\u0433\u0443. \u0427\u0430\u0441\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0443\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c <strong>\u043e\u0442 \u043a\u043e\u0440\u043d\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430<\/strong> (\u0430 \u043d\u0435 \u043a\u043e\u0440\u043d\u044f \u0441\u0430\u0439\u0442\u0430). \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 (\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0412\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e) \u044d\u0442\u043e\u0442 \u043f\u0443\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0432 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0438\u0438 \u0441 \u0440\u0435\u043a\u043e\u043c\u0435\u0434\u0430\u0446\u0438\u044f\u043c\u0438 \u0432\u044b\u0448\u0435 \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043f\u0443\u0442\u0438 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0443.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 my_cron.php. \u041e\u043d \u043f\u0438\u0448\u0435\u0442 \u0432 \u043b\u043e\u0433 my_cron.txt \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432\u0440\u043e\u0434\u0435<br><strong>\u041a\u043e\u0434 PHP:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 - 11.01.2019 21:13\n\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 - 11.01.2019 21:14\n\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 - 11.01.2019 21:15<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432\u0438\u0434\u0438\u0442\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 &#8212; \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br><br>\u0415\u0441\u043b\u0438 \u043b\u043e\u0433 \u043f\u0443\u0441\u0442 &#8212; \u0437\u043d\u0430\u0447\u0438\u0442 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412\u0435\u0440\u043d\u0438\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0447\u0430\u043b\u0443 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0442\u0435 \u043f\u0443\u0442\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043f\u0443\u0442\u0438 \u043a \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0443 php \u0438\u043b\u0438 \u0432\u0430\u0448\u0435\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0443.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CRON \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435. Cron (Command Run ON) \u2014 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u0447. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a cron \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0430\u0437\u0430 \u0443\u0441\u043b\u0443\u0433\u0438 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 Linux \u0438\u043b\u0438 Windows. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434 \u0434\u043b\u044f cron-\u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437&nbsp;GET \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430: GET http:\/\/domain.kz\/script.php ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=1214\" title=\"\u0447\u0438\u0442\u0430\u0442\u044c...\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-1214","post","type-post","status-publish","format-standard","hentry","category---plesk","category---ispmanager-ssd"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1214"}],"version-history":[{"count":3,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1214\/revisions"}],"predecessor-version":[{"id":1217,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1214\/revisions\/1217"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}