{"id":551,"date":"2019-12-19T09:14:03","date_gmt":"2019-12-19T03:14:03","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=551"},"modified":"2019-12-19T09:14:05","modified_gmt":"2019-12-19T03:14:05","slug":"%d0%ba%d0%b0%d0%ba-%d0%b2%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%bb%d0%be%d0%b3-%d1%81%d0%be%d0%be%d0%b1%d1%89%d0%b5%d0%bd%d0%b8%d0%b9-phpmail","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=551","title":{"rendered":"\u041a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u0433 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 phpmail?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u041a\u0430\u043a\u00a0\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u0433 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 phpmail?<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"0\">\u041d\u0430&nbsp;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043b\u043e\u0433 phpmail \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0434\u043b\u044f&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u043f\u0430\u043c\u0430;<\/li><li>\u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043a&nbsp;linux \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0443;<\/li><li>mail.log \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430&nbsp;\u0432\u0435\u0440\u0441\u0438\u0438 PHP 5.3 \u0438&nbsp;\u0432\u044b\u0448\u0435.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f&nbsp;\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432&nbsp;\u0444\u0430\u0439\u043b <strong>php.ini<\/strong> \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mail.add_x_header = On\nmail.log = '\u043f\u0443\u0442\u044c-\u0434\u043e-\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430-\u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430\/phpmail.log'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0443\u0442\u044c \u0434\u043e&nbsp;\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ISPmanager: <strong>\/var\/www\/vashlogin\/data\/<\/strong><\/li><li>Plesk: <strong>\/var\/www\/vhosts\/vashlogin\/<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u0434\u0435  <strong>vashlogin<\/strong> \u2014 \u043b\u043e\u0433\u0438\u043d \u0432\u0430\u0448\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u043e\u0442\u043e\u0432\u043e! \u0412\u044b&nbsp;\u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1\">\u041d\u0430&nbsp;VPS<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>\n 1.\n \u0432&nbsp;\u043f\u0430\u043f\u043a\u0435 \u0441\u0430\u0439\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <strong>info.php<\/strong> \u0438&nbsp;\u0437\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432&nbsp;\u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:\n         <code>&lt;?php\nphpinfo();\n?&gt;<\/code><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\n \n\n \n \n \n 2.\n <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e&nbsp;\u0430\u0434\u0440\u0435\u0441\u0443 <strong>\u0432\u0430\u0448_\u0441\u0430\u0439\u0442\/info.php<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"485\" src=\"https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2019\/12\/kak-vklyuchit-log-soobscheniy-phpmail-1.png\" alt=\"\" class=\"wp-image-552\" srcset=\"https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2019\/12\/kak-vklyuchit-log-soobscheniy-phpmail-1.png 605w, https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2019\/12\/kak-vklyuchit-log-soobscheniy-phpmail-1-300x240.png 300w, https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2019\/12\/kak-vklyuchit-log-soobscheniy-phpmail-1-150x120.png 150w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0432\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0447\u0442\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f&nbsp;\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0438\u043b\u0438&nbsp;\u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f&nbsp;\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432&nbsp;\u0444\u0430\u0439\u043b, \u043f\u0443\u0442\u044c \u043a&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u043d \u0432&nbsp;<strong>\u00abLoaded Configuration File\u00bb<\/strong>, \u0432&nbsp;\u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e <strong>\/var\/www\/php-bin\/user_name\/php.ini<\/strong><\/li><li>\u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f&nbsp;\u0432\u0441\u0435\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432&nbsp;\u0444\u0430\u0439\u043b <strong>php.ini<\/strong>, \u043f\u0443\u0442\u044c \u043a&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u043d \u0432&nbsp;\u0441\u0442\u0440\u043e\u043a\u0435 <strong>\u00abConfiguration File (php.ini) Path\u00bb<\/strong>. \u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0443\u0442\u044c \u0434\u043e&nbsp;\u043e\u0431\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 <strong>php.ini<\/strong> \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <strong>\/opt\/php\/5.3\/etc\/php.ini<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\n \n \n \n 3.\n <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0434\u043b\u044f\u00a0\u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0438\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0432\u00a0\u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 php.ini.  \u041f\u0440\u0430\u0432\u0430 \u043d\u0430\u00a0\u0444\u0430\u0439\u043b php.ini \u043c\u043e\u0433\u0443\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u00a0\u043d\u0435\u0433\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0435\u0440\u0435\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u00a0\u043d\u0435\u0433\u043e  \u043f\u0440\u0438\u00a0\u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: chmod +w \/\u043f\u0443\u0442\u044c\/php.ini \u0438\u043b\u0438 \u0438\u0437 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">   \u041a\u043e\u0434 \u0434\u043b\u044f\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mail.add_x_header = On\nmail.log = \"\/var\/tmp\/php.mail.log\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\/var\/tmp\/php.mail.log<\/strong>\u00a0\u2014 \u044d\u0442\u043e \u0444\u0430\u0439\u043b,  \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u043e\u0433 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c php  mail. \u041f\u0440\u0430\u0432\u0430 \u043d\u0430\u00a0\u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u00a0\u043d\u0435\u0433\u043e. \u0412\u044b\u00a0\u043c\u043e\u0436\u0435\u0442\u0435  \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u00a0\u0437\u0430\u043f\u0438\u0441\u044c  \u0438\u0437 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0438\u043b\u0438 \u043f\u0440\u0438\u00a0\u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">        <code>chmod +w \/var\/tmp\/php.mail.log<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>    \n \n\n <\/li><li>\n 4.\n \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 Apache, \u0434\u043b\u044f&nbsp;\u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<ul><li>CentOS: <code>service httpd restart<\/code>;<\/li><li>Debian, Ubuntu: <code>service apache2 restart<\/code>.<\/li><\/ul>\n <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u043e\u0442\u043e\u0432\u043e! \u0412\u044b&nbsp;\u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a\u00a0\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u0433 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 phpmail? \u041d\u0430&nbsp;\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043b\u043e\u0433 phpmail \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0434\u043b\u044f&nbsp;\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u043f\u0430\u043c\u0430; \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043a&nbsp;linux \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0443; mail.log \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430&nbsp;\u0432\u0435\u0440\u0441\u0438\u0438 PHP 5.3 \u0438&nbsp;\u0432\u044b\u0448\u0435. \u0414\u043b\u044f&nbsp;\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432&nbsp;\u0444\u0430\u0439\u043b php.ini \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438: mail.add_x_header = On mail.log = &#8216;\u043f\u0443\u0442\u044c-\u0434\u043e-\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430-\u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430\/phpmail.log&#8217; \u041f\u0443\u0442\u044c \u0434\u043e&nbsp;\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434: ISPmanager: \/var\/www\/vashlogin\/data\/ Plesk: \/var\/www\/vhosts\/vashlogin\/ \u0413\u0434\u0435 vashlogin \u2014 \u043b\u043e\u0433\u0438\u043d ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=551\" 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":[14],"tags":[],"class_list":["post-551","post","type-post","status-publish","format-standard","hentry","category-faq---vps-vds"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/551","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=551"}],"version-history":[{"count":1,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/551\/revisions"}],"predecessor-version":[{"id":553,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/551\/revisions\/553"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}