{"id":78,"date":"2017-06-19T17:31:25","date_gmt":"2017-06-19T14:31:25","guid":{"rendered":"http:\/\/blog.officesupport.ru\/?p=78"},"modified":"2017-07-08T16:26:40","modified_gmt":"2017-07-08T13:26:40","slug":"%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-apache-2-4-%d0%b8-php-7-0-%d0%bd%d0%b0-freebsd-11","status":"publish","type":"post","link":"https:\/\/blog.officesupport.ru\/?p=78","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Apache 2.4 \u0438 PHP 7.0 \u043d\u0430 FreeBSD 11"},"content":{"rendered":"<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0440\u0442\u044b<\/p>\n<blockquote><p><strong>#portsnap fetch update<\/strong><\/p><\/blockquote>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Apache<\/p>\n<blockquote><p><strong># cd \/usr\/ports\/www\/apache24\/<\/strong><\/p>\n<p><strong>#make install clean<\/strong><\/p><\/blockquote>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 ServerName \u0432 \u0444\u0430\u0439\u043b\u0435 httpd.conf. \u0412 \u043a\u0430\u0447\u0430\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u043a\u0430\u0436\u0435\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p><!--more--><\/p>\n<p><strong>#edit usr\/local\/etc\/apache24\/httpd.conf<\/strong><br \/>\n<strong>ServerName www.myhost.my.domain:80<\/strong><\/p>\n<div>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Apache<\/div>\n<div><strong>#\/usr\/local\/etc\/rc.d\/apache24 start<\/strong><\/div>\n<div><\/div>\n<div>\n<div>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 PHP<\/div>\n<div><\/div>\n<div><strong># cd \/usr\/ports\/lang\/php70<\/strong><\/div>\n<div><strong># make install clean<\/strong><\/div>\n<div>\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f php \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/div>\n<div>\n<div><strong># cd \/usr\/ports\/lang\/php70-extensions<\/strong><\/div>\n<div><strong># make install clean<\/strong><\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\u0421\u0442\u0430\u0432\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u044c php \u0434\u043b\u044f Apache.<\/div>\n<div>\n<div><strong># cd \/usr\/ports\/www\/mod_php70\/<\/strong><\/div>\n<div><strong># make install clean<\/strong><\/div>\n<\/div>\n<div><\/div>\n<div>\u0412 \/usr\/local\/etc\/apache24\/httpd.conf \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/div>\n<div><strong>LoadModule php7_module libexec\/apache24\/libphp7.so<\/strong><\/div>\n<div>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/div>\n<div>\n<div><strong>AddType application\/x-httpd-php .php<\/strong><\/div>\n<div><strong>AddType application\/x-httpd-php-source .phps<\/strong><\/div>\n<\/div>\n<div><\/div>\n<div>\n<div>\u0412 \u0441\u0435\u043a\u0446\u0438\u044e &lt;IfModule dir_module&gt; \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>index.php<\/strong><\/div>\n<div><strong>&lt;IfModule dir_module&gt;<\/strong><\/div>\n<div><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DirectoryIndex index.php index.html<\/strong><\/div>\n<div><strong>&lt;\/IfModule&gt;<\/strong><\/div>\n<div>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/div>\n<div><strong># apachectl -t<\/strong><br \/>\nSyntax OK<\/div>\n<\/div>\n<div><\/div>\n<div>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 Apache:<\/div>\n<div>\n<div><strong># ee \/etc\/rc.conf<\/strong><\/div>\n<div><strong>apache24_enable=&#187;YES&#187;<\/strong><\/div>\n<div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0440\u0442\u044b #portsnap fetch update \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Apache # cd \/usr\/ports\/www\/apache24\/ #make install clean \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 ServerName \u0432 \u0444\u0430\u0439\u043b\u0435 httpd.conf. \u0412 \u043a\u0430\u0447\u0430\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u043a\u0430\u0436\u0435\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"footnotes":""},"categories":[3],"tags":[14,15],"class_list":["post-78","post","type-post","status-publish","format-quote","hentry","category-bsd","tag-apache","tag-php70","post_format-post-format-quote"],"_links":{"self":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":7,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}