{"id":96,"date":"2024-04-17T16:21:47","date_gmt":"2024-04-17T10:21:47","guid":{"rendered":"https:\/\/linuwind.ru\/?p=96"},"modified":"2025-03-16T11:42:54","modified_gmt":"2025-03-16T05:42:54","slug":"%d0%ba%d0%b0%d0%ba-%d0%b4%d0%be%d0%b1%d0%b0%d0%b2%d0%b8%d1%82%d1%8c-%d1%81%d0%b2%d0%be%d0%b9-%d0%b4%d0%be%d0%bc%d0%b5%d0%bd-%d0%bd%d0%b0-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80-ubuntu-apache","status":"publish","type":"post","link":"https:\/\/linuwind.ru\/?p=96","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Ubuntu (Apache)"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">\u0412\u0441\u0435\u043c \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u0434\u043e\u043c\u0435\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 Ubuntu \u0441 Apache.<\/p>\n\n\n\n<!-- Yandex.RTB R-A-7523691-3 -->\n<div id=\"yandex_rtb_R-A-7523691-3\"><\/div>\n<script>\nwindow.yaContextCb.push(()=>{\n\tYa.Context.AdvManager.render({\n\t\t\"blockId\": \"R-A-7523691-3\",\n\t\t\"renderTo\": \"yandex_rtb_R-A-7523691-3\"\n\t})\n})\n<\/script>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/li>\n<\/ol>\n\n\n\n<p class=\"has-medium-font-size\"><strong>sudo mkdir -p \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/public_html<\/strong><br> <br>2. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b index.html<br><br><strong>sudo nano \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/public_html<\/strong>\/index.html<br><br>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br><br><strong>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&#8217;en&#8217; dir=&#8217;ltr&#8217;&gt;<br>&lt;head&gt;<br>&lt;meta charset=&#8217;utf-8&#8242;&gt;<br>&lt;title&gt;\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c!&lt;\/title&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<br> &lt;h1&gt;\u041f\u0440\u0438\u0432\u0435\u0442 \u043c\u0438\u0440!&lt;\/body&gt;<br>&lt;\/html&gt;<\/strong><br><br>3. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0430<br><br><strong>sudo nano \/etc\/apache2\/sites-available\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430.conf<\/strong><br><br>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br><br><strong>&lt;VirtualHost *:80&gt;<br> ServerName \u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430<br> ServerAlias www.\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430<br> ServerAdmin webmaster@\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430<br> DocumentRoot \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/public_html<br> &lt;Directory \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/public_html&gt;<br> Options -Indexes +FollowSymLinks<br> AllowOverride All<br> &lt;\/Directory&gt;<br> ErrorLog \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/<\/strong><strong>\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430.log<br> CustomLog \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430.log combined<br>&lt;\/VirtualHost&gt;<\/strong><br><br>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b.<br><br>4. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0430\u0448 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<br><br><strong>sudo a2ensite \u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430<\/strong><br><br>5. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Apache<br><br><strong>sudo systemctl restart apache2<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">      6. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430, \u043e\u0442\u043a\u0440\u044b\u0432 \u0432\u0435\u0431-\u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>http:\/<\/code>\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430. \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430\u0434\u043f\u0438\u0441\u044c: \u041f\u0440\u0438\u0432\u0435\u0442 \u043c\u0438\u0440!<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u0430\u0448 \u0434\u043e\u043c\u0435\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 Ubuntu. <\/p>\n\n\n\n<!-- Yandex.RTB R-A-7523691-7 -->\n<script>\nwindow.yaContextCb.push(() => {\n    Ya.Context.AdvManager.render({\n        \"blockId\": \"R-A-7523691-7\",\n        \"type\": \"floorAd\",\n        \"platform\": \"desktop\"\n    })\n})\n<\/script>\n\n\n\n<!-- Yandex.RTB R-A-7523691-6 -->\n<script>\nwindow.yaContextCb.push(() => {\n    Ya.Context.AdvManager.render({\n        \"blockId\": \"R-A-7523691-6\",\n        \"type\": \"floorAd\",\n        \"platform\": \"touch\"\n    })\n})\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u0434\u043e\u043c\u0435\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 Ubuntu \u0441 Apache. sudo mkdir -p \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/public_html 2. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b index.html sudo nano \/var\/www\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430\/public_html\/index.html \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: &lt;!DOCTYPE html&gt;&lt;html lang=&#8217;en&#8217; dir=&#8217;ltr&#8217;&gt;&lt;head&gt;&lt;meta charset=&#8217;utf-8&#8242;&gt;&lt;title&gt;\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c!&lt;\/title&gt;&lt;\/head&gt;&lt;body&gt; &lt;h1&gt;\u041f\u0440\u0438\u0432\u0435\u0442 \u043c\u0438\u0440!&lt;\/body&gt;&lt;\/html&gt; 3. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0430 sudo nano \/etc\/apache2\/sites-available\/\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430.conf \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: &lt;VirtualHost *:80&gt; ServerName \u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430 ServerAlias www.\u0434\u043e\u043c\u0435\u043d_\u0432\u0430\u0448\u0435\u0433\u043e_\u0441\u0430\u0439\u0442\u0430 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":351,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[17,15],"class_list":["post-96","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-ubuntu","tag-lamp","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuwind.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":15,"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions\/572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuwind.ru\/index.php?rest_route=\/wp\/v2\/media\/351"}],"wp:attachment":[{"href":"https:\/\/linuwind.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuwind.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuwind.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}