{"id":2318,"date":"2017-09-20T13:35:55","date_gmt":"2017-09-20T13:35:55","guid":{"rendered":"https:\/\/tst-amo.pp.ua\/blog\/?p=2318"},"modified":"2017-09-20T13:51:21","modified_gmt":"2017-09-20T13:51:21","slug":"roundcube","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=2318","title":{"rendered":"Roundcube"},"content":{"rendered":"<p>1. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c roundcube \u0438\u0437 \u043f\u043e\u0440\u0442\u043e\u0432<\/p>\n<pre> \/usr\/ports\/mail\/roundcube\/<\/pre>\n<p>2. \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 phpmyadmin \u0411\u0414 roundcubemail \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e roundcube<\/p>\n<p>3. \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444 \u0444\u0430\u0439\u043b \u0430\u043f\u0430\u0447\u0430 \u0432 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437 \u0438\u043b\u0438 \u0432 .\/includes\/<\/p>\n<pre>Alias \/rmail \"\/usr\/local\/www\/roundcube\/\"\r\n&lt;Directory \/usr\/local\/www\/roundcube&gt;\r\n   DirectoryIndex index.php\r\n   AllowOverride None\r\n   Options -ExecCGI +FollowSymLinks\r\n   Require all granted\r\n&lt;\/Directory&gt;<\/pre>\n<p>4. \u041c\u0435\u043d\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 .\/config\/<\/p>\n<pre> $config['enable_installer'] = true; \/\/ \u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\r\n $config['db_dsnw'] = 'mysql:\/\/user:password@localhost\/BD';\r\n \/\/$config['db_dsnw'] = 'mysql:\/\/roundcube:aq1wsxde3@localhost\/roundcubemail';\r\n $config['imap_auth_type'] = 'PLAIN'; \/\/ \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 SMTP-\u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0432\u0438\u043c PLAIN (\u0438\u043d\u0430\u0447\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c)\r\n $config['product_name'] = 'Web Mail Imp';<\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d<\/p>\n<pre> \/\/ ----------------------------------\r\n \/\/ PLUGINS\r\n \/\/ ----------------------------------\r\n \/\/ List of active plugins (in plugins\/ directory)\r\n $config['plugins'] = array('additional_message_headers');<\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043c\u043e\u0434\u0443\u043b\u044f &#8211; <em>config.inc.php<\/em> \u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 <em>additional_message_headers<\/em>. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 <em>config.inc.php<\/em> \u0442\u0430\u043a\u043e\u0435:<\/p>\n<pre>&lt;?php\r\n$rcmail_config['additional_message_headers']['X-Remote-Browser'] = $_SERVER['HTTP_USER_AGENT'];\r\n$rcmail_config['additional_message_headers']['X-Originating-IP'] = $_SERVER['REMOTE_ADDR'];\r\n$rcmail_config['additional_message_headers']['X-RoundCube-Server'] = $_SERVER['SERVER_ADDR'];\r\n?&gt;<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0438\u0441\u044c\u043c\u0430\u0445, \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438:<\/p>\n<pre>X-Remote-Browser: Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36\r\n (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36\r\nX-Originating-IP: 192.168.36.12\r\nX-RoundCube-Server: 192.168.36.160<\/pre>\n<p>5. \u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0437\u0430\u0445\u043e\u0434\u0438\u043c<\/p>\n<pre>http:\/\/192.168.36.160\/rmail\/installer\/index.php<\/pre>\n<p>\u0416\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c timezone \u0432 \/usr\/local\/etc\/php.ini<\/p>\n<pre>date.timezone = Europe\/Kiev<\/pre>\n<p>6. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 config \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <strong>\u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d!<\/strong>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 Apache \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c &#8220;<em>AllowOverride None<\/em>&#8221; \u043d\u0430 &#8220;<em>AllowOverride All<\/em>&#8220;, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b .htaccess, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 Roundcube, \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts2318&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts2318&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>1. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c roundcube \u0438\u0437 \u043f\u043e\u0440\u0442\u043e\u0432 \/usr\/ports\/mail\/roundcube\/ 2. \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 phpmyadmin \u0411\u0414 roundcubemail \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e roundcube 3. \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444 \u0444\u0430\u0439\u043b \u0430\u043f\u0430\u0447\u0430 \u0432 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437 \u0438\u043b\u0438 \u0432 .\/includes\/ Alias \/rmail &#8220;\/usr\/local\/www\/roundcube\/&#8221; &lt;Directory \/usr\/local\/www\/roundcube&gt; DirectoryIndex index.php AllowOverride None Options -ExecCGI +FollowSymLinks Require all granted &lt;\/Directory&gt; 4. \u041c\u0435\u043d\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 .\/config\/ $config[&#8216;enable_installer&#8217;] = true; \/\/ \u041f\u043e\u0441\u043b\u0435 &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=2318\" class=\"more-link\">Continue reading &lsquo;Roundcube&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-2318","post","type-post","status-publish","format-standard","hentry","category-mail","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2318"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2318"}],"version-history":[{"count":5,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2318\/revisions"}],"predecessor-version":[{"id":2330,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2318\/revisions\/2330"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}